Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Unified Diff: third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp

Issue 1631063002: Add isPageVisible to Page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Remove unnecessary variable Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698