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

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

Issue 1423053002: Make document.activeElement work with OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-preserve-page-focus-on-subframe-navigations
Patch Set: Remove some plumbing that should instead be introduced in the window.focus() CL. Created 5 years, 1 month 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
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 0114670454c6b84d1525cafc0230ac5216c6b476..708074a7fd8d76385fdf3397277dbe50720e5416 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2808,6 +2808,11 @@ void WebViewImpl::setFocusedFrame(WebFrame* frame)
coreFrame->page()->focusController().setFocusedFrame(coreFrame);
}
+void WebViewImpl::focusDocumentView(WebFrame* frame)
+{
+ page()->focusController().focusDocumentView(toCoreFrame(frame));
+}
+
void WebViewImpl::setInitialFocus(bool reverse)
{
if (!m_page)

Powered by Google App Engine
This is Rietveld 408576698