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

Changeset 248745 in webkit


Ignore:
Timestamp:
Aug 15, 2019, 1:50:02 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r248741. rdar://problem/54360841

Yellow Lookup highlight gets stuck over Mail messages
https://bugs.webkit.org/show_bug.cgi?id=200778
<rdar://problem/53868514>

Reviewed by Wenson Hsieh.

  • WebView/WebView.mm: (-[WebView _showDictionaryLookupPopup:]): Add a dismissal callback so that when Reveal hides the panel, it also dismisses the yellow indicator. This matches the behavior in modern WebKit.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248741 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-608-branch/Source/WebKitLegacy/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608-branch/Source/WebKitLegacy/mac/ChangeLog

    r247984 r248745  
     12019-08-15  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r248741. rdar://problem/54360841
     4
     5    Yellow Lookup highlight gets stuck over Mail messages
     6    https://bugs.webkit.org/show_bug.cgi?id=200778
     7    <rdar://problem/53868514>
     8   
     9    Reviewed by Wenson Hsieh.
     10   
     11    * WebView/WebView.mm:
     12    (-[WebView _showDictionaryLookupPopup:]):
     13    Add a dismissal callback so that when Reveal hides the panel, it also
     14    dismisses the yellow indicator. This matches the behavior in modern WebKit.
     15   
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2019-08-15  Tim Horton  <timothy_horton@apple.com>
     20
     21            Yellow Lookup highlight gets stuck over Mail messages
     22            https://bugs.webkit.org/show_bug.cgi?id=200778
     23            <rdar://problem/53868514>
     24
     25            Reviewed by Wenson Hsieh.
     26
     27            * WebView/WebView.mm:
     28            (-[WebView _showDictionaryLookupPopup:]):
     29            Add a dismissal callback so that when Reveal hides the panel, it also
     30            dismisses the yellow indicator. This matches the behavior in modern WebKit.
     31
    1322019-07-29  Alan Coon  <alancoon@apple.com>
    233
  • branches/safari-608-branch/Source/WebKitLegacy/mac/WebView/WebView.mm

    r247117 r248745  
    247247#import <wtf/SoftLinking.h>
    248248#import <wtf/StdLibExtras.h>
     249#import <wtf/WeakObjCPtr.h>
    249250#import <wtf/WorkQueue.h>
    250251#import <wtf/spi/darwin/dyldSPI.h>
     
    95269527    }, [self](FloatRect rectInRootViewCoordinates) {
    95279528        return [self _convertRectFromRootView:rectInRootViewCoordinates];
     9529    }, [weakSelf = WeakObjCPtr<WebView>(self)]() {
     9530        [weakSelf.get() _clearTextIndicatorWithAnimation:TextIndicatorWindowDismissalAnimation::FadeOut];
    95289531    });
    95299532}
Note: See TracChangeset for help on using the changeset viewer.