| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #ifndef CSSSelectorWatch_h | 31 #ifndef CSSSelectorWatch_h |
| 32 #define CSSSelectorWatch_h | 32 #define CSSSelectorWatch_h |
| 33 | 33 |
| 34 #include "core/css/StyleRule.h" | 34 #include "core/css/StyleRule.h" |
| 35 #include "core/dom/DocumentSupplementable.h" | 35 #include "core/dom/DocumentSupplementable.h" |
| 36 #include "platform/Timer.h" | 36 #include "platform/Timer.h" |
| 37 #include "wtf/HashCountedSet.h" | 37 #include "wtf/HashCountedSet.h" |
| 38 #include "wtf/HashSet.h" | 38 #include "wtf/HashSet.h" |
| 39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
| 40 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
| 41 #include "wtf/WeakPtr.h" | |
| 42 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
| 43 | 42 |
| 44 namespace blink { | 43 namespace blink { |
| 45 | 44 |
| 46 class CSSSelectorWatch final : public NoBaseWillBeGarbageCollectedFinalized<CSSS
electorWatch>, public DocumentSupplement { | 45 class CSSSelectorWatch final : public NoBaseWillBeGarbageCollectedFinalized<CSSS
electorWatch>, public DocumentSupplement { |
| 47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CSSSelectorWatch); | 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CSSSelectorWatch); |
| 48 public: | 47 public: |
| 49 virtual ~CSSSelectorWatch() { } | 48 virtual ~CSSSelectorWatch() { } |
| 50 | 49 |
| 51 static CSSSelectorWatch& from(Document&); | 50 static CSSSelectorWatch& from(Document&); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 77 Timer<CSSSelectorWatch> m_callbackSelectorChangeTimer; | 76 Timer<CSSSelectorWatch> m_callbackSelectorChangeTimer; |
| 78 | 77 |
| 79 // When an element is reparented, the new location's style is evaluated afte
r the expriation of the relayout timer. | 78 // When an element is reparented, the new location's style is evaluated afte
r the expriation of the relayout timer. |
| 80 // We don't want to send redundant callbacks to the embedder, so this counte
r lets us wait another time around the event loop. | 79 // We don't want to send redundant callbacks to the embedder, so this counte
r lets us wait another time around the event loop. |
| 81 int m_timerExpirations; | 80 int m_timerExpirations; |
| 82 }; | 81 }; |
| 83 | 82 |
| 84 } // namespace blink | 83 } // namespace blink |
| 85 | 84 |
| 86 #endif // CSSSelectorWatch_h | 85 #endif // CSSSelectorWatch_h |
| OLD | NEW |