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

Unified Diff: Source/core/dom/shadow/InsertionPoint.cpp

Issue 15680005: Element::recalcStyle() overly reattach()-es InsertionPoints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated test and test expectations Created 7 years, 7 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/shadow/InsertionPoint.cpp
diff --git a/Source/core/dom/shadow/InsertionPoint.cpp b/Source/core/dom/shadow/InsertionPoint.cpp
index 8e905c7cf43550d2233fe48cfdfa33b31a6e845c..31f1a2994351430ea2234dbde3c578c79e628bac 100644
--- a/Source/core/dom/shadow/InsertionPoint.cpp
+++ b/Source/core/dom/shadow/InsertionPoint.cpp
@@ -206,6 +206,7 @@ InsertionPoint* resolveReprojection(const Node* projectedNode)
while (current) {
if (ElementShadow* shadow = shadowOfParentForDistribution(current)) {
+ ContentDistributor::ensureDistribution(shadow);
if (ShadowRoot* root = current->containingShadowRoot())
ContentDistributor::ensureDistribution(root);
if (InsertionPoint* insertedTo = shadow->distributor().findInsertionPointFor(projectedNode)) {

Powered by Google App Engine
This is Rietveld 408576698