All pastes #2120904 Raw Edit

Untitled

public diff v1 · immutable
#2120904 ·published 2012-02-22 23:01 UTC
rendered paste body
diff --git a/Source/WebCore/page/EventHandler.cpp b/Source/WebCore/page/EventHandler.cppindex 4f0ddee..2be208b 100644--- a/Source/WebCore/page/EventHandler.cpp+++ b/Source/WebCore/page/EventHandler.cpp@@ -2363,7 +2363,14 @@ bool EventHandler::handleGestureEvent(const PlatformGestureEvent& gestureEvent)         handleWheelEvent(syntheticWheelEvent);         return true;     }-    case PlatformEvent::GestureDoubleTap:+    case PlatformEvent::GestureDoubleTap: {+        // FIXME: Refactor this code to not hit test multiple times once hit testing has been corrected as suggested above.+        PlatformMouseEvent fakeMouseDown(gestureEvent.position(), gestureEvent.globalPosition(), LeftButton, PlatformEvent::MousePressed, /* clickCount */ 2, gestureEvent.shiftKey(), gestureEvent.ctrlKey(), gestureEvent.altKey(), gestureEvent.metaKey(), gestureEvent.timestamp() + 1);+        PlatformMouseEvent fakeMouseUp(gestureEvent.position(), gestureEvent.globalPosition(), LeftButton, PlatformEvent::MouseReleased, /* clickCount */ 2, gestureEvent.shiftKey(), gestureEvent.ctrlKey(), gestureEvent.altKey(), gestureEvent.metaKey(), gestureEvent.timestamp() + 1);+        handleMousePressEvent(fakeMouseDown);+        handleMouseReleaseEvent(fakeMouseUp);+        break;+    }     case PlatformEvent::GestureScrollBegin:     case PlatformEvent::GestureScrollEnd:         break;