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

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

Issue 2140263002: Early out of registerViewportLayerWithCompositor if there's no local MainFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 4 years, 5 months 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 | « no previous file | 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 3dc1d8305682699a68763efa2ebe2dfcb15c50c9..ddbbd2d4f4d64d0ae6bc9ac4fe471116b7fb82cc 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -4193,7 +4193,9 @@ bool WebViewImpl::tabsToLinks() const
void WebViewImpl::registerViewportLayersWithCompositor()
{
DCHECK(m_layerTreeView);
- DCHECK(page()->deprecatedLocalMainFrame());
+
+ if (!page()->mainFrame() || !page()->mainFrame()->isLocalFrame())
+ return;
Document* document = page()->deprecatedLocalMainFrame()->document();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698