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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutState.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/LayoutState.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutState.cpp b/third_party/WebKit/Source/core/layout/LayoutState.cpp
index b00feb3c958cc61d62065d830f1180650c2f77ad..fc98857231e4c6b79e15e62f575eaa5db9ecec88 100644
--- a/third_party/WebKit/Source/core/layout/LayoutState.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutState.cpp
@@ -37,6 +37,7 @@ LayoutState::LayoutState(LayoutUnit pageLogicalHeight,
: m_isPaginated(pageLogicalHeight),
m_pageLogicalHeightChanged(pageLogicalHeightChanged),
m_containingBlockLogicalWidthChanged(false),
+ m_paginationStateChanged(false),
m_flowThread(nullptr),
m_next(nullptr),
m_pageLogicalHeight(pageLogicalHeight),
@@ -59,6 +60,7 @@ LayoutState::LayoutState(LayoutBox& layoutObject,
m_flowThread = m_next->flowThread();
else
m_flowThread = nullptr;
+ m_paginationStateChanged = m_next->m_paginationStateChanged;
layoutObject.view()->pushLayoutState(*this);
bool fixed = layoutObject.isOutOfFlowPositioned() &&
layoutObject.style()->position() == FixedPosition;
@@ -129,6 +131,7 @@ LayoutState::LayoutState(LayoutObject& root)
: m_isPaginated(false),
m_pageLogicalHeightChanged(false),
m_containingBlockLogicalWidthChanged(false),
+ m_paginationStateChanged(false),
m_flowThread(nullptr),
m_next(root.view()->layoutState()),
m_layoutObject(root) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutState.h ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698