Changeset 106476 in webkit


Ignore:
Timestamp:
Feb 1, 2012 10:45:17 AM (12 years ago)
Author:
Nate Chapin
Message:

Source/WebCore: preventDefault() in a mousedown in a subframe should not
prevent the scrollbar from handling mouse movements if the
cursor leaves the subframe.
https://bugs.webkit.org/show_bug.cgi?id=73097

Reviewed by Darin Adler.

Test: fast/events/scroll-div-with-prevent-default-in-subframe.html

  • page/EventHandler.cpp:

(WebCore::EventHandler::handleMousePressEvent):

LayoutTests: Test for https://bugs.webkit.org/show_bug.cgi?id=73097.
Test adapted from repro case provided by zacklloyd@google.com.

Reviewed by Darin Adler.

  • fast/events/resources/subframe-with-scrollable-div.html: Added.
  • fast/events/scroll-div-with-prevent-default-in-subframe-expected.txt: Added.
  • fast/events/scroll-div-with-prevent-default-in-subframe.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r106472 r106476  
     12012-02-01  Nate Chapin  <japhet@chromium.org>
     2
     3        Test for https://bugs.webkit.org/show_bug.cgi?id=73097.
     4        Test adapted from repro case provided by zacklloyd@google.com.
     5
     6        Reviewed by Darin Adler.
     7
     8        * fast/events/resources/subframe-with-scrollable-div.html: Added.
     9        * fast/events/scroll-div-with-prevent-default-in-subframe-expected.txt: Added.
     10        * fast/events/scroll-div-with-prevent-default-in-subframe.html: Added.
     11
    1122012-02-01  Mario Sanchez Prada  <msanchez@igalia.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r106472 r106476  
     12012-02-01  Nate Chapin  <japhet@chromium.org>
     2
     3        preventDefault() in a mousedown in a subframe should not
     4        prevent the scrollbar from handling mouse movements if the
     5        cursor leaves the subframe.
     6        https://bugs.webkit.org/show_bug.cgi?id=73097
     7
     8        Reviewed by Darin Adler.
     9
     10        Test: fast/events/scroll-div-with-prevent-default-in-subframe.html
     11
     12        * page/EventHandler.cpp:
     13        (WebCore::EventHandler::handleMousePressEvent):
     14
    1152012-02-01  Mario Sanchez Prada  <msanchez@igalia.com>
    216
  • trunk/Source/WebCore/page/EventHandler.cpp

    r105659 r106476  
    14621462
    14631463    bool swallowEvent = dispatchMouseEvent(eventNames().mousedownEvent, targetNode(mev), true, m_clickCount, mouseEvent, true);
    1464     m_capturesDragging = !swallowEvent;
     1464    m_capturesDragging = !swallowEvent || mev.scrollbar();
    14651465
    14661466    // If the hit testing originally determined the event was in a scrollbar, refetch the MouseEventWithHitTestResults
Note: See TracChangeset for help on using the changeset viewer.