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

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

Issue 580373002: [Invalidation Tracking] Trace StyleInvalidator setNeedsStyleRecalc (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: track custom pseudo Created 6 years, 2 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
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 9
10 namespace blink { 10 namespace blink {
11 11
12 class DescendantInvalidationSet; 12 class DescendantInvalidationSet;
13 class Document; 13 class Document;
14 class Element; 14 class Element;
15 15
16 class StyleInvalidator { 16 class StyleInvalidator {
17 DISALLOW_ALLOCATION(); 17 DISALLOW_ALLOCATION();
18 public: 18 public:
19 static void init();
20
19 StyleInvalidator(); 21 StyleInvalidator();
20 ~StyleInvalidator(); 22 ~StyleInvalidator();
23
21 void invalidate(Document&); 24 void invalidate(Document&);
22 void scheduleInvalidation(PassRefPtrWillBeRawPtr<DescendantInvalidationSet>, Element&); 25 void scheduleInvalidation(PassRefPtrWillBeRawPtr<DescendantInvalidationSet>, Element&);
23 26
24 // Clears all style invalidation state for the passed node. 27 // Clears all style invalidation state for the passed node.
25 void clearInvalidation(Node&); 28 void clearInvalidation(Node&);
26 29
27 void clearPendingInvalidations(); 30 void clearPendingInvalidations();
28 31
29 void trace(Visitor*); 32 void trace(Visitor*);
30 33
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 typedef WillBeHeapHashMap<RawPtrWillBeMember<Element>, OwnPtrWillBeMember<In validationList> > PendingInvalidationMap; 88 typedef WillBeHeapHashMap<RawPtrWillBeMember<Element>, OwnPtrWillBeMember<In validationList> > PendingInvalidationMap;
86 89
87 InvalidationList& ensurePendingInvalidationList(Element&); 90 InvalidationList& ensurePendingInvalidationList(Element&);
88 91
89 PendingInvalidationMap m_pendingInvalidationMap; 92 PendingInvalidationMap m_pendingInvalidationMap;
90 }; 93 };
91 94
92 } // namespace blink 95 } // namespace blink
93 96
94 #endif // StyleInvalidator_h 97 #endif // StyleInvalidator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698