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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.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/css/resolver/StyleResolver.h
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.h b/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
index 929d3746dc01eb1304b872bf53906bab8ba01b26..a02ed83d078605902cca0adfefa4378f41e55951 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
@@ -34,6 +34,7 @@
#include "core/css/resolver/CSSPropertyPriority.h"
#include "core/css/resolver/MatchedPropertiesCache.h"
#include "core/css/resolver/StyleBuilder.h"
+#include "core/css/resolver/StyleRuleUsageTracker.h"
caseq 2016/10/31 19:06:05 forward declare?
#include "core/style/CachedUAStyle.h"
#include "platform/heap/Handle.h"
#include "wtf/Deque.h"
@@ -194,6 +195,8 @@ class CORE_EXPORT StyleResolver final
void initWatchedSelectorRules();
+ void setRuleUsageTracker(StyleRuleUsageTracker*);
+
private:
explicit StyleResolver(Document&);
@@ -202,6 +205,8 @@ class CORE_EXPORT StyleResolver final
// FIXME: This should probably go away, folded into FontBuilder.
void updateFont(StyleResolverState&);
+ void addMatchedRulesToTracker(const ElementRuleCollector&);
+
void loadPendingResources(StyleResolverState&);
void adjustComputedStyle(StyleResolverState&, Element*);
@@ -285,6 +290,8 @@ class CORE_EXPORT StyleResolver final
Member<RuleSet> m_uncommonAttributeRuleSet;
Member<RuleSet> m_watchedSelectorsRules;
+ Member<StyleRuleUsageTracker> m_tracker;
+
bool m_needCollectFeatures;
bool m_printMediaType;
bool m_hasFullscreenUAStyle = false;

Powered by Google App Engine
This is Rietveld 408576698