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

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

Issue 2454083002: Need a deep layout pass when becoming (un)fragmented. (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 9bb04a993e62ab288ebeb0f8cc56f97fcd5c7f9d..8d63614119cbe3f4ff36ef83346d053707009ef6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -4700,6 +4700,10 @@ void LayoutBox::markChildForPaginationRelayoutIfNeeded(
SubtreeLayoutScope& layoutScope) {
DCHECK(!child.needsLayout());
LayoutState* layoutState = view()->layoutState();
+ if (layoutState->paginationStateChanged()) {
+ layoutScope.setChildNeedsLayout(&child);
+ return;
+ }
if (!layoutState->isPaginated())
return;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698