Index: Source/WebKit/chromium/src/WebViewImpl.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/WebViewImpl.cpp (revision 112604) |
+++ Source/WebKit/chromium/src/WebViewImpl.cpp (working copy) |
@@ -3468,9 +3468,9 @@ |
#endif |
#if USE(ACCELERATED_COMPOSITING) |
- if (isAcceleratedCompositingActive()) { |
+ if (!m_layerTreeView.isNull()) { |
bool visible = visibilityState == WebPageVisibilityStateVisible; |
- if (!visible) |
+ if (!visible && isAcceleratedCompositingActive()) |
m_nonCompositedContentHost->protectVisibleTileTextures(); |
m_layerTreeView.setVisible(visible); |
} |