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

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

Issue 1455143004: Use the window coordinate for the autofill bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years 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/autofill_agent.cc
diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc
index a1ceea4131837bdbb235167bee154cd1a5832f7e..c81b661e3ea595621654c5490b73dfbcd73aaf3e 100644
--- a/components/autofill/content/renderer/autofill_agent.cc
+++ b/components/autofill/content/renderer/autofill_agent.cc
@@ -731,9 +731,13 @@ void AutofillAgent::QueryAutofillSuggestions(
data_list_values,
data_list_labels));
+ blink::WebRect bounding_box_in_window = element_.boundsInViewport();
+ render_frame()->GetRenderView()->convertViewportToWindow(
+ &bounding_box_in_window);
+
Send(new AutofillHostMsg_QueryFormFieldAutofill(
routing_id(), autofill_query_id_, form, field,
- gfx::RectF(element_.boundsInViewport())));
+ gfx::RectF(bounding_box_in_window)));
}
void AutofillAgent::FillFieldWithValue(const base::string16& value,
« 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