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

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

Issue 1395753004: A new LayoutState should never locate a containing flow thread on its own. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review. More ahem, more hotpink, slightly less random numbers. Created 5 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/LayoutTests/fast/multicol/input-type-number-expected.html ('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/LayoutState.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutState.cpp b/third_party/WebKit/Source/core/layout/LayoutState.cpp
index 1ce3be9d14f3098b7dbb462cf78ffb158c2dfac4..8e9f3cd362814851e5d3c4aed75f382201a12841 100644
--- a/third_party/WebKit/Source/core/layout/LayoutState.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutState.cpp
@@ -95,10 +95,11 @@ LayoutState::LayoutState(LayoutBox& layoutObject, const LayoutSize& offset, Layo
// Disable pagination for objects we don't support. For now this includes overflow:scroll/auto, inline blocks and
// writing mode roots.
if (layoutObject.isUnsplittableForPagination()) {
+ m_flowThread = nullptr;
m_pageLogicalHeight = 0;
m_isPaginated = false;
} else {
- m_isPaginated = m_pageLogicalHeight || layoutObject.flowThreadContainingBlock();
+ m_isPaginated = m_pageLogicalHeight || m_flowThread;
}
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/multicol/input-type-number-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698