Changeset 60489 in webkit
- Timestamp:
- Jun 1, 2010 11:04:19 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r60488 r60489 1 2010-05-12 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] Get more mouse tests passing 6 https://bugs.webkit.org/show_bug.cgi?id=39040 7 8 Unskip tests that are now passing. 9 10 * platform/gtk/Skipped: 11 1 12 2010-06-01 Alexey Proskuryakov <ap@apple.com> 2 13 -
trunk/LayoutTests/platform/gtk/Skipped
r60488 r60489 1216 1216 fast/events/blur-focus-window-should-blur-focus-element.html 1217 1217 fast/events/content-changed-during-drop.html 1218 fast/events/context-onmousedown-event.html1219 1218 fast/events/crash-on-mutate-during-drop.html 1220 1219 fast/events/drag-in-frames.html 1221 1220 fast/events/frame-tab-focus.html 1222 1221 fast/events/js-keyboard-event-creation.html 1223 fast/events/mouse-click-events.html1224 1222 fast/events/mouseup-from-button2.html 1225 1223 fast/events/offsetX-offsetY.html … … 2143 2141 fast/events/context-no-deselect.html 2144 2142 fast/events/event-listener-on-link.html 2145 fast/events/event-sender-mouse-moved.html2146 2143 fast/events/focusingUnloadedFrame.html 2147 2144 fast/events/keydown-1.html 2148 2145 fast/events/label-focus.html 2149 fast/events/mouseout-dead-node.html2150 2146 fast/events/onload-re-entry.html 2151 2147 fast/events/onloadFrameCrash.html -
trunk/WebKitTools/ChangeLog
r60488 r60489 1 2010-06-01 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] Get more mouse tests passing 6 https://bugs.webkit.org/show_bug.cgi?id=39040 7 8 Reproduce the logic from the Windows EventSender for mapping 9 button numbers to GDK button numbers. Move this logic to the 10 prepareMouseButtonEvent helper. 11 12 * DumpRenderTree/gtk/EventSender.cpp: 13 (prepareMouseButtonEvent): Reproduce Windows logic. 14 (contextClickCallback): Move mapping logic to prepareMouseButtonEvent. 15 (mouseDownCallback): Ditto. 16 (mouseUpCallback): Ditto. 17 1 18 2010-06-01 Alexey Proskuryakov <ap@apple.com> 2 19 … … 34 51 to achieve, it seems unnecessary. 35 52 36 2010-0 6-01Martin Robinson <mrobinson@igalia.com>53 2010-05-12 Martin Robinson <mrobinson@igalia.com> 37 54 38 55 Reviewed by Xan Lopez. -
trunk/WebKitTools/DumpRenderTree/gtk/EventSender.cpp
r60482 r60489 110 110 } 111 111 112 bool prepareMouseButtonEvent(GdkEvent* event, int button)112 bool prepareMouseButtonEvent(GdkEvent* event, int eventSenderButtonNumber) 113 113 { 114 114 WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame); … … 116 116 return false; 117 117 118 // The logic for mapping EventSender button numbers to GDK button 119 // numbers originates from the Windows EventSender. 120 int gdkButtonNumber = 3; 121 if (eventSenderButtonNumber >= 0 && eventSenderButtonNumber <= 2) 122 gdkButtonNumber = eventSenderButtonNumber + 1; 123 124 // fast/events/mouse-click-events expects the 4th button 125 // to be event.button = 1, so send a middle-button event. 126 else if (eventSenderButtonNumber == 3) 127 gdkButtonNumber = 2; 128 118 129 memset(event, 0, sizeof(event)); 119 event->button.button = button;130 event->button.button = gdkButtonNumber; 120 131 event->button.x = lastMousePositionX; 121 132 event->button.y = lastMousePositionY; … … 145 156 { 146 157 GdkEvent event; 147 if (!prepareMouseButtonEvent(&event, 3))158 if (!prepareMouseButtonEvent(&event, 2)) 148 159 return JSValueMakeUndefined(context); 149 160 … … 184 195 static JSValueRef mouseDownCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 185 196 { 186 int button = 1;197 int button = 0; 187 198 if (argumentCount == 1) { 188 button = static_cast<int>(JSValueToNumber(context, arguments[0], exception)) + 1;199 button = static_cast<int>(JSValueToNumber(context, arguments[0], exception)); 189 200 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context)); 190 201 } … … 229 240 static JSValueRef mouseUpCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 230 241 { 231 int button = 1;242 int button = 0; 232 243 if (argumentCount == 1) { 233 button = static_cast<int>(JSValueToNumber(context, arguments[0], exception)) + 1;244 button = static_cast<int>(JSValueToNumber(context, arguments[0], exception)); 234 245 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context)); 235 246 }
Note: See TracChangeset
for help on using the changeset viewer.