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

Unified Diff: Source/core/dom/Element.h

Issue 219993002: Avoid calling markAncestorsWithChildNeedsStyleRecalc() constantly in childrenChanged (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index f298a23c6f26069154a7448f773f8f77a03ff3f6..6e16014fe63c85a5ad0a2c390a40b49a1460704e 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -828,6 +828,8 @@ inline Node::InsertionNotificationRequest Node::insertedInto(ContainerNode* inse
setFlag(IsInShadowTreeFlag);
if (childNeedsDistributionRecalc() && !insertionPoint->childNeedsDistributionRecalc())
insertionPoint->markAncestorsWithChildNeedsDistributionRecalc();
+ if (!insertionPoint->childNeedsStyleRecalc())
+ insertionPoint->markAncestorsWithChildNeedsStyleRecalc();
return InsertionDone;
}
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Node.cpp » ('j') | Source/core/dom/Node.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698