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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 1298803003: Fixed two bugs related to OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | « Source/core/page/FocusController.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index d3d4fe791db438b598b0ef4d1c0a22c821674c5f..6dcd9436c0ca1f8e8446fc202039189bcb3fccad 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -194,6 +194,9 @@ void ChromeClientImpl::takeFocus(WebFocusType type)
void ChromeClientImpl::focusedNodeChanged(Node* fromNode, Node* toNode)
{
+ if (!m_webView->client())
+ return;
+
m_webView->client()->focusedNodeChanged(WebNode(fromNode), WebNode(toNode));
WebURL focusURL;
« no previous file with comments | « Source/core/page/FocusController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698