Changeset 192335 in webkit
- Timestamp:
- Nov 11, 2015, 4:47:29 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r192333 r192335 1 2015-11-11 Anders Carlsson <andersca@apple.com> 2 3 REGRESSION (r191407): Context menus are missing Services 4 https://bugs.webkit.org/show_bug.cgi?id=151167 5 rdar://problem/23500769 6 7 Reviewed by Tim Horton. 8 9 * UIProcess/mac/WebContextMenuProxyMac.mm: 10 (WebKit::WebContextMenuProxyMac::showContextMenu): 11 Use contentsToRootView to better indicate which coordinate system we're using. 12 13 * WebProcess/WebPage/WebContextMenu.cpp: 14 (WebKit::WebContextMenu::show): 15 Use +[NSMenu popUpContextMenu:withEvent:forView:] so we'll get service menus where applicable. 16 1 17 2015-11-11 Anders Carlsson <andersca@apple.com> 2 18 -
trunk/Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm
r191824 r192335 392 392 393 393 [[WKMenuTarget sharedMenuTarget] setMenuProxy:this]; 394 [m_menu popUpMenuPositioningItem:nil atLocation:m_context.menuLocation() inView:m_webView]; 394 395 NSPoint menuLocation = [m_webView convertPoint:m_context.menuLocation() toView:nil]; 396 NSEvent *event = [NSEvent mouseEventWithType:NSRightMouseUp location:menuLocation modifierFlags:0 timestamp:0 windowNumber:m_webView.window.windowNumber context:nil eventNumber:0 clickCount:0 pressure:0]; 397 [NSMenu popUpContextMenu:m_menu.get() withEvent:event forView:m_webView]; 395 398 } 396 399 -
trunk/Source/WebKit2/WebProcess/WebPage/WebContextMenu.cpp
r191131 r192335 65 65 menuItemsWithUserData(menuItems, userData); 66 66 67 auto menuLocation = view->contentsToWindow(controller.hitTestResult().roundedPointInInnerNodeFrame()); 67 auto menuLocation = view->contentsToRootView(controller.hitTestResult().roundedPointInInnerNodeFrame()); 68 68 69 ContextMenuContextData contextMenuContextData(menuLocation, menuItems, controller.context()); 69 70
Note:
See TracChangeset
for help on using the changeset viewer.