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 083ed51d91f4be61eec1603eeb3ac754d5ea3198..a4987fc5a75f8bde725a397d7843bb619344d00a 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -1912,6 +1912,7 @@ void Document::updateStyle() { |
} |
clearNeedsStyleRecalc(); |
+ clearNeedsReattachLayoutTree(); |
StyleResolver& resolver = ensureStyleResolver(); |
@@ -1934,6 +1935,7 @@ void Document::updateStyle() { |
// LayoutTreeConstruction. |
m_nonAttachedStyle.clear(); |
clearChildNeedsStyleRecalc(); |
+ clearChildNeedsReattachLayoutTree(); |
resolver.clearStyleSharingList(); |
@@ -1941,6 +1943,8 @@ void Document::updateStyle() { |
DCHECK(!needsStyleRecalc()); |
DCHECK(!childNeedsStyleRecalc()); |
+ DCHECK(!needsReattachLayoutTree()); |
+ DCHECK(!childNeedsReattachLayoutTree()); |
DCHECK(inStyleRecalc()); |
DCHECK_EQ(styleResolver(), &resolver); |
DCHECK(m_nonAttachedStyle.isEmpty()); |