Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutReplaced.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp |
| index f9822157bb6549f5d03c19b554367585db36a873..f3cd01520133bbdec9a1bae34546253bedcc96d9 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp |
| @@ -824,7 +824,11 @@ void LayoutReplaced::computePreferredLogicalWidths() { |
| // containing block. |
| const Length& logicalWidth = style()->logicalWidth(); |
| if (logicalWidth.isPercentOrCalc() || logicalWidth.isFillAvailable() || |
| - logicalWidth.isFitContent()) |
| + logicalWidth.isFitContent() || |
| + (logicalWidth.isAuto() && (style()->logicalMinWidth().isFillAvailable() || |
| + style()->logicalMinWidth().isFitContent() || |
|
mstensho (USE GERRIT)
2016/11/10 19:54:25
Why no isPercentOrCalc() here?
jfernandez
2016/11/10 20:54:39
umm, not sure, I thought about that. I tried to ke
|
| + style()->logicalMaxWidth().isFillAvailable() || |
| + style()->logicalMaxWidth().isFitContent()))) |
| computeIntrinsicLogicalWidths(m_minPreferredLogicalWidth, |
| m_maxPreferredLogicalWidth); |
| else |