Title: [260776] trunk/Source/WebKitLegacy/mac
Revision
260776
Author
grao...@webkit.org
Date
2020-04-27 13:50:43 -0700 (Mon, 27 Apr 2020)

Log Message

Remove allowsNewCSSAnimationsWhileSuspended and setAllowsNewCSSAnimationsWhileSuspended WebView SPIs
https://bugs.webkit.org/show_bug.cgi?id=211067

Reviewed by Tim Horton.

There are no known clients for these SPIs.

* WebView/WebView.mm:
* WebView/WebViewPrivate.h:

Modified Paths

Diff

Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (260775 => 260776)


--- trunk/Source/WebKitLegacy/mac/ChangeLog	2020-04-27 20:50:07 UTC (rev 260775)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog	2020-04-27 20:50:43 UTC (rev 260776)
@@ -1,5 +1,17 @@
 2020-04-27  Antoine Quint  <grao...@apple.com>
 
+        Remove allowsNewCSSAnimationsWhileSuspended and setAllowsNewCSSAnimationsWhileSuspended WebView SPIs
+        https://bugs.webkit.org/show_bug.cgi?id=211067
+
+        Reviewed by Tim Horton.
+
+        There are no known clients for these SPIs.
+
+        * WebView/WebView.mm:
+        * WebView/WebViewPrivate.h:
+
+2020-04-27  Antoine Quint  <grao...@apple.com>
+
         Rename CSSAnimationController accessors from animation() to legacyAnimation()
         https://bugs.webkit.org/show_bug.cgi?id=211082
 

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebView.mm (260775 => 260776)


--- trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2020-04-27 20:50:07 UTC (rev 260775)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2020-04-27 20:50:43 UTC (rev 260776)
@@ -4772,22 +4772,6 @@
     [CATransaction synchronize];
 }
 
-- (BOOL)allowsNewCSSAnimationsWhileSuspended
-{
-    auto* frame = core([self mainFrame]);
-    if (frame)
-        return frame->legacyAnimation().allowsNewAnimationsWhileSuspended();
-
-    return false;
-}
-
-- (void)setAllowsNewCSSAnimationsWhileSuspended:(BOOL)allowed
-{
-    auto* frame = core([self mainFrame]);
-    if (frame)
-        frame->legacyAnimation().setAllowsNewAnimationsWhileSuspended(allowed);
-}
-
 - (BOOL)cssAnimationsSuspended
 {
     // should ask the page!

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h (260775 => 260776)


--- trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h	2020-04-27 20:50:07 UTC (rev 260775)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h	2020-04-27 20:50:43 UTC (rev 260776)
@@ -833,14 +833,6 @@
 */
 - (void)setCSSAnimationsSuspended:(BOOL)suspended;
 
-/*
-    SPI to revert back to buggy behavior that would allow new transitions
-    and animations to run even when the view is suspended (e.g. loading a
-    new document).
-*/
-- (BOOL)allowsNewCSSAnimationsWhileSuspended;
-- (void)setAllowsNewCSSAnimationsWhileSuspended:(BOOL)allowed;
-
 + (void)_setDomainRelaxationForbidden:(BOOL)forbidden forURLScheme:(NSString *)scheme;
 + (void)_registerURLSchemeAsSecure:(NSString *)scheme;
 + (void)_registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:(NSString *)scheme;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to