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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 2455943003: Backend for css rule tracking (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/StyleEngine.h
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.h b/third_party/WebKit/Source/core/dom/StyleEngine.h
index 32145eb61a1b556bc49a1287c94b064164576a6c..4a3c641473fd20eafcf9046e35889be5069f8d19 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -37,6 +37,7 @@
#include "core/css/invalidation/StyleInvalidator.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/css/resolver/StyleResolverStats.h"
+#include "core/css/resolver/StyleRuleUsageTracker.h"
caseq 2016/10/27 20:59:55 forward-declare instead.
valih 2016/10/27 21:41:16 Done.
#include "core/dom/Document.h"
#include "core/dom/DocumentOrderedList.h"
#include "core/dom/DocumentStyleSheetCollection.h"
@@ -165,6 +166,8 @@ class CORE_EXPORT StyleEngine final
}
void resetAuthorStyle(TreeScope&);
+ void setRuleUsageTracker(Member<StyleRuleUsageTracker>);
caseq 2016/10/27 20:59:55 StyleRuleUsageTracker*, drop Member<>
valih 2016/10/27 21:41:16 Done.
+
StyleResolver* resolver() const { return m_resolver.get(); }
StyleResolver& ensureResolver() {
@@ -299,6 +302,8 @@ class CORE_EXPORT StyleEngine final
HeapVector<Member<CSSStyleSheet>> m_injectedAuthorStyleSheets;
Member<CSSStyleSheet> m_inspectorStyleSheet;
+ Member<StyleRuleUsageTracker> m_tracker;
+
Member<DocumentStyleSheetCollection> m_documentStyleSheetCollection;
typedef HeapHashMap<WeakMember<TreeScope>,

Powered by Google App Engine
This is Rietveld 408576698