Title: [129883] trunk/Source/WebKit/blackberry
- Revision
- 129883
- Author
- [email protected]
- Date
- 2012-09-28 06:20:24 -0700 (Fri, 28 Sep 2012)
Log Message
[BlackBerry] Should suspend page's scripted animations when WebPage is invisible
https://bugs.webkit.org/show_bug.cgi?id=97856
Patch by Andrew Lo <[email protected]> on 2012-09-28
Reviewed by Antonio Gomes.
Suspend page animations when setting WebPage invisible, resume when visible.
Internal PR212788.
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::setVisible):
Modified Paths
Diff
Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (129882 => 129883)
--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-09-28 13:08:50 UTC (rev 129882)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-09-28 13:20:24 UTC (rev 129883)
@@ -3240,6 +3240,11 @@
{
m_visible = visible;
+ if (visible && m_page->scriptedAnimationsSuspended())
+ m_page->resumeScriptedAnimations();
+ if (!visible && !m_page->scriptedAnimationsSuspended())
+ m_page->suspendScriptedAnimations();
+
#if ENABLE(PAGE_VISIBILITY_API)
setPageVisibilityState();
#endif
Modified: trunk/Source/WebKit/blackberry/ChangeLog (129882 => 129883)
--- trunk/Source/WebKit/blackberry/ChangeLog 2012-09-28 13:08:50 UTC (rev 129882)
+++ trunk/Source/WebKit/blackberry/ChangeLog 2012-09-28 13:20:24 UTC (rev 129883)
@@ -1,3 +1,16 @@
+2012-09-28 Andrew Lo <[email protected]>
+
+ [BlackBerry] Should suspend page's scripted animations when WebPage is invisible
+ https://bugs.webkit.org/show_bug.cgi?id=97856
+
+ Reviewed by Antonio Gomes.
+
+ Suspend page animations when setting WebPage invisible, resume when visible.
+ Internal PR212788.
+
+ * Api/WebPage.cpp:
+ (BlackBerry::WebKit::WebPagePrivate::setVisible):
+
2012-09-28 Arvid Nilsson <[email protected]>
[BlackBerry] Destroy thread-specific data for Platform::Graphics::Buffer on the right thread
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes