| 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 fd50765a3d526faa0323d6805470ffd402e00f3a..1cf6bda0ea8b3f81aaea673f87d1cdb813cbf18e 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2964,6 +2964,13 @@ void WebViewImpl::focusDocumentView(WebFrame* frame)
|
| page()->focusController().focusDocumentView(frame->toImplBase()->frame(), false /* notifyEmbedder */);
|
| }
|
|
|
| +void WebViewImpl::unfocusDocumentView(WebFrame* frame)
|
| +{
|
| + LocalFrame* focusedFrame = page()->focusController().focusedFrame();
|
| + DCHECK(!focusedFrame || focusedFrame == frame->toImplBase()->frame());
|
| + page()->focusController().focusDocumentView(nullptr /* frame */, false /* notifyEmbedder */);
|
| +}
|
| +
|
| void WebViewImpl::setInitialFocus(bool reverse)
|
| {
|
| if (!m_page)
|
|
|