Changeset 239321 in webkit


Ignore:
Timestamp:
Dec 17, 2018 10:30:34 PM (5 years ago)
Author:
Wenson Hsieh
Message:

Tap highlights should not be shown on iOSMac
https://bugs.webkit.org/show_bug.cgi?id=192797
<rdar://problem/46793995>

Reviewed by Tim Horton.

WKWebViews in iOSMac should avoid painting tap highlights, since tap highlights are not present in the rest of
the macOS platform. Simply disable this functionality by bailing in -[WKContentView _showTapHighlight].

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView _showTapHighlight]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r239318 r239321  
     12018-12-17  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Tap highlights should not be shown on iOSMac
     4        https://bugs.webkit.org/show_bug.cgi?id=192797
     5        <rdar://problem/46793995>
     6
     7        Reviewed by Tim Horton.
     8
     9        WKWebViews in iOSMac should avoid painting tap highlights, since tap highlights are not present in the rest of
     10        the macOS platform. Simply disable this functionality by bailing in `-[WKContentView _showTapHighlight]`.
     11
     12        * UIProcess/ios/WKContentViewInteraction.mm:
     13        (-[WKContentView _showTapHighlight]):
     14
    1152018-12-17  Wenson Hsieh  <wenson_hsieh@apple.com>
    216
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r239140 r239321  
    12571257{
    12581258    auto shouldPaintTapHighlight = [&](const WebCore::FloatRect& rect) {
     1259#if PLATFORM(IOSMAC)
     1260        UNUSED_PARAM(rect);
     1261        return NO;
     1262#else
    12591263        static const float highlightPaintThreshold = 0.3; // 30%
    12601264        float highlightArea = 0;
     
    12661270        }
    12671271        return highlightArea < rect.area() * highlightPaintThreshold;
     1272#endif
    12681273    };
    12691274
Note: See TracChangeset for help on using the changeset viewer.