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

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

Issue 2375293002: Set NeedsReattachLayoutTree and ChildNeedsReattachLayoutTree flags on Node (Closed)
Patch Set: As per Bugs' suggestions Created 4 years, 3 months 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
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 eef8d64119276eeea4485bd17066d9bd44fd59dc..a2a6a211ddb2f41785d377d575db1999f513d06c 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1829,8 +1829,8 @@ StyleRecalcChange Element::recalcOwnStyle(StyleRecalcChange change)
if (localChange == Reattach) {
// TODO(nainar): Remove the style parameter being passed into buildLayoutTree().
- // ComputedStyle will now be stored on Node and accessed in buildLayoutTree()
- // using mutableComputedStyle().
+ // ComputedStyle will now be stored in a HeapHashMap on Document and used from there.
+ setNeedsReattachLayoutTree();
return buildLayoutTree(*newStyle);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | third_party/WebKit/Source/core/dom/Node.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698