Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
index 22473b153a188850a12e783f021304d29ea362e2..a6c380b0c56d5d4e9b727a8291c8455b9c6dd2e3 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1355,11 +1355,11 @@ void WebLocalFrameImpl::setCaretVisible(bool visible) |
frame()->selection().setCaretVisible(visible); |
} |
-void WebLocalFrameImpl::clearFocus() |
+void WebLocalFrameImpl::clearFocus(WebRemoteFrame* newFocusedFrame) |
{ |
// This uses setFocusedElement rather than setFocusedFrame so that blur |
// events are properly dispatched on any currently focused elements. |
- frame()->page()->focusController().setFocusedElement(nullptr, nullptr); |
+ frame()->page()->focusController().setFocusedElement(nullptr, toCoreFrame(newFocusedFrame)); |
} |
VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoint& pointInViewport) |