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

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

Issue 1463723003: Return VisualViewport coords in boundsInViewportSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/form_autofill_util.h » ('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 d2bea330cd760d16e0f3dc9958fd13ddd8bd00cd..a1ceea4131837bdbb235167bee154cd1a5832f7e 100644
--- a/components/autofill/content/renderer/autofill_agent.cc
+++ b/components/autofill/content/renderer/autofill_agent.cc
@@ -714,10 +714,6 @@ void AutofillAgent::QueryAutofillSuggestions(
WebFormControlElementToFormField(element, form_util::EXTRACT_VALUE, &field);
}
- gfx::RectF bounding_box_scaled = form_util::GetScaledBoundingBox(
- render_frame()->GetRenderView()->GetWebView()->pageScaleFactor(),
- &element_);
-
std::vector<base::string16> data_list_values;
std::vector<base::string16> data_list_labels;
const WebInputElement* input_element = toWebInputElement(&element);
@@ -736,7 +732,8 @@ void AutofillAgent::QueryAutofillSuggestions(
data_list_labels));
Send(new AutofillHostMsg_QueryFormFieldAutofill(
- routing_id(), autofill_query_id_, form, field, bounding_box_scaled));
+ routing_id(), autofill_query_id_, form, field,
+ gfx::RectF(element_.boundsInViewport())));
}
void AutofillAgent::FillFieldWithValue(const base::string16& value,
« no previous file with comments | « no previous file | components/autofill/content/renderer/form_autofill_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698