| 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 93970bcf2568715ff4ad554638446abf373f1a35..2e5cc0ebb1dfeeced3206b4484c12a2a76628d95 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2686,8 +2686,8 @@ void WebViewImpl::willCloseLayerTreeView()
|
| m_linkHighlightsTimeline.clear();
|
| }
|
|
|
| - if (page())
|
| - page()->willCloseLayerTreeView();
|
| + if (page() && m_layerTreeView)
|
| + page()->willCloseLayerTreeView(*m_layerTreeView);
|
|
|
| setRootGraphicsLayer(nullptr);
|
| m_layerTreeView = nullptr;
|
| @@ -4238,6 +4238,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.
|
|
|