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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutState.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index f7e4dbfcb46e5e025a097139331250fe6cbfb470..bbcfbc8701440ae29f243845c05424587e1bbcb7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -235,10 +235,13 @@ void LayoutView::layout() {
if (pageLogicalHeight() && shouldUsePrintingLayout()) {
m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = logicalWidth();
- if (!m_fragmentationContext)
+ if (!m_fragmentationContext) {
m_fragmentationContext = wrapUnique(new ViewFragmentationContext(*this));
+ m_paginationStateChanged = true;
+ }
} else if (m_fragmentationContext) {
m_fragmentationContext.reset();
+ m_paginationStateChanged = true;
}
SubtreeLayoutScope layoutScope(*this);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutState.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698