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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.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/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 56682d7b3352ade8c7f5195eecd0d986a7e07c71..804222baca1097bed54664541d4a96de2a667b7d 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1352,13 +1352,6 @@ void WebLocalFrameImpl::setCaretVisible(bool visible)
frame()->selection().setCaretVisible(visible);
}
-void WebLocalFrameImpl::clearFocus()
-{
- // This uses setFocusedElement rather than setFocusedFrame so that blur
- // events are properly dispatched on any currently focused elements.
- frame()->page()->focusController().setFocusedElement(nullptr, nullptr);
-}
-
VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoint& pointInViewport)
{
return visiblePositionForContentsPoint(frame()->view()->viewportToContents(pointInViewport), frame());

Powered by Google App Engine
This is Rietveld 408576698