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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef CSSSelectorWatch_h | 31 #ifndef CSSSelectorWatch_h |
32 #define CSSSelectorWatch_h | 32 #define CSSSelectorWatch_h |
33 | 33 |
34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
35 #include "core/css/StyleRule.h" | 35 #include "core/css/StyleRule.h" |
36 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" |
37 #include "platform/Timer.h" | 37 #include "platform/Timer.h" |
38 #include "wtf/HashCountedSet.h" | 38 #include "wtf/HashCountedSet.h" |
39 #include "wtf/HashSet.h" | 39 #include "wtf/HashSet.h" |
40 #include "wtf/RefPtr.h" | |
41 #include "wtf/Vector.h" | 40 #include "wtf/Vector.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 CORE_EXPORT CSSSelectorWatch final : public GarbageCollectedFinalized<CSSS
electorWatch>, public Supplement<Document> { | 45 class CORE_EXPORT CSSSelectorWatch final : public GarbageCollectedFinalized<CSSS
electorWatch>, public Supplement<Document> { |
47 USING_GARBAGE_COLLECTED_MIXIN(CSSSelectorWatch); | 46 USING_GARBAGE_COLLECTED_MIXIN(CSSSelectorWatch); |
48 public: | 47 public: |
49 virtual ~CSSSelectorWatch() { } | 48 virtual ~CSSSelectorWatch() { } |
50 | 49 |
(...skipping 29 matching lines...) Expand all Loading... |
80 // When an element is reparented, the new location's style is evaluated afte
r the expriation of the relayout timer. | 79 // When an element is reparented, the new location's style is evaluated afte
r the expriation of the relayout timer. |
81 // We don't want to send redundant callbacks to the embedder, so this counte
r lets us wait another time around the event loop. | 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. |
82 int m_timerExpirations; | 81 int m_timerExpirations; |
83 | 82 |
84 friend class CSSSelectorWatchTest; | 83 friend class CSSSelectorWatchTest; |
85 }; | 84 }; |
86 | 85 |
87 } // namespace blink | 86 } // namespace blink |
88 | 87 |
89 #endif // CSSSelectorWatch_h | 88 #endif // CSSSelectorWatch_h |
OLD | NEW |