Changeset 47171 in webkit


Ignore:
Timestamp:
Aug 12, 2009 6:00:41 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-08-12 Alpha Lam <hclam@chromium.org>

Reviewed by Simon Fraser.

Fix regression for dragging the media controller thumb.
https://bugs.webkit.org/show_bug.cgi?id=28211

Add a layout test to make sure dragging the timebar thumb of media
controls causes seeks.

  • media/controls-drag-timebar-expected.txt: Added.
  • media/controls-drag-timebar.html: Added.

2009-08-12 Alpha Lam <hclam@chromium.org>

Reviewed by Simon Fraser.

Fix regression for dragging the media controller thumb.
https://bugs.webkit.org/show_bug.cgi?id=28211

Modified the conditions for rejecting events on the media controller
to only rejecting mouse events not from the left button.

Test: media/controls-drag-timebar.html

  • rendering/MediaControlElements.cpp: (WebCore::MediaControlTimelineElement::defaultEventHandler):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r47170 r47171  
     12009-08-12  Alpha Lam  <hclam@chromium.org>
     2
     3        Reviewed by Simon Fraser.
     4
     5        Fix regression for dragging the media controller thumb.
     6        https://bugs.webkit.org/show_bug.cgi?id=28211
     7
     8        Add a layout test to make sure dragging the timebar thumb of media
     9        controls causes seeks.
     10
     11        * media/controls-drag-timebar-expected.txt: Added.
     12        * media/controls-drag-timebar.html: Added.
     13
    1142009-08-12  Dumitru Daniliuc  <dumi@chromium.org>
    215
  • trunk/WebCore/ChangeLog

    r47170 r47171  
     12009-08-12  Alpha Lam  <hclam@chromium.org>
     2
     3        Reviewed by Simon Fraser.
     4
     5        Fix regression for dragging the media controller thumb.
     6        https://bugs.webkit.org/show_bug.cgi?id=28211
     7
     8        Modified the conditions for rejecting events on the media controller
     9        to only rejecting mouse events not from the left button.
     10
     11        Test: media/controls-drag-timebar.html
     12
     13        * rendering/MediaControlElements.cpp:
     14        (WebCore::MediaControlTimelineElement::defaultEventHandler):
     15
    1162009-08-12  Dumitru Daniliuc  <dumi@chromium.org>
    217
  • trunk/WebCore/rendering/MediaControlElements.cpp

    r47140 r47171  
    483483void MediaControlTimelineElement::defaultEventHandler(Event* event)
    484484{
    485     // Left button is 0. Accepts only if mouse event is from left button.
    486     if (!event->isMouseEvent() || static_cast<MouseEvent*>(event)->button())
     485    // Left button is 0. Rejects mouse events not from left button.
     486    if (event->isMouseEvent() && static_cast<MouseEvent*>(event)->button())
    487487        return;
    488488
Note: See TracChangeset for help on using the changeset viewer.