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

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

Issue 2592423002: Reschedule sibling invalidations as descendant on removal. (Closed)
Patch Set: Moved DCHECK. Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7f1027ba5413eac0bbfaf6b725b69ae07473f975..6bc62016917748a42b2ec8830f76fb7d59382fc3 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -240,6 +240,10 @@ class CORE_EXPORT StyleEngine final
void scheduleInvalidationsForRuleSets(TreeScope&,
const HeapHashSet<Member<RuleSet>>&);
+ void elementWillBeRemoved(Element& element) {
+ m_styleInvalidator.rescheduleSiblingInvalidationsAsDescendants(element);
+ }
+
unsigned styleForElementCount() const { return m_styleForElementCount; }
void incStyleForElementCount() { m_styleForElementCount++; }
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698