Index: third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp b/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp |
index f2de763a23019740deb5fdd443aa22e2634dbeee..3447ebfcac11b11380e9bd0fe94ce83ed6d944f7 100644 |
--- a/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp |
+++ b/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp |
@@ -49,7 +49,7 @@ void CompositorPendingAnimations::add(Animation* animation) |
if (document->view()) |
document->view()->scheduleAnimation(); |
- bool visible = document->page() && document->page()->visibilityState() == PageVisibilityStateVisible; |
+ bool visible = document->page() && document->page()->isPageVisible(); |
if (!visible && !m_timer.isActive()) { |
m_timer.startOneShot(0, BLINK_FROM_HERE); |
} |