Changeset 164847 in webkit
- Timestamp:
- Feb 27, 2014 6:05:28 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r164844 r164847 1 2014-02-27 Alexey Proskuryakov <ap@apple.com> 2 3 [Mac] Stop using some deprecated functions in WKView.mm 4 https://bugs.webkit.org/show_bug.cgi?id=129455 5 6 Reviewed by Anders Carlsson. 7 8 * UIProcess/API/mac/WKView.mm: 9 (-[WKView firstRectForCharacterRange:actualRange:]): Use convertRectToScreen, 10 which is a replacement for convertBaseToScreen. Don't check for window being null, 11 because isn't that crazy talk? 12 (-[WKView _postFakeMouseMovedEventForFlagsChangedEvent:]): Use event's location 13 in window instead of current mouse location. Using location that is not synced to 14 event stream rarely makes sense, and it doesn't look like this is one of those cases. 15 (-[WKView performDictionaryLookupAtCurrentMouseLocation]): Ditto. 16 1 17 2014-02-27 Jaehun Lim <ljaehun.lim@samsung.com> 2 18 -
trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm
r164818 r164847 1672 1672 NSRect resultRect = _data->_page->firstRectForCharacterRange(theRange.location, theRange.length); 1673 1673 resultRect = [self convertRect:resultRect toView:nil]; 1674 1675 NSWindow *window = [self window]; 1676 #pragma clang diagnostic push 1677 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 1678 if (window) 1679 resultRect.origin = [window convertBaseToScreen:resultRect.origin]; 1680 #pragma clang diagnostic pop 1674 resultRect = [self.window convertRectToScreen:resultRect]; 1681 1675 1682 1676 if (actualRange) { … … 2152 2146 - (void)_postFakeMouseMovedEventForFlagsChangedEvent:(NSEvent *)flagsChangedEvent 2153 2147 { 2154 #pragma clang diagnostic push 2155 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 2156 NSEvent *fakeEvent = [NSEvent mouseEventWithType:NSMouseMoved location:[[flagsChangedEvent window] convertScreenToBase:[NSEvent mouseLocation]] 2148 NSEvent *fakeEvent = [NSEvent mouseEventWithType:NSMouseMoved location:flagsChangedEvent.locationInWindow 2157 2149 modifierFlags:[flagsChangedEvent modifierFlags] timestamp:[flagsChangedEvent timestamp] windowNumber:[flagsChangedEvent windowNumber] 2158 2150 context:[flagsChangedEvent context] eventNumber:0 clickCount:0 pressure:0]; 2159 #pragma clang diagnostic pop2160 2151 NativeWebMouseEvent webEvent(fakeEvent, self); 2161 2152 _data->_page->handleMouseEvent(webEvent); … … 3094 3085 - (void)performDictionaryLookupAtCurrentMouseLocation 3095 3086 { 3096 NSPoint thePoint = [NSEvent mouseLocation]; 3097 #pragma clang diagnostic push 3098 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 3099 thePoint = [[self window] convertScreenToBase:thePoint]; 3100 #pragma clang diagnostic pop 3101 thePoint = [self convertPoint:thePoint fromView:nil]; 3102 3103 _data->_page->performDictionaryLookupAtLocation(FloatPoint(thePoint.x, thePoint.y)); 3087 _data->_page->performDictionaryLookupAtLocation([self convertPoint:[[NSApp currentEvent] locationInWindow] fromView:nil]); 3104 3088 } 3105 3089
Note: See TracChangeset
for help on using the changeset viewer.