⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 175996 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 5:29:43 PM (12 years ago)
Author:
Beth Dakin
Message:

Action menu hit testing is not working properly with all WK1 apps
https://bugs.webkit.org/show_bug.cgi?id=138643
-and corresponding-
rdar://problem/18949376

Reviewed by Tim Horton.

  • WebView/WebActionMenuController.mm:

(-[WebActionMenuController prepareForMenu:withEvent:]):
(-[WebActionMenuController _lookupText:]):

Location:
trunk/Source/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r175972 r175996  
     12014-11-11  Beth Dakin  <bdakin@apple.com>
     2
     3        Action menu hit testing is not working properly with all WK1 apps
     4        https://bugs.webkit.org/show_bug.cgi?id=138643
     5        -and corresponding-
     6        rdar://problem/18949376
     7
     8        Reviewed by Tim Horton.
     9
     10        * WebView/WebActionMenuController.mm:
     11        (-[WebActionMenuController prepareForMenu:withEvent:]):
     12        (-[WebActionMenuController _lookupText:]):
     13
    1142014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
    215
  • trunk/Source/WebKit/mac/WebView/WebActionMenuController.mm

    r175962 r175996  
    118118    [actionMenu removeAllItems];
    119119
    120     WebElementDictionary *hitTestResult = [self performHitTestAtPoint:[_webView convertPoint:event.locationInWindow fromView:nil]];
     120    WebElementDictionary *hitTestResult = [self performHitTestAtPoint:event.locationInWindow];
    121121    NSArray *menuItems = [self _defaultMenuItemsForHitTestResult:hitTestResult];
    122122
     
    337337
    338338    // Convert to screen coordinates.
    339     textBaselineOrigin = [_webView convertPoint:textBaselineOrigin toView:nil];
    340339    textBaselineOrigin = [_webView.window convertRectToScreen:NSMakeRect(textBaselineOrigin.x, textBaselineOrigin.y, 0, 0)].origin;
    341340
Note: See TracChangeset for help on using the changeset viewer.