Title: [244414] trunk/Source
Revision
244414
Author
[email protected]
Date
2019-04-17 17:42:36 -0700 (Wed, 17 Apr 2019)

Log Message

Adopt different scroll view flashing SPI
https://bugs.webkit.org/show_bug.cgi?id=197043
<rdar://problem/49996476>

Reviewed by Wenson Hsieh.

Source/WebKit:

* Platform/spi/ios/UIKitSPI.h:
* UIProcess/ios/WKKeyboardScrollingAnimator.mm:
(-[WKKeyboardScrollViewAnimator scrollToContentOffset:animated:]):

Source/WTF:

* wtf/Platform.h:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (244413 => 244414)


--- trunk/Source/WTF/ChangeLog	2019-04-17 23:55:47 UTC (rev 244413)
+++ trunk/Source/WTF/ChangeLog	2019-04-18 00:42:36 UTC (rev 244414)
@@ -1,3 +1,13 @@
+2019-04-17  Tim Horton  <[email protected]>
+
+        Adopt different scroll view flashing SPI
+        https://bugs.webkit.org/show_bug.cgi?id=197043
+        <rdar://problem/49996476>
+
+        Reviewed by Wenson Hsieh.
+
+        * wtf/Platform.h:
+
 2019-04-17  Jer Noble  <[email protected]>
 
         Enable HAVE_AVFOUNDATION_VIDEO_OUTPUT on PLATFORM(IOSMAC)

Modified: trunk/Source/WTF/wtf/Platform.h (244413 => 244414)


--- trunk/Source/WTF/wtf/Platform.h	2019-04-17 23:55:47 UTC (rev 244413)
+++ trunk/Source/WTF/wtf/Platform.h	2019-04-18 00:42:36 UTC (rev 244414)
@@ -1519,6 +1519,10 @@
 #define HAVE_ALLOWS_SENSITIVE_LOGGING 1
 #endif
 
+#if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000) || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 60000) || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 130000)
+#define HAVE_UI_SCROLL_VIEW_INDICATOR_FLASHING_SPI 1
+#endif
+
 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000)
 #define HAVE_ROUTE_SHARING_POLICY_LONG_FORM_VIDEO 1
 #endif

Modified: trunk/Source/WebKit/ChangeLog (244413 => 244414)


--- trunk/Source/WebKit/ChangeLog	2019-04-17 23:55:47 UTC (rev 244413)
+++ trunk/Source/WebKit/ChangeLog	2019-04-18 00:42:36 UTC (rev 244414)
@@ -1,5 +1,17 @@
 2019-04-17  Tim Horton  <[email protected]>
 
+        Adopt different scroll view flashing SPI
+        https://bugs.webkit.org/show_bug.cgi?id=197043
+        <rdar://problem/49996476>
+
+        Reviewed by Wenson Hsieh.
+
+        * Platform/spi/ios/UIKitSPI.h:
+        * UIProcess/ios/WKKeyboardScrollingAnimator.mm:
+        (-[WKKeyboardScrollViewAnimator scrollToContentOffset:animated:]):
+
+2019-04-17  Tim Horton  <[email protected]>
+
         REGRESSION (r241988): Switching tabs is slow
         https://bugs.webkit.org/show_bug.cgi?id=197037
         <rdar://problem/49951473>

Modified: trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h (244413 => 244414)


--- trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h	2019-04-17 23:55:47 UTC (rev 244413)
+++ trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h	2019-04-18 00:42:36 UTC (rev 244414)
@@ -344,6 +344,7 @@
 - (void)_zoomToCenter:(CGPoint)center scale:(CGFloat)scale duration:(CFTimeInterval)duration;
 - (double)_horizontalVelocity;
 - (double)_verticalVelocity;
+- (void)_flashScrollIndicatorsPersistingPreviousFlashes;
 @property (nonatomic, getter=isZoomEnabled) BOOL zoomEnabled;
 @property (nonatomic, readonly, getter=_isAnimatingZoom) BOOL isAnimatingZoom;
 @property (nonatomic, readonly, getter=_isAnimatingScroll) BOOL isAnimatingScroll;

Modified: trunk/Source/WebKit/UIProcess/ios/WKKeyboardScrollingAnimator.mm (244413 => 244414)


--- trunk/Source/WebKit/UIProcess/ios/WKKeyboardScrollingAnimator.mm	2019-04-17 23:55:47 UTC (rev 244413)
+++ trunk/Source/WebKit/UIProcess/ios/WKKeyboardScrollingAnimator.mm	2019-04-18 00:42:36 UTC (rev 244414)
@@ -593,7 +593,11 @@
     if (_delegateRespondsToWillScroll)
         [_delegate keyboardScrollViewAnimatorWillScroll:self];
     [scrollView setContentOffset:contentOffsetDelta animated:animated];
+#if HAVE(UI_SCROLL_VIEW_INDICATOR_FLASHING_SPI)
+    [scrollView _flashScrollIndicatorsPersistingPreviousFlashes];
+#else
     [scrollView _flashScrollIndicatorsPersistingPreviousFlashes:YES];
+#endif
 }
 
 - (void)scrollWithScrollToExtentAnimationTo:(CGPoint)offset
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to