Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2552383003: Change getStyleChangeType() == NeedsReattachStyleChange to call needsAttach() instead (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698