Index: third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp |
diff --git a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp |
index 8e5eec4474bb8304ef3ab9d88ba8ad572a34a6c6..c0c743f1052b625e1523afd0309c145ddea9c762 100644 |
--- a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp |
+++ b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp |
@@ -86,6 +86,7 @@ ShadowRoot& ElementShadow::addShadowRoot(Element& shadowHost, |
shadowHost.setNeedsStyleRecalc( |
SubtreeStyleChange, |
StyleChangeReasonForTracing::create(StyleChangeReason::Shadow)); |
+ shadowRoot->setNeedsReattachLayoutTree(); |
probe::didPushShadowRoot(&shadowHost, shadowRoot); |