Title: [153431] trunk/Source/WebCore
Revision
153431
Author
[email protected]
Date
2013-07-29 10:10:31 -0700 (Mon, 29 Jul 2013)

Log Message

REGRESSION(148300) GIFs not reanimated after resumeActiveDOMObjectAndAnimations
https://bugs.webkit.org/show_bug.cgi?id=119217

Reviewed by Tim Horton.

Commit 148300 introduced a new better was of restarting GIF animations after
they have been suspended. Unfortunately the method was not activated when a page
is resumed but only when it is returning from background.

This fixes GIF animations that are stopped during user interaction on Qt and other
platforms using suspendActiveDOMObjectAndAnimations.

* page/Frame.cpp:
(WebCore::Frame::resumeActiveDOMObjectsAndAnimations):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (153430 => 153431)


--- trunk/Source/WebCore/ChangeLog	2013-07-29 16:35:34 UTC (rev 153430)
+++ trunk/Source/WebCore/ChangeLog	2013-07-29 17:10:31 UTC (rev 153431)
@@ -1,3 +1,20 @@
+2013-07-29  Allan Sandfeld Jensen  <[email protected]>
+
+        REGRESSION(148300) GIFs not reanimated after resumeActiveDOMObjectAndAnimations
+        https://bugs.webkit.org/show_bug.cgi?id=119217
+
+        Reviewed by Tim Horton.
+
+        Commit 148300 introduced a new better was of restarting GIF animations after
+        they have been suspended. Unfortunately the method was not activated when a page
+        is resumed but only when it is returning from background.
+
+        This fixes GIF animations that are stopped during user interaction on Qt and other
+        platforms using suspendActiveDOMObjectAndAnimations.
+
+        * page/Frame.cpp:
+        (WebCore::Frame::resumeActiveDOMObjectsAndAnimations):
+
 2013-07-29  Alex Christensen  <[email protected]>
 
         Made EGL useable by non-cairo ports.

Modified: trunk/Source/WebCore/page/Frame.cpp (153430 => 153431)


--- trunk/Source/WebCore/page/Frame.cpp	2013-07-29 16:35:34 UTC (rev 153430)
+++ trunk/Source/WebCore/page/Frame.cpp	2013-07-29 17:10:31 UTC (rev 153431)
@@ -985,6 +985,9 @@
         animation()->resumeAnimationsForDocument(document());
         document()->resumeScriptedAnimationControllerCallbacks();
     }
+
+    if (m_view)
+        m_view->resumeAnimatingImages();
 }
 
 #if USE(ACCELERATED_COMPOSITING)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to