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

Unified Diff: third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h

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/dom/LayoutTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h b/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h
index 158e3618e4f73a4f52273686e6b8518849df6093..432c5b06bfefcaf3b6970f2972352f9f501e44b6 100644
--- a/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h
+++ b/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h
@@ -47,7 +47,7 @@ class LayoutTreeBuilder {
LayoutTreeBuilder(NodeType& node, LayoutObject* layoutObjectParent)
: m_node(node), m_layoutObjectParent(layoutObjectParent) {
DCHECK(!node.layoutObject());
- DCHECK(node.needsAttach());
+ DCHECK(node.needsReattachLayoutTree());
DCHECK(node.document().inStyleRecalc());
DCHECK(node.inActiveDocument());
}
@@ -58,7 +58,7 @@ class LayoutTreeBuilder {
// Avoid an O(N^2) walk over the children when reattaching all children of a
// node.
if (m_layoutObjectParent->node() &&
- m_layoutObjectParent->node()->needsAttach())
+ m_layoutObjectParent->node()->needsReattachLayoutTree())
return 0;
return LayoutTreeBuilderTraversal::nextSiblingLayoutObject(*m_node);

Powered by Google App Engine
This is Rietveld 408576698