| 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 8cf3b0fa21a76642255d5bac46ddc6ea51d6dd62..fd3de56bda5279155a7052a6e1364c9004cc662d 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -1664,7 +1664,7 @@ void Element::attachLayoutTree(const AttachContext& context) {
|
|
|
| // We've already been through detach when doing an attach, but we might
|
| // need to clear any state that's been added since then.
|
| - if (hasRareData() && getStyleChangeType() == NeedsReattachStyleChange) {
|
| + if (hasRareData() && needsAttach()) {
|
| ElementRareData* data = elementRareData();
|
| data->clearComputedStyle();
|
| }
|
|
|