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 7a5eca1ad8e04ddf27f1747d56fa9275aeb5f0f8..42f2b503ef2f3e0c0328aaa920380c33e0965d21 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(); |
} |