Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1300)

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1459023002: Compositor Animation Timelines: Fix frame swapping tests in WebFrameTest.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb it for WebPagePopup. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698