Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: Source/core/css/invalidation/StyleInvalidator.h

Issue 1173283002: Move some Element specific code from Node::detach to Element::detach. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/css/invalidation/StyleInvalidator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "wtf/Noncopyable.h" 9 #include "wtf/Noncopyable.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class DescendantInvalidationSet; 13 class DescendantInvalidationSet;
14 class Document; 14 class Document;
15 class Element; 15 class Element;
16 16
17 class StyleInvalidator { 17 class StyleInvalidator {
18 DISALLOW_ALLOCATION(); 18 DISALLOW_ALLOCATION();
19 WTF_MAKE_NONCOPYABLE(StyleInvalidator); 19 WTF_MAKE_NONCOPYABLE(StyleInvalidator);
20 public: 20 public:
21 StyleInvalidator(); 21 StyleInvalidator();
22 ~StyleInvalidator(); 22 ~StyleInvalidator();
23 void invalidate(Document&); 23 void invalidate(Document&);
24 void scheduleInvalidation(PassRefPtrWillBeRawPtr<DescendantInvalidationSet>, Element&); 24 void scheduleInvalidation(PassRefPtrWillBeRawPtr<DescendantInvalidationSet>, Element&);
25 25 void clearInvalidation(Element&);
26 // Clears all style invalidation state for the passed node.
27 void clearInvalidation(Node&);
28 26
29 void clearPendingInvalidations(); 27 void clearPendingInvalidations();
30 28
31 DECLARE_TRACE(); 29 DECLARE_TRACE();
32 30
33 private: 31 private:
34 struct RecursionData { 32 struct RecursionData {
35 RecursionData() 33 RecursionData()
36 : m_invalidateCustomPseudo(false) 34 : m_invalidateCustomPseudo(false)
37 , m_wholeSubtreeInvalid(false) 35 , m_wholeSubtreeInvalid(false)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 using PendingInvalidationMap = WillBeHeapHashMap<RawPtrWillBeMember<Element> , OwnPtrWillBeMember<InvalidationList>>; 91 using PendingInvalidationMap = WillBeHeapHashMap<RawPtrWillBeMember<Element> , OwnPtrWillBeMember<InvalidationList>>;
94 92
95 InvalidationList& ensurePendingInvalidationList(Element&); 93 InvalidationList& ensurePendingInvalidationList(Element&);
96 94
97 PendingInvalidationMap m_pendingInvalidationMap; 95 PendingInvalidationMap m_pendingInvalidationMap;
98 }; 96 };
99 97
100 } // namespace blink 98 } // namespace blink
101 99
102 #endif // StyleInvalidator_h 100 #endif // StyleInvalidator_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/invalidation/StyleInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698