| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index 4a2acb0be1fb8b59d46f520b08199aa8ee777ae8..d9e8ff90e93b11dd9907eb4a16177e294e55f992 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -1861,6 +1861,7 @@ void Element::recalcStyle(StyleRecalcChange change, Text* nextTextSibling) {
|
| if (parentComputedStyle())
|
| change = recalcOwnStyle(change);
|
| clearNeedsStyleRecalc();
|
| + clearNeedsReattachLayoutTree();
|
| }
|
|
|
| // If we reattached we don't need to recalc the style of our descendants
|
| @@ -1892,6 +1893,7 @@ void Element::recalcStyle(StyleRecalcChange change, Text* nextTextSibling) {
|
| childNeedsStyleRecalc() ? Force : change);
|
|
|
| clearChildNeedsStyleRecalc();
|
| + clearChildNeedsReattachLayoutTree();
|
| }
|
|
|
| if (hasCustomStyleCallbacks())
|
| @@ -1947,6 +1949,7 @@ StyleRecalcChange Element::recalcOwnStyle(StyleRecalcChange change) {
|
|
|
| if (localChange == Reattach) {
|
| document().addNonAttachedStyle(*this, std::move(newStyle));
|
| + setNeedsReattachLayoutTree();
|
| return rebuildLayoutTree();
|
| }
|
|
|
|
|