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

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

Issue 2439973005: Revert of Move Layout Tree Construction code into Element::rebuildLayoutTree() (Closed)
Patch Set: Revert "Move Layout Tree Construction code into Element::rebuildLayoutTree()" Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Element.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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index acae74472ddd8f630d78dff46544427b048a6335..26ac4eb144ec0e01fc628d9693323e151f0418f8 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -1764,8 +1764,6 @@ static void assertLayoutTreeUpdated(Node& root) {
continue;
DCHECK(!node.needsStyleRecalc());
DCHECK(!node.childNeedsStyleRecalc());
- DCHECK(!node.needsReattachLayoutTree());
- DCHECK(!node.childNeedsReattachLayoutTree());
DCHECK(!node.childNeedsDistributionRecalc());
DCHECK(!node.needsStyleInvalidation());
DCHECK(!node.childNeedsStyleInvalidation());
@@ -1898,7 +1896,6 @@ void Document::updateStyle() {
}
clearNeedsStyleRecalc();
- clearNeedsReattachLayoutTree();
StyleResolver& resolver = ensureStyleResolver();
@@ -1921,14 +1918,11 @@ void Document::updateStyle() {
// LayoutTreeConstruction.
m_nonAttachedStyle.clear();
clearChildNeedsStyleRecalc();
- clearChildNeedsReattachLayoutTree();
resolver.clearStyleSharingList();
DCHECK(!needsStyleRecalc());
DCHECK(!childNeedsStyleRecalc());
- DCHECK(!needsReattachLayoutTree());
- DCHECK(!childNeedsReattachLayoutTree());
DCHECK(inStyleRecalc());
DCHECK_EQ(styleResolver(), &resolver);
DCHECK(m_nonAttachedStyle.isEmpty());
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698