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

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

Issue 2333693002: Implemented scoped invalidation for added/removed RuleSets. (Closed)
Patch Set: Created 4 years, 3 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 d688365b1c57bcec60a65a5693c5407bbd6aa5ad..c6c6badbc51591c0f8803c5e27f320851c07a137 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -179,6 +179,7 @@ public:
void scheduleInvalidationsForInsertedSibling(Element* beforeElement, Element& insertedElement);
void scheduleInvalidationsForRemovedSibling(Element* beforeElement, Element& removedElement, Element& afterElement);
void scheduleNthPseudoInvalidations(ContainerNode&);
+ void scheduleInvalidationsForRuleSets(TreeScope&, const HeapVector<Member<const RuleSet>>&);
unsigned styleForElementCount() const { return m_styleForElementCount; }
void incStyleForElementCount() { m_styleForElementCount++; }
@@ -230,6 +231,7 @@ private:
void updateActiveStyleSheetsInShadow(StyleResolverUpdateMode, TreeScope*, UnorderedTreeScopeSet& treeScopesRemoved);
bool shouldSkipInvalidationFor(const Element&) const;
+ void scheduleRuleSetInvalidationsForElement(Element&, const HeapVector<Member<const RuleSet>>&);
Member<Document> m_document;
bool m_isMaster;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698