Changeset 239321 in webkit
- Timestamp:
- Dec 17, 2018 10:30:34 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r239318 r239321 1 2018-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 1 15 2018-12-17 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r239140 r239321 1257 1257 { 1258 1258 auto shouldPaintTapHighlight = [&](const WebCore::FloatRect& rect) { 1259 #if PLATFORM(IOSMAC) 1260 UNUSED_PARAM(rect); 1261 return NO; 1262 #else 1259 1263 static const float highlightPaintThreshold = 0.3; // 30% 1260 1264 float highlightArea = 0; … … 1266 1270 } 1267 1271 return highlightArea < rect.area() * highlightPaintThreshold; 1272 #endif 1268 1273 }; 1269 1274
Note: See TracChangeset
for help on using the changeset viewer.