| Index: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| index 7e2becde31d1c2cfad97cc4ed0bdaad29c3d9942..a6a1db68676a4229937e685667849be1d328e084 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| @@ -476,7 +476,10 @@ LayoutUnit LayoutFlexibleBox::childIntrinsicWidth(const LayoutBox& child) const
|
| {
|
| if (!child.isHorizontalWritingMode() && needToStretchChildLogicalHeight(child))
|
| return constrainedChildIntrinsicContentLogicalHeight(child);
|
| - // TOOO(cbiesinger): should this return the maxPreferredLogicalWidth?
|
| + if (child.isHorizontalWritingMode() && child.styleRef().width().isAuto()) {
|
| + // This value is already clamped by min/max-width
|
| + return child.maxPreferredLogicalWidth();
|
| + }
|
| return child.size().width();
|
| }
|
|
|
|
|