Changeset 175524 in webkit


Ignore:
Timestamp:
Nov 4, 2014, 12:20:46 AM (11 years ago)
Author:
timothy_horton@apple.com
Message:

Dictionary lookup panel pops up at random when clicking on selected text
https://bugs.webkit.org/show_bug.cgi?id=138353
<rdar://problem/18861406>

  • WebProcess/WebPage/WebPage.h:

Fix the build; this needs to be public.

  • WebProcess/WebPage/mac/WebPageMac.mm:

(WebKit::rangeForDictionaryLookupAtHitTestResult):
Use the right selection (the one we just tested) in the change from r175517.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r175517 r175524  
     12014-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
    1142014-11-04  Tim Horton  <timothy_horton@apple.com>
    215
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h

    r175517 r175524  
    657657    void stopSpeaking();
    658658
     659    void performDictionaryLookupForSelection(WebCore::Frame*, const WebCore::VisibleSelection&);
    659660#endif
    660661
     
    972973    void performDictionaryLookupAtLocation(const WebCore::FloatPoint&);
    973974    void performDictionaryLookupOfCurrentSelection();
    974     void performDictionaryLookupForSelection(WebCore::Frame*, const WebCore::VisibleSelection&);
    975975    void performDictionaryLookupForRange(WebCore::Frame*, WebCore::Range&, NSDictionary *options);
    976976
  • trunk/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm

    r175517 r175524  
    572572    VisibleSelection selection = frame->page()->focusController().focusedOrMainFrame().selection().selection();
    573573    if (shouldUseSelection(position, selection))
    574         return rangeForDictionaryLookupForSelection(frame->selection().selection(), options);
     574        return rangeForDictionaryLookupForSelection(selection, options);
    575575
    576576    // 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.