WebLayer: Fix the autofill popup position issue
AutofillProvider uses WebContents's container getLocationOnScreen() to transform the field's bund to screen coordinates before notify the AutofillService focus change. WebLayer intentionally leaves the space to it's top control, but can't set the margin to ContentView which hosts the WebContents. This patch adds RenderCoordinates.getContentOffsetYPixInt() API for AutofillProvider to get the top margin. Test: the autofill pop is in correct location, and I didn't see side effect. Bug: 1085294, 1135076 Change-Id: I163f67375e0177a5f75717a3069124ec2ff53894 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2523525 Commit-Queue: Michael Bai <michaelbai@chromium.org> Reviewed-by:Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#826155}
Showing
Please register or sign in to comment