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

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: 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
« no previous file with comments | « third_party/WebKit/Source/web/WebPagePopupImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « third_party/WebKit/Source/web/WebPagePopupImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698