| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index 47b5efa9f875700a3ff324e7abdb626ee2a76515..a232bd62ff54de97a73f387e15a141a07d7066cd 100644
|
| --- a/Source/core/rendering/RenderBox.cpp
|
| +++ b/Source/core/rendering/RenderBox.cpp
|
| @@ -2509,7 +2509,7 @@ bool RenderBox::sizesLogicalWidthToFitContent(SizeType widthType) const
|
| bool RenderBox::autoWidthShouldFitContent() const
|
| {
|
| return node() && (node()->hasTagName(inputTag) || node()->hasTagName(selectTag) || node()->hasTagName(buttonTag)
|
| - || node()->hasTagName(textareaTag) || node()->hasTagName(legendTag));
|
| + || node()->hasTagName(textareaTag) || (node()->hasTagName(legendTag) && !style()->hasOutOfFlowPosition()));
|
| }
|
|
|
| void RenderBox::computeInlineDirectionMargins(RenderBlock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUnit& marginStart, LayoutUnit& marginEnd) const
|
|
|