Changeset 243015 in webkit
- Timestamp:
- Mar 15, 2019 3:06:42 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r243014 r243015 1 2019-03-15 Dean Jackson <dino@apple.com> 2 3 Provide an option for an always-on fast click mode in iOS 4 https://bugs.webkit.org/show_bug.cgi?id=195822 5 <rdar://problem/48939357> 6 7 Reviewed by Sam Weinig. 8 9 New test for "always fast click" mode. 10 11 * fast/events/ios/ipad/fast-click-always-expected.txt: Added. 12 * fast/events/ios/ipad/fast-click-always.html: Copied from LayoutTests/fast/events/ios/ipad/fast-click-double-tap-sends-click-on-insignificant-zoom.html. 13 * fast/events/ios/ipad/fast-click-double-tap-sends-click-on-insignificant-zoom.html: 14 1 15 2019-03-15 Jer Noble <jer.noble@apple.com> 2 16 -
trunk/LayoutTests/fast/events/ios/ipad/fast-click-always.html
r243014 r243015 1 <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->1 <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true internal:FastClicksEverywhere=true ] --> 2 2 3 3 <html> 4 <meta name="viewport" content="width= 500">4 <meta name="viewport" content="width=800"> 5 5 <head> 6 6 <style> … … 13 13 } 14 14 </style> 15 <script src="../../../ resources/ui-helper.js"></script>15 <script src="../../../../resources/ui-helper.js"></script> 16 16 <script> 17 17 if (window.testRunner) { … … 49 49 <div id="target"></div> 50 50 <div id="description">This document doesn't have fast clicks because 51 it sets a viewport width. However, it doesn't have a large amount of52 zoom on double tap, so double tapping on the rectangle53 above should send a click event.</div>51 it sets a viewport width. It has a significant zoom since the viewport 52 width is significantly bigger than the body width. However, it sets fast click everywhere to 53 on, so double tapping on the rectangle above should send a click event.</div> 54 54 </body> 55 55 </html> -
trunk/LayoutTests/fast/events/ios/ipad/fast-click-double-tap-sends-click-on-insignificant-zoom.html
r242757 r243015 13 13 } 14 14 </style> 15 <script src="../../../ resources/ui-helper.js"></script>15 <script src="../../../../resources/ui-helper.js"></script> 16 16 <script> 17 17 if (window.testRunner) { -
trunk/Source/WebKit/ChangeLog
r243012 r243015 1 2019-03-15 Dean Jackson <dino@apple.com> 2 3 Provide an option for an always-on fast click mode in iOS 4 https://bugs.webkit.org/show_bug.cgi?id=195822 5 <rdar://problem/48939357> 6 7 Reviewed by Sam Weinig. 8 9 Add an option that will always trigger a click and never 10 wait for a double tap to zoom. It is disabled by default. 11 12 * Shared/WebPreferences.yaml: 13 * UIProcess/ios/WKContentViewInteraction.mm: 14 (-[WKContentView _handleSmartMagnificationInformationForPotentialTap:renderRect:fitEntireRect:viewportMinimumScale:viewportMaximumScale:]): 15 1 16 2019-03-15 Timothy Hatcher <timothy@apple.com> 2 17 -
trunk/Source/WebKit/Shared/WebPreferences.yaml
r242920 r243015 1487 1487 category: internal 1488 1488 1489 FastClicksEverywhere: 1490 type: bool 1491 defaultValue: false 1492 condition: PLATFORM(IOS_FAMILY) 1493 humanReadableName: "Fast clicks everywhere" 1494 humanReadableDescription: "Force fast clicks on all pages" 1495 webcoreBinding: none 1496 category: internal 1497 1489 1498 InputTypeColorEnabled: 1490 1499 type: bool -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r242968 r243015 1505 1505 if (!_potentialTapInProgress) 1506 1506 return; 1507 1508 if (_page->preferences().fastClicksEverywhere()) { 1509 RELEASE_LOG(ViewGestures, "Potential tap found an element and fast taps are forced on. Trigger click. (%p)", self); 1510 [self _setDoubleTapGesturesEnabled:NO]; 1511 return; 1512 } 1507 1513 1508 1514 auto targetScale = _smartMagnificationController->zoomFactorForTargetRect(renderRect, fitEntireRect, viewportMinimumScale, viewportMaximumScale);
Note: See TracChangeset
for help on using the changeset viewer.