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

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

Issue 2455943003: Backend for css rule tracking (Closed)
Patch Set: Backend for CSS Rule tracking. Created 4 years, 1 month 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 3613b7247870ba5600efbc209b1f64f4f8c8bed4..d0912d9415324e37a90905c6f6832dfc61787c11 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -58,6 +58,7 @@ class Node;
class RuleFeatureSet;
class ShadowTreeStyleSheetCollection;
class StyleRuleFontFace;
+class StyleRuleUsageTracker;
class StyleSheet;
class StyleSheetContents;
class ViewportStyleResolver;
@@ -172,6 +173,8 @@ class CORE_EXPORT StyleEngine final
StyleResolver* resolver() const { return m_resolver; }
+ void setRuleUsageTracker(StyleRuleUsageTracker*);
+
StyleResolver& ensureResolver() {
if (!m_resolver) {
createResolver();
@@ -319,6 +322,8 @@ class CORE_EXPORT StyleEngine final
TraceWrapperMember<DocumentStyleSheetCollection>
m_documentStyleSheetCollection;
+ Member<StyleRuleUsageTracker> m_tracker;
+
typedef HeapHashMap<WeakMember<TreeScope>,
Member<ShadowTreeStyleSheetCollection>>
StyleSheetCollectionMap;

Powered by Google App Engine
This is Rietveld 408576698