Changeset 248741 in webkit


Ignore:
Timestamp:
Aug 15, 2019 1:21:05 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

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.

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

Legend:

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

    r248734 r248741  
     12019-08-15  Tim Horton  <timothy_horton@apple.com>
     2
     3        Yellow Lookup highlight gets stuck over Mail messages
     4        https://bugs.webkit.org/show_bug.cgi?id=200778
     5        <rdar://problem/53868514>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        * WebView/WebView.mm:
     10        (-[WebView _showDictionaryLookupPopup:]):
     11        Add a dismissal callback so that when Reveal hides the panel, it also
     12        dismisses the yellow indicator. This matches the behavior in modern WebKit.
     13
    1142019-08-15  Sihui Liu  <sihui_liu@apple.com>
    215
  • trunk/Source/WebKitLegacy/mac/WebView/WebView.mm

    r248734 r248741  
    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>
     
    95089509    }, [self](FloatRect rectInRootViewCoordinates) {
    95099510        return [self _convertRectFromRootView:rectInRootViewCoordinates];
     9511    }, [weakSelf = WeakObjCPtr<WebView>(self)]() {
     9512        [weakSelf.get() _clearTextIndicatorWithAnimation:TextIndicatorWindowDismissalAnimation::FadeOut];
    95109513    });
    95119514}
Note: See TracChangeset for help on using the changeset viewer.