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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.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/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 3dea6bed68ce98ddfd7bdc357299660eb44e5e37..26f60040649012ac4ae937df45e226e6d5964cb7 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -4296,8 +4296,7 @@ void WebViewImpl::setRootGraphicsLayer(GraphicsLayer* layer)
// propagated to the WebView in some circumstances. This needs to
// be refreshed here when setting a new root layer to avoid being
// stuck in a presumed incorrectly invisible state.
- bool visible = page()->visibilityState() == PageVisibilityStateVisible;
- m_layerTreeView->setVisible(visible);
+ m_layerTreeView->setVisible(page()->isPageVisible());
} else {
m_rootGraphicsLayer = nullptr;
m_rootLayer = nullptr;
@@ -4624,7 +4623,7 @@ void WebViewImpl::attachPaintArtifactCompositor()
// TODO(jbroman): This is cargo-culted from setRootGraphicsLayer. Is it
// necessary?
- bool visible = page()->visibilityState() == PageVisibilityStateVisible;
+ bool visible = page()->isPageVisible();
haraken 2016/01/25 22:54:31 |visible| won't be needed.
ortuno 2016/01/25 23:36:34 Done.
m_layerTreeView->setVisible(visible);
}

Powered by Google App Engine
This is Rietveld 408576698