Subpixel-layout: width: max-content; property might cause unnecessary scrollbar.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Feb 2015 06:21:05 +0000 (06:21 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Feb 2015 06:21:05 +0000 (06:21 +0000)
commit5e8a87dea71b43aa3f14222949b2a382ca03f08f
tree38abd19a7254532e770693034f884c166b0d3d27
parent5242ff2f1b27cad73bb9fae47f18040763313d7d
Subpixel-layout: width: max-content; property might cause unnecessary scrollbar.
https://bugs.webkit.org/show_bug.cgi?id=142065

Reviewed by Simon Fraser.

Source/WebCore:

We should not pixelsnap (ceil in this case) logical coordinates during layout.
Should this cause content to be partially cut off, we need to
find the broken piece in the computation logic.

Covered by the unskipped test.

* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::paddedLayoutOverflowRect):

LayoutTests:

Rebaseline. Scroll layer shrinks in certain cases.

* platform/mac-mavericks/editing/input/caret-at-the-edge-of-input-expected.txt:
* platform/mac-mavericks/fast/css/text-overflow-input-expected.txt:
* platform/mac-mavericks/fast/forms/basic-inputs-expected.txt:
* platform/mac-mavericks/fast/forms/control-restrict-line-height-expected.txt:
* platform/mac-mavericks/fast/forms/input-disabled-color-expected.txt:
* platform/mac-mavericks/fast/forms/search/search-size-with-decorations-expected.txt:
* platform/mac-mavericks/http/tests/navigation/javascriptlink-frames-expected.txt:
* platform/mac/TestExpectations:
* platform/mac/fast/forms/control-restrict-line-height-expected.txt:
* platform/mac/fast/forms/input-appearance-selection-expected.txt:
* platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt:
* platform/mac/fast/forms/input-type-text-min-width-expected.txt:
* platform/mac/fast/forms/minWidthPercent-expected.txt:
* platform/mac/fast/forms/search/search-size-with-decorations-expected.txt:
* platform/mac/tables/mozilla/bugs/bug96334-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@180815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/mac-mavericks/editing/input/caret-at-the-edge-of-input-expected.txt
LayoutTests/platform/mac-mavericks/fast/css/text-overflow-input-expected.txt
LayoutTests/platform/mac-mavericks/fast/forms/basic-inputs-expected.txt
LayoutTests/platform/mac-mavericks/fast/forms/control-restrict-line-height-expected.txt
LayoutTests/platform/mac-mavericks/fast/forms/input-disabled-color-expected.txt
LayoutTests/platform/mac-mavericks/fast/forms/search/search-size-with-decorations-expected.txt
LayoutTests/platform/mac-mavericks/http/tests/navigation/javascriptlink-frames-expected.txt
LayoutTests/platform/mac/TestExpectations
LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-selection-expected.txt
LayoutTests/platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt
LayoutTests/platform/mac/fast/forms/input-type-text-min-width-expected.txt
LayoutTests/platform/mac/fast/forms/minWidthPercent-expected.txt
LayoutTests/platform/mac/fast/forms/search/search-size-with-decorations-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug96334-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/rendering/RootInlineBox.cpp