Index: third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp |
diff --git a/third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp b/third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp |
index 0a76a583b7ab296727673eb4e4c7b9398e00c5c3..b9686e94a28b230d1f96b38cf76ecbc8654a5cd4 100644 |
--- a/third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp |
+++ b/third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp |
@@ -49,7 +49,7 @@ void DeviceSingleWindowEventController::didAddEventListener(LocalDOMWindow* wind |
if (eventType != eventTypeName()) |
return; |
- if (page() && page()->visibilityState() == PageVisibilityStateVisible) |
+ if (page() && page()->isPageVisible()) |
startUpdating(); |
m_hasEventListener = true; |