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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.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/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..ccc4572d033ca61ed15d2dccce2d12022a7dad32 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"
#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(ElementRuleCollector&);
caseq 2016/10/27 20:59:55 const ElementRuleCollector&
valih 2016/10/27 21:41:16 Done.
+
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