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

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

Issue 1696713003: Introduce maxColumnLogicalHeight() and clean up a little. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.h b/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.h
index 7b68e77411372a3770e4174dbc9081fe0c7b2659..6634b227dccb3810600477f9abda020a3f5de58b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.h
+++ b/third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.h
@@ -157,8 +157,19 @@ public:
void evacuateAndDestroy();
unsigned columnCount() const { return m_columnCount; }
+
+ // Total height available to columns and spanners. This is the multicol container's content box
+ // logical height, or 0 if auto.
LayoutUnit columnHeightAvailable() const { return m_columnHeightAvailable; }
void setColumnHeightAvailable(LayoutUnit available) { m_columnHeightAvailable = available; }
+
+ // Maximum content box logical height for the multicol container. This takes CSS logical
+ // 'height' and 'max-height' into account. LayoutUnit::max() is returned if nothing constrains
+ // the height of the multicol container. This method only deals with used values of CSS
+ // properties, and it does not consider enclosing fragmentation contexts -- that's something
+ // that needs to be calculated per fragmentainer group.
+ LayoutUnit maxColumnLogicalHeight() const;
+
bool progressionIsInline() const { return m_progressionIsInline; }
LayoutUnit tallestUnbreakableLogicalHeight(LayoutUnit offsetInFlowThread) const;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698