Changeset 106572 in webkit


Ignore:
Timestamp:
Feb 2, 2012 11:03:29 AM (12 years ago)
Author:
andersca@apple.com
Message:

NPAPI will not send mouse up events when mouse is outside plugin area
https://bugs.webkit.org/show_bug.cgi?id=77657
<rdar://problem/10160674>

Reviewed by Andreas Kling.

Source/WebCore:

Export EventHandler::setCapturingMouseEventsNode.

  • WebCore.exp.in:

Source/WebKit2:

Use EventHandler::setCapturingMouseEventsNode to ensure we get all the mouse events when the mouse is down.

  • WebProcess/Plugins/PluginView.cpp:

(WebKit::PluginView::handleEvent):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r106568 r106572  
     12012-02-02  Anders Carlsson  <andersca@apple.com>
     2
     3        NPAPI will not send mouse up events when mouse is outside plugin area
     4        https://bugs.webkit.org/show_bug.cgi?id=77657
     5        <rdar://problem/10160674>
     6
     7        Reviewed by Andreas Kling.
     8
     9        Export EventHandler::setCapturingMouseEventsNode.
     10
     11        * WebCore.exp.in:
     12
    1132012-02-02  Antti Koivisto  <antti@apple.com>
    214
  • trunk/Source/WebCore/WebCore.exp.in

    r106492 r106572  
    237237__ZN7WebCore12EventHandler23handleMouseReleaseEventERKNS_18PlatformMouseEventE
    238238__ZN7WebCore12EventHandler24logicalScrollRecursivelyENS_22ScrollLogicalDirectionENS_17ScrollGranularityEPNS_4NodeE
     239__ZN7WebCore12EventHandler27setCapturingMouseEventsNodeEN3WTF10PassRefPtrINS_4NodeEEE
    239240__ZN7WebCore12EventHandler31passMouseMovedEventToScrollbarsEP7NSEvent
    240241__ZN7WebCore12EventHandler31passMouseMovedEventToScrollbarsERKNS_18PlatformMouseEventE
  • trunk/Source/WebKit2/ChangeLog

    r106559 r106572  
     12012-02-02  Anders Carlsson  <andersca@apple.com>
     2
     3        NPAPI will not send mouse up events when mouse is outside plugin area
     4        https://bugs.webkit.org/show_bug.cgi?id=77657
     5        <rdar://problem/10160674>
     6
     7        Reviewed by Andreas Kling.
     8
     9        Use EventHandler::setCapturingMouseEventsNode to ensure we get all the mouse events when the mouse is down.
     10
     11        * WebProcess/Plugins/PluginView.cpp:
     12        (WebKit::PluginView::handleEvent):
     13
    1142012-02-02  Claudio Saavedra  <csaavedra@igalia.com> and Martin Robinson  <mrobinson@igalia.com>
    215
  • trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp

    r103132 r106572  
    632632
    633633        // FIXME: Clicking in a scroll bar should not change focus.
    634         if (currentEvent->type() == WebEvent::MouseDown)
     634        if (currentEvent->type() == WebEvent::MouseDown) {
    635635            focusPluginElement();
     636            frame()->eventHandler()->setCapturingMouseEventsNode(m_pluginElement.get());
     637        } else if (currentEvent->type() == WebEvent::MouseUp)
     638            frame()->eventHandler()->setCapturingMouseEventsNode(0);
    636639
    637640        didHandleEvent = m_plugin->handleMouseEvent(static_cast<const WebMouseEvent&>(*currentEvent));
Note: See TracChangeset for help on using the changeset viewer.