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 f7847ace487e49d0ae5085f0c960d53716078193..145594cda4829b5c5ce66f83895e90413aa575e1 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(); |
} |