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

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

Issue 2422103003: Separate method for calculating logical height based on CSS properties. (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 | « no previous file | third_party/WebKit/Source/core/layout/LayoutTable.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/LayoutTable.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.h b/third_party/WebKit/Source/core/layout/LayoutTable.h
index 5cc61bedd607070de4d9eb057b5d1e26a1dffb0a..ee2101638cb4a22199a855e3d15b9b5477e1fae5 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.h
@@ -469,9 +469,9 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock {
LayoutUnit convertStyleLogicalWidthToComputedWidth(
const Length& styleLogicalWidth,
- LayoutUnit availableWidth);
+ LayoutUnit availableWidth) const;
LayoutUnit convertStyleLogicalHeightToComputedHeight(
- const Length& styleLogicalHeight);
+ const Length& styleLogicalHeight) const;
LayoutRect overflowClipRect(
const LayoutPoint& location,
@@ -485,6 +485,10 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock {
SubtreeLayoutScope&,
LayoutUnit logicalLeft);
+ // Return the logical height based on the height, min-height and max-height
+ // properties from CSS. Will return 0 if auto.
+ LayoutUnit logicalHeightFromStyle() const;
+
void distributeExtraLogicalHeight(int extraLogicalHeight);
void recalcCollapsedBordersIfNeeded();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698