summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/fixed-width-intrinsic-width-excludes-scrollbars.html
Commit message (Collapse)AuthorAgeFilesLines
* Flexboxes incorrectly add the scrollbar width to the intrinsic width of ↵ojan@chromium.org2013-01-101-0/+30
fixed-width items https://bugs.webkit.org/show_bug.cgi?id=106591 Reviewed by Levi Weintraub. Source/WebCore: The scrollbar width should only be added if the width of the flex item is not fixed. Test: fast/css/fixed-width-intrinsic-width-excludes-scrollbars.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::computePreferredLogicalWidths): Use shared helper method. This also happens to fix the vertical writing-mode case. * rendering/RenderBox.cpp: (WebCore::RenderBox::instrinsicScrollbarLogicalWidth): (WebCore): * rendering/RenderBox.h: (RenderBox): Add a method for determining the scrollbar's contribution to the boxes intrinsic width. * rendering/RenderDeprecatedFlexibleBox.cpp: (WebCore::RenderDeprecatedFlexibleBox::computePreferredLogicalWidths): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::computePreferredLogicalWidths): Use shared code for determining the scrollbar width and only add the width when computing the intrinsic widths. * rendering/RenderGrid.cpp: (WebCore::RenderGrid::computePreferredLogicalWidths):\ Just adding a FIXME to account for scrollbar width. LayoutTests: * fast/css/fixed-width-intrinsic-width-excludes-scrollbars-expected.txt: Added. * fast/css/fixed-width-intrinsic-width-excludes-scrollbars.html: Added. * fast/css/positioned-overflow-scroll.html: git-svn-id: svn://svn.chromium.org/blink/trunk@139351 bbb929c8-8fbe-4397-9dbb-9b2b20218538