OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef StyleInvalidator_h | 5 #ifndef StyleInvalidator_h |
6 #define StyleInvalidator_h | 6 #define StyleInvalidator_h |
7 | 7 |
8 #include "core/css/invalidation/PendingInvalidations.h" | 8 #include "core/css/invalidation/PendingInvalidations.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "wtf/Noncopyable.h" | 10 #include "wtf/Noncopyable.h" |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class ContainerNode; | 15 class ContainerNode; |
16 class Document; | 16 class Document; |
17 class Element; | 17 class Element; |
18 class HTMLSlotElement; | 18 class HTMLSlotElement; |
19 class InvalidationSet; | 19 class InvalidationSet; |
20 | 20 |
21 class StyleInvalidator { | 21 class CORE_EXPORT StyleInvalidator { |
22 DISALLOW_NEW(); | 22 DISALLOW_NEW(); |
23 WTF_MAKE_NONCOPYABLE(StyleInvalidator); | 23 WTF_MAKE_NONCOPYABLE(StyleInvalidator); |
24 | 24 |
25 public: | 25 public: |
26 StyleInvalidator(); | 26 StyleInvalidator(); |
27 ~StyleInvalidator(); | 27 ~StyleInvalidator(); |
28 void invalidate(Document&); | 28 void invalidate(Document&); |
29 void scheduleInvalidationSetsForNode(const InvalidationLists&, | 29 void scheduleInvalidationSetsForNode(const InvalidationLists&, |
30 ContainerNode&); | 30 ContainerNode&); |
31 void scheduleSiblingInvalidationsAsDescendants( | 31 void scheduleSiblingInvalidationsAsDescendants( |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 HeapHashMap<Member<ContainerNode>, std::unique_ptr<PendingInvalidations>>; | 144 HeapHashMap<Member<ContainerNode>, std::unique_ptr<PendingInvalidations>>; |
145 | 145 |
146 PendingInvalidations& ensurePendingInvalidations(ContainerNode&); | 146 PendingInvalidations& ensurePendingInvalidations(ContainerNode&); |
147 | 147 |
148 PendingInvalidationMap m_pendingInvalidationMap; | 148 PendingInvalidationMap m_pendingInvalidationMap; |
149 }; | 149 }; |
150 | 150 |
151 } // namespace blink | 151 } // namespace blink |
152 | 152 |
153 #endif // StyleInvalidator_h | 153 #endif // StyleInvalidator_h |
OLD | NEW |