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 d5feaa1f73d247f0c0df0b1925e500de1d7eb700..6f5977bb4118574335c0012dfd94278264e2856e 100644 |
--- a/third_party/WebKit/Source/core/dom/Node.cpp |
+++ b/third_party/WebKit/Source/core/dom/Node.cpp |
@@ -913,6 +913,7 @@ void Node::detachLayoutTree(const AttachContext& context) { |
layoutObject()->destroyAndCleanupAnonymousWrappers(); |
setLayoutObject(nullptr); |
setStyleChange(NeedsReattachStyleChange); |
+ setFlag(NeedsReattachLayoutTree); |
clearChildNeedsStyleInvalidation(); |
} |