| Index: components/autofill/content/renderer/form_autofill_util.cc
|
| diff --git a/components/autofill/content/renderer/form_autofill_util.cc b/components/autofill/content/renderer/form_autofill_util.cc
|
| index 74d5b689e6c331114072f986ec49251dd89eecec..5d1f3799331a39aa09ec0e15b88b0af56f034b92 100644
|
| --- a/components/autofill/content/renderer/form_autofill_util.cc
|
| +++ b/components/autofill/content/renderer/form_autofill_util.cc
|
| @@ -1175,4 +1175,12 @@ bool IsWebElementEmpty(const blink::WebElement& element) {
|
| return true;
|
| }
|
|
|
| +gfx::RectF GetScaledBoundingBox(float scale, WebInputElement* element) {
|
| + gfx::Rect bounding_box(element->boundsInViewportSpace());
|
| + return gfx::RectF(bounding_box.x() * scale,
|
| + bounding_box.y() * scale,
|
| + bounding_box.width() * scale,
|
| + bounding_box.height() * scale);
|
| +}
|
| +
|
| } // namespace autofill
|
|
|