Changeset 175524 in webkit
- Timestamp:
- Nov 4, 2014, 12:20:46 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r175517 r175524 1 2014-11-04 Tim Horton <timothy_horton@apple.com> 2 3 Dictionary lookup panel pops up at random when clicking on selected text 4 https://bugs.webkit.org/show_bug.cgi?id=138353 5 <rdar://problem/18861406> 6 7 * WebProcess/WebPage/WebPage.h: 8 Fix the build; this needs to be public. 9 10 * WebProcess/WebPage/mac/WebPageMac.mm: 11 (WebKit::rangeForDictionaryLookupAtHitTestResult): 12 Use the right selection (the one we just tested) in the change from r175517. 13 1 14 2014-11-04 Tim Horton <timothy_horton@apple.com> 2 15 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h
r175517 r175524 657 657 void stopSpeaking(); 658 658 659 void performDictionaryLookupForSelection(WebCore::Frame*, const WebCore::VisibleSelection&); 659 660 #endif 660 661 … … 972 973 void performDictionaryLookupAtLocation(const WebCore::FloatPoint&); 973 974 void performDictionaryLookupOfCurrentSelection(); 974 void performDictionaryLookupForSelection(WebCore::Frame*, const WebCore::VisibleSelection&);975 975 void performDictionaryLookupForRange(WebCore::Frame*, WebCore::Range&, NSDictionary *options); 976 976 -
trunk/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm
r175517 r175524 572 572 VisibleSelection selection = frame->page()->focusController().focusedOrMainFrame().selection().selection(); 573 573 if (shouldUseSelection(position, selection)) 574 return rangeForDictionaryLookupForSelection( frame->selection().selection(), options);574 return rangeForDictionaryLookupForSelection(selection, options); 575 575 576 576 // As context, we are going to use 250 characters of text before and after the point.
Note:
See TracChangeset
for help on using the changeset viewer.