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 e29035dc3be460bdb1f41826b77722664ae310a0..22b61ff7293dbc9fb01b524338768d5cc6d170e6 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(); |
InspectorInstrumentation::didPushShadowRoot(&shadowHost, shadowRoot); |