Changeset 128040 in webkit


Ignore:
Timestamp:
Sep 10, 2012 3:55:13 AM (12 years ago)
Author:
allan.jensen@nokia.com
Message:

[Qt][WK2] REGRESSION(r127861): It made one test fail and one test crash
https://bugs.webkit.org/show_bug.cgi?id=96243

Reviewed by Kenneth Rohde Christiansen.

Skip the code if QClipboard is not available, and give WebCore a chance to handle the event first.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::handleMouseEvent):

  • WebProcess/WebPage/qt/WebPageQt.cpp:

(WebKit::WebPage::handleMouseReleaseEvent):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r128038 r128040  
     12012-09-10  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        [Qt][WK2] REGRESSION(r127861): It made one test fail and one test crash
     4        https://bugs.webkit.org/show_bug.cgi?id=96243
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Skip the code if QClipboard is not available, and give WebCore a chance to handle the event first.
     9
     10        * WebProcess/WebPage/WebPage.cpp:
     11        (WebKit::handleMouseEvent):
     12        * WebProcess/WebPage/qt/WebPageQt.cpp:
     13        (WebKit::WebPage::handleMouseReleaseEvent):
     14
    1152012-09-10  Simon Hausmann  <simon.hausmann@nokia.com>
    216
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r128030 r128040  
    13521352            return handled;
    13531353        }
    1354         case PlatformEvent::MouseReleased:
     1354        case PlatformEvent::MouseReleased: {
     1355            bool handled = frame->eventHandler()->handleMouseReleaseEvent(platformMouseEvent);
    13551356#if PLATFORM(QT)
    1356             if (page->handleMouseReleaseEvent(platformMouseEvent))
    1357                 return true;
    1358 #endif
    1359             return frame->eventHandler()->handleMouseReleaseEvent(platformMouseEvent);
     1357            if (!handled)
     1358                handled = page->handleMouseReleaseEvent(platformMouseEvent);
     1359#endif
     1360            return handled;
     1361        }
    13601362        case PlatformEvent::MouseMoved:
    13611363            if (onlyUpdateScrollbars)
  • trunk/Source/WebKit2/WebProcess/WebPage/qt/WebPageQt.cpp

    r127862 r128040  
    443443bool WebPage::handleMouseReleaseEvent(const PlatformMouseEvent& platformMouseEvent)
    444444{
     445#ifndef QT_NO_CLIPBOARD
    445446    if (platformMouseEvent.button() != WebCore::MiddleButton)
    446447        return false;
     
    453454        }
    454455    }
     456#endif
    455457    return false;
    456458}
Note: See TracChangeset for help on using the changeset viewer.