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 5cf6ad4532dc1a9c8ca0fdd30c0913b82f212f3f..ea73462478c7157fed04066c47183251c8003dae 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -2680,8 +2680,8 @@ void WebViewImpl::willCloseLayerTreeView() |
m_linkHighlightsTimeline.clear(); |
} |
- if (page()) |
- page()->willCloseLayerTreeView(); |
+ if (m_layerTreeView) |
+ page()->willCloseLayerTreeView(*m_layerTreeView); |
setRootGraphicsLayer(nullptr); |
m_layerTreeView = nullptr; |
@@ -4232,6 +4232,8 @@ void WebViewImpl::initializeLayerTreeView() |
devTools->layerTreeViewChanged(m_layerTreeView); |
m_page->settings().setAcceleratedCompositingEnabled(m_layerTreeView); |
+ if (m_layerTreeView) |
+ m_page->layerTreeViewInitialized(*m_layerTreeView); |
// FIXME: only unittests, click to play, Android printing, and printing (for headers and footers) |
// make this assert necessary. We should make them not hit this code and then delete allowsBrokenNullLayerTreeView. |