| 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..bb2e7afd904104a996f36bb3cb1366d4a0e3bc27 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,8 +4623,7 @@ void WebViewImpl::attachPaintArtifactCompositor()
|
|
|
| // TODO(jbroman): This is cargo-culted from setRootGraphicsLayer. Is it
|
| // necessary?
|
| - bool visible = page()->visibilityState() == PageVisibilityStateVisible;
|
| - m_layerTreeView->setVisible(visible);
|
| + m_layerTreeView->setVisible(page()->isPageVisible());
|
| }
|
|
|
| void WebViewImpl::detachPaintArtifactCompositor()
|
|
|