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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutCounter.cpp

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Commit the renames Created 4 years, 1 month 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/layout/LayoutCounter.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
index 8a74e0c7a1e6f3b42a2a25a2e6b84d0a24bd5198..a6629e0bf6867a0783127f8f7a8b6f37732286fe 100644
--- a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
@@ -614,7 +614,7 @@ void LayoutCounter::layoutObjectSubtreeAttached(LayoutObject* layoutObject) {
node = node->parentNode();
else
node = layoutObject->generatingNode();
- if (node && node->needsAttach())
+ if (node && node->needsReattachLayoutTree())
return; // No need to update if the parent is not attached yet
for (LayoutObject* descendant = layoutObject; descendant;
descendant = descendant->nextInPreOrder(layoutObject))
@@ -625,7 +625,7 @@ void LayoutCounter::layoutObjectStyleChanged(LayoutObject& layoutObject,
const ComputedStyle* oldStyle,
const ComputedStyle& newStyle) {
Node* node = layoutObject.generatingNode();
- if (!node || node->needsAttach())
+ if (!node || node->needsReattachLayoutTree())
return; // cannot have generated content or if it can have, it will be
// handled during attaching
const CounterDirectiveMap* oldCounterDirectives =

Powered by Google App Engine
This is Rietveld 408576698