Index: third_party/WebKit/Source/core/dom/Element.h |
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h |
index 1d8ad1f95ae67ffff366216474bee6c6c6f91bdf..8b89d574e3c89bdc51c3157543106c7a03cad7a3 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.h |
+++ b/third_party/WebKit/Source/core/dom/Element.h |
@@ -868,6 +868,8 @@ inline Node::InsertionNotificationRequest Node::insertedInto(ContainerNode* inse |
setFlag(IsInShadowTreeFlag); |
if (childNeedsDistributionRecalc() && !insertionPoint->childNeedsDistributionRecalc()) |
insertionPoint->markAncestorsWithChildNeedsDistributionRecalc(); |
+ if (document().shadowCascadeOrder() == ShadowCascadeOrder::ShadowCascadeV1) |
+ updateAssignmentForInsertedInto(insertionPoint); |
return InsertionDone; |
} |