Index: Source/core/rendering/SubtreeLayoutScope.cpp |
diff --git a/Source/core/rendering/SubtreeLayoutScope.cpp b/Source/core/rendering/SubtreeLayoutScope.cpp |
index 7a35c5daf865277774ca5beecb2f873a1c2cc088..8944d84fb2a529e8d7bb85894855b602b112a57a 100644 |
--- a/Source/core/rendering/SubtreeLayoutScope.cpp |
+++ b/Source/core/rendering/SubtreeLayoutScope.cpp |
@@ -44,6 +44,12 @@ SubtreeLayoutScope::SubtreeLayoutScope(RenderObject* root) |
SubtreeLayoutScope::~SubtreeLayoutScope() |
{ |
+ // Partial layout early-exits layout and will leave the tree as needing layout. |
+ if (m_root->frameView()->partialLayout().shouldStop()) { |
+ ASSERT(m_root->needsLayout()); |
+ return; |
+ } |
+ |
RELEASE_ASSERT(!m_root->needsLayout()); |
#ifndef NDEBUG |