| 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 98b470d9c02d0c16392046c30aaf2d6c6344114c..9e1e08e42a39a3c8586e233f4bbf9da0a943e588 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -725,6 +725,8 @@ void Node::markAncestorsWithChildNeedsReattachLayoutTree() {
|
| }
|
|
|
| void Node::setNeedsReattachLayoutTree() {
|
| + DCHECK(document().inStyleRecalc());
|
| + DCHECK(!document().childNeedsDistributionRecalc());
|
| setFlag(NeedsReattachLayoutTree);
|
| markAncestorsWithChildNeedsReattachLayoutTree();
|
| }
|
| @@ -932,7 +934,6 @@ void Node::detachLayoutTree(const AttachContext& context) {
|
| layoutObject()->destroyAndCleanupAnonymousWrappers();
|
| setLayoutObject(nullptr);
|
| setStyleChange(NeedsReattachStyleChange);
|
| - setFlag(NeedsReattachLayoutTree);
|
| clearChildNeedsStyleInvalidation();
|
| }
|
|
|
|
|