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

Unified Diff: Source/core/css/DocumentRuleSets.h

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Fix most comments; TODO benchmark and use Element::recalcStyle Created 7 years, 5 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: Source/core/css/DocumentRuleSets.h
diff --git a/Source/core/css/DocumentRuleSets.h b/Source/core/css/DocumentRuleSets.h
index c4a8eaacccf6475246f78f2d951949f61534d6a7..80738dc29123826f9fad54d430ce91f5c3f25302 100644
--- a/Source/core/css/DocumentRuleSets.h
+++ b/Source/core/css/DocumentRuleSets.h
@@ -61,7 +61,7 @@ public:
~DocumentRuleSets();
RuleSet* userStyle() const { return m_userStyle.get(); }
- void initUserStyle(DocumentStyleSheetCollection*, const MediaQueryEvaluator&, StyleResolver&);
+ void initUserStyle(DocumentStyleSheetCollection*, const Vector<RefPtr<StyleRule> >& watchedSelectors, const MediaQueryEvaluator&, StyleResolver&);
void resetAuthorStyle();
void collectFeaturesTo(RuleFeatureSet&, bool isViewSource);
@@ -70,6 +70,7 @@ public:
private:
void collectRulesFromUserStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&, RuleSet& userStyle, const MediaQueryEvaluator&, StyleResolver&);
+ void collectRulesFromWatchedSelectors(const Vector<RefPtr<StyleRule> >&, RuleSet& userStyle);
OwnPtr<RuleSet> m_userStyle;
ShadowDistributedRules m_shadowDistributedRules;
};

Powered by Google App Engine
This is Rietveld 408576698