2011-05-24 Tony Chang <tony@chromium.org>
authorTony Chang <tony@chromium.org>
Tue, 24 May 2011 17:43:55 +0000 (17:43 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 24 May 2011 19:15:37 +0000 (16:15 -0300)
commit49b8a1efb3e96cf1d27e99ee8d9438c8fe60b6df
tree387769c629f378d521d3d32ff85aefd10934d754
parent6b1ee9e3feaf460e77636a2993af931d7e8d75f8
2011-05-24  Tony Chang  <tony@chromium.org>

        Reviewed by James Robinson.

        fix render overflow computation for input type=range
        https://bugs.webkit.org/show_bug.cgi?id=61132

        * fast/forms/slider-hit-testing-expected.txt: Added.
        * fast/forms/slider-hit-testing.html: Added.
2011-05-24  Tony Chang  <tony@chromium.org>

        Reviewed by James Robinson.

        fix render overflow computation for input type=range
        https://bugs.webkit.org/show_bug.cgi?id=61132

        Test: fast/forms/slider-hit-testing.html

        We need to clear m_overflow otherwise we use the first
        size of the slider for hit testing (i.e., changes to the size
        cause problems).  This only shows up if the thumb isn't contained
        in the bounds of the slider.  Making the range have a smaller height
        than the thumb shows the bug.

        * rendering/RenderSlider.cpp:
        (WebCore::RenderSlider::layout): Clear the overflow during layout
            so we re-compute the overflow based on the current size of the
            slider.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87168 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/slider-hit-testing-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/slider-hit-testing.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderSlider.cpp