Title: [260941] trunk/Source/WebKitLegacy/mac
Revision
260941
Author
[email protected]
Date
2020-04-30 04:41:45 -0700 (Thu, 30 Apr 2020)

Log Message

Remove -[WebView setCSSAnimationsSuspended:]
https://bugs.webkit.org/show_bug.cgi?id=211227
<rdar://problem/62439454>

Patch by Antoine Quint <[email protected]> on 2020-04-30
Reviewed by Antti Koivisto.

This SPI has no user and it has no equivalent for the new animation engine.

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

Modified Paths

Diff

Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (260940 => 260941)


--- trunk/Source/WebKitLegacy/mac/ChangeLog	2020-04-30 11:31:50 UTC (rev 260940)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog	2020-04-30 11:41:45 UTC (rev 260941)
@@ -1,3 +1,16 @@
+2020-04-30  Antoine Quint  <[email protected]>
+
+        Remove -[WebView setCSSAnimationsSuspended:]
+        https://bugs.webkit.org/show_bug.cgi?id=211227
+        <rdar://problem/62439454>
+
+        Reviewed by Antti Koivisto.
+
+        This SPI has no user and it has no equivalent for the new animation engine.
+
+        * WebView/WebView.mm:
+        * WebView/WebViewPrivate.h:
+
 2020-04-28  Daniel Bates  <[email protected]>
 
         [WebKitLegacy] Implement -hidePlaceholder and -showPlaceholderIfNecessary in terms of setCanShowPlaceholder()

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebView.mm (260940 => 260941)


--- trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2020-04-30 11:31:50 UTC (rev 260940)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2020-04-30 11:41:45 UTC (rev 260941)
@@ -4772,28 +4772,6 @@
     [CATransaction synchronize];
 }
 
-- (BOOL)cssAnimationsSuspended
-{
-    // should ask the page!
-    auto* frame = core([self mainFrame]);
-    if (frame)
-        return frame->legacyAnimation().isSuspended();
-
-    return false;
-}
-
-- (void)setCSSAnimationsSuspended:(BOOL)suspended
-{
-    auto* frame = core([self mainFrame]);
-    if (suspended == frame->legacyAnimation().isSuspended())
-        return;
-
-    if (suspended)
-        frame->legacyAnimation().suspendAnimations();
-    else
-        frame->legacyAnimation().resumeAnimations();
-}
-
 + (void)_setDomainRelaxationForbidden:(BOOL)forbidden forURLScheme:(NSString *)scheme
 {
     WebCore::LegacySchemeRegistry::setDomainRelaxationForbiddenForURLScheme(forbidden, scheme);

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h (260940 => 260941)


--- trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h	2020-04-30 11:31:50 UTC (rev 260940)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h	2020-04-30 11:41:45 UTC (rev 260941)
@@ -819,20 +819,6 @@
 + (void)_setLoadResourcesSerially:(BOOL)serialize;
 - (void)_forceRepaintForTesting;
 
-/*!
-    @method cssAnimationsSuspended
-    @abstract Returns whether or not CSS Animations are suspended.
-    @result YES if CSS Animations are suspended.
-*/
-- (BOOL)cssAnimationsSuspended;
-
-/*!
-    @method setCSSAnimationsSuspended
-    @param suspended YES to suspend animations, NO to resume animations.
-    @discussion Suspends or resumes all running animations and transitions in the page.
-*/
-- (void)setCSSAnimationsSuspended:(BOOL)suspended;
-
 + (void)_setDomainRelaxationForbidden:(BOOL)forbidden forURLScheme:(NSString *)scheme;
 + (void)_registerURLSchemeAsSecure:(NSString *)scheme;
 + (void)_registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:(NSString *)scheme;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to