Index: third_party/WebKit/Source/core/dom/Node.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp |
index 0c491557b80f318a245d3b0b568f131f9ee2400f..a8aa55c128f7a4d197582fd6885f0b62941fef67 100644 |
--- a/third_party/WebKit/Source/core/dom/Node.cpp |
+++ b/third_party/WebKit/Source/core/dom/Node.cpp |
@@ -931,6 +931,7 @@ void Node::detachLayoutTree(const AttachContext& context) { |
layoutObject()->destroyAndCleanupAnonymousWrappers(); |
setLayoutObject(nullptr); |
setStyleChange(NeedsReattachStyleChange); |
+ setFlag(NeedsReattachLayoutTree); |
clearChildNeedsStyleInvalidation(); |
} |