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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.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: Check if m_page is null in WebPagePopupImpl. Created 5 years 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/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index c8c83ee97ed269bf35badb1874def1fbe770b4e6..09fc1bba8afa552e52bf2ce879f963e94a544dc2 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -604,6 +604,9 @@ bool WebFrameWidgetImpl::isAcceleratedCompositingActive() const
void WebFrameWidgetImpl::willCloseLayerTreeView()
{
+ if (m_layerTreeView)
+ page()->willCloseLayerTreeView(*m_layerTreeView);
+
setIsAcceleratedCompositingActive(false);
m_layerTreeView = nullptr;
m_layerTreeViewClosed = true;
@@ -978,6 +981,8 @@ void WebFrameWidgetImpl::initializeLayerTreeView()
devTools->layerTreeViewChanged(m_layerTreeView);
page()->settings().setAcceleratedCompositingEnabled(m_layerTreeView);
+ if (m_layerTreeView)
+ page()->layerTreeViewInitialized(*m_layerTreeView);
// FIXME: only unittests, click to play, Android priting, 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