Chromium Code Reviews| 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); |
| } |