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

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

Issue 1971053003: Use new intrinsic content height when computing min-height: min-content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 4 years, 7 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 988307e39943873e7b46fd9da4ccf07acff1f20d..36b9ed500fc573509c1f8c3350fd0b29c3131938 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2673,9 +2673,9 @@ LayoutUnit LayoutBox::computeIntrinsicLogicalContentHeightUsing(const Length& lo
if (logicalHeightLength.isMinContent() || logicalHeightLength.isMaxContent() || logicalHeightLength.isFitContent()) {
if (isAtomicInlineLevel())
return intrinsicSize().height();
- if (m_intrinsicContentLogicalHeight != -1)
- return m_intrinsicContentLogicalHeight;
- return intrinsicContentHeight;
+ if (intrinsicContentHeight != -1)
eae 2016/05/12 19:24:56 Shouldn't we be able to always use intrinsicConten
cbiesinger 2016/05/12 19:49:45 I believe you're correct, especially given that co
+ return intrinsicContentHeight;
+ return m_intrinsicContentLogicalHeight;
}
if (logicalHeightLength.isFillAvailable())
return containingBlock()->availableLogicalHeight(ExcludeMarginBorderPadding) - borderAndPadding;

Powered by Google App Engine
This is Rietveld 408576698