Index: third_party/WebKit/Source/core/page/Page.cpp |
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp |
index bcad85fab860c81da591168bd70bb56249623d8d..2db6b62f9bdd0e630f276c3ffa6d21a11ece1709 100644 |
--- a/third_party/WebKit/Source/core/page/Page.cpp |
+++ b/third_party/WebKit/Source/core/page/Page.cpp |
@@ -381,6 +381,11 @@ PageVisibilityState Page::visibilityState() const |
return m_visibilityState; |
} |
+bool Page::isPageVisible() const |
+{ |
+ return visibilityState() == PageVisibilityStateVisible; |
+} |
+ |
bool Page::isCursorVisible() const |
{ |
return m_isCursorVisible && settings().deviceSupportsMouse(); |