WebCore:
authoradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2008 20:50:58 +0000 (20:50 +0000)
committeradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2008 20:50:58 +0000 (20:50 +0000)
commitedd58dfc07657bcaa7072848ce72cac22131a292
tree3f7e4f3a92eb9bc682db598c1df591b2742358a4
parenta36b13e1d48e34ff78eaf23ee05454054e319928
WebCore:

        Reviewed by Darin.

        Fix for <rdar://problem/5674667> fast/forms/slider-mouse-events.html is broken by media control checkin 29257

        * rendering/RenderSlider.cpp: (WebCore::HTMLSliderThumbElement::defaultEventHandler):
          After fixing a bug in EventHandler to make sure events always go to the capturing node, this bug was exposed.
          MouseMove and MouseUp events were going to the thumb element, but not to the slider input element.
          This change makes the input element the capturing node, and then the input element forwards the mouse events to the thumb element.
          I also added a missing call to setDefaultHandled for the mousemove event.

LayoutTests:

        Reviewed by Darin.

        Updated test for:
        <rdar://problem/5674667> fast/forms/slider-mouse-events.html is broken by media control checkin 29257

        * fast/forms/slider-mouse-events-expected.txt:
        * fast/forms/slider-mouse-events.html: Now tests mousemove events too.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/slider-mouse-events-expected.txt
LayoutTests/fast/forms/slider-mouse-events.html
WebCore/ChangeLog
WebCore/rendering/RenderSlider.cpp