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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.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/modules/screen_orientation/ScreenOrientationController.cpp
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
index 52457c226b45a0da8dbed307dd9a8a86d55a01d4..8e3c8624cf8f2ca630895aeb18f1751132880b92 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
@@ -106,7 +106,7 @@ void ScreenOrientationController::updateOrientation()
bool ScreenOrientationController::isActiveAndVisible() const
{
- return m_orientation && frame() && page() && page()->visibilityState() == PageVisibilityStateVisible;
+ return m_orientation && frame() && page() && page()->isPageVisible();
}
void ScreenOrientationController::pageVisibilityChanged()
@@ -230,7 +230,7 @@ void ScreenOrientationController::willDetachFrameHost()
void ScreenOrientationController::notifyDispatcher()
{
- if (m_orientation && page()->visibilityState() == PageVisibilityStateVisible)
+ if (m_orientation && page()->isPageVisible())
startUpdating();
else
stopUpdating();

Powered by Google App Engine
This is Rietveld 408576698