| 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 8043437642a66ddd4e39c358b0e55fdb7fd1a707..d3cf4d9f7d1cca40f54beb94dbedf1c92e07ceb0 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -1882,8 +1882,13 @@ void Element::recalcStyle(StyleRecalcChange change) {
|
| elementAnimations->setAnimationStyleChange(false);
|
| }
|
| }
|
| - if (parentComputedStyle())
|
| + if (parentComputedStyle()) {
|
| change = recalcOwnStyle(change);
|
| + } else if (needsAttach()) {
|
| + setNeedsReattachLayoutTree();
|
| + change = Reattach;
|
| + }
|
| +
|
| // Needed because the rebuildLayoutTree code needs to see what the
|
| // styleChangeType() was on reattach roots. See Node::reattachLayoutTree()
|
| // for an example.
|
|
|