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

Unified Diff: components/autofill/content/renderer/page_click_tracker.cc

Issue 1977633003: Remove RenderFrameImpl::GetFocusedElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes the right click + blur + copy case. Created 4 years, 7 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 | « no previous file | components/autofill/content/renderer/password_autofill_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/page_click_tracker.cc
diff --git a/components/autofill/content/renderer/page_click_tracker.cc b/components/autofill/content/renderer/page_click_tracker.cc
index aa167318f3fd0cf71204d796944bd253bac0ed53..1aff3de922437ef9b9cf0a51e05b173a01d66224 100644
--- a/components/autofill/content/renderer/page_click_tracker.cc
+++ b/components/autofill/content/renderer/page_click_tracker.cc
@@ -88,7 +88,8 @@ void PageClickTracker::FocusChangeComplete() {
}
void PageClickTracker::DoFocusChangeComplete() {
- WebElement focused_element = render_frame()->GetFocusedElement();
+ WebElement focused_element =
+ render_frame()->GetWebFrame()->document().focusedElement();
if (focused_node_was_last_clicked_ && !focused_element.isNull()) {
const WebFormControlElement control =
GetTextFormControlElement(focused_element);
« no previous file with comments | « no previous file | components/autofill/content/renderer/password_autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698