| Index: chrome/renderer/autofill/password_autofill_manager.cc
|
| diff --git a/chrome/renderer/autofill/password_autofill_manager.cc b/chrome/renderer/autofill/password_autofill_manager.cc
|
| index 46d17ceb5881e90b7f3fe4d4f979bc30642de2fb..a25f085d34e3a02bf4112c6e77ae71c9cd1b838f 100644
|
| --- a/chrome/renderer/autofill/password_autofill_manager.cc
|
| +++ b/chrome/renderer/autofill/password_autofill_manager.cc
|
| @@ -208,6 +208,7 @@ PasswordAutofillManager::PasswordAutofillManager(
|
| content::RenderView* render_view)
|
| : content::RenderViewObserver(render_view),
|
| disable_popup_(false),
|
| + web_view_(render_view->GetWebView()),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
|
| }
|
|
|
| @@ -511,9 +512,15 @@ bool PasswordAutofillManager::ShowSuggestionPopup(
|
|
|
| WebKit::WebInputElement selected_element = user_input;
|
| gfx::Rect bounding_box(selected_element.boundsInViewportSpace());
|
| +
|
| + float scale = web_view_->pageScaleFactor();
|
| + gfx::RectF bounding_box_scaled(bounding_box.x() * scale,
|
| + bounding_box.y() * scale,
|
| + bounding_box.width() * scale,
|
| + bounding_box.height() * scale);
|
| Send(new AutofillHostMsg_ShowPasswordSuggestions(routing_id(),
|
| field,
|
| - bounding_box,
|
| + bounding_box_scaled,
|
| suggestions));
|
| return !suggestions.empty();
|
| }
|
|
|