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

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

Issue 2562273003: Disable layout optimization when column height may be non-uniform. (Closed)
Patch Set: Created 4 years 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/LayoutMultiColumnFlowThread.h ('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/LayoutMultiColumnFlowThread.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp b/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp
index 807fe9613ec144b1f4f625462cc71d5cc13c50a5..f532eda6c4fe53b75066dad7cc7e9ea11f635e7b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp
@@ -365,6 +365,15 @@ bool LayoutMultiColumnFlowThread::isPageLogicalHeightKnown() const {
return false;
}
+bool LayoutMultiColumnFlowThread::mayHaveNonUniformPageLogicalHeight() const {
+ const LayoutMultiColumnSet* columnSet = firstMultiColumnSet();
+ if (!columnSet)
+ return false;
+ if (columnSet->nextSiblingMultiColumnSet())
+ return true;
+ return enclosingFragmentationContext();
+}
+
LayoutSize LayoutMultiColumnFlowThread::flowThreadTranslationAtOffset(
LayoutUnit offsetInFlowThread,
PageBoundaryRule rule,
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698