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

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

Issue 1631063002: Add isPageVisible to Page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Clean up 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/PlatformEventController.cpp
diff --git a/third_party/WebKit/Source/core/frame/PlatformEventController.cpp b/third_party/WebKit/Source/core/frame/PlatformEventController.cpp
index acc073cf24685acae787fd043e803b7621cd54ad..83c78bda8d68a82186545f80ab1d13b59f7c8ef6 100644
--- a/third_party/WebKit/Source/core/frame/PlatformEventController.cpp
+++ b/third_party/WebKit/Source/core/frame/PlatformEventController.cpp
@@ -60,7 +60,7 @@ void PlatformEventController::pageVisibilityChanged()
if (!m_hasEventListener)
return;
- if (page()->visibilityState() == PageVisibilityStateVisible)
+ if (page()->isPageVisible())
startUpdating();
else
stopUpdating();

Powered by Google App Engine
This is Rietveld 408576698