2009-03-25 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Mar 2009 22:11:47 +0000 (22:11 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Mar 2009 22:11:47 +0000 (22:11 +0000)
commitb39e9574c96e0dc3d5a5fda2f4ac72f5b8c741e1
treed33be4ca085e027306bac47fb119a934ae5e6724
parentc9d71120418fb28dd408df33183437414230f747
2009-03-25  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Darin Adler

        https://bugs.webkit.org/show_bug.cgi?id=24817

        When the slider range is zero, avoid a divide by zero, which caused the
        thumb to be positioned off in the weeds, which broke painting.

        Test: media/video-empty-source.html

        * rendering/RenderSlider.cpp:
        (WebCore::SliderRange::proportionFromValue):
        (WebCore::SliderRange::valueFromProportion):
        (WebCore::sliderPosition):
        (WebCore::RenderSlider::setValueForPosition):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/video-empty-source.html [new file with mode: 0644]
LayoutTests/platform/mac/media/video-empty-source-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/media/video-empty-source-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/media/video-empty-source-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderSlider.cpp