DescriptionPosition autofill popup widgets correctly under --site-per-process
When a AutofillHostMsg_QueryFormFieldAutofill message is sent from
an out-of-process iframe, its screen coordinates are relative to the
subframe's rect and not the top-level frame's viewport.
This CL exposes a facility in the content API to perform the necessary
transformation, particularly:
- it promotes GetView() from RenderFrameHostImpl to RenderFrameHost, so the RenderWidgetHostView becomes available to the embedder, and
- it promotes TransformPointToRootCoordSpace from RenderWidgetHostViewBase to RenderWidgetHostView, so that chrome/ or components/ code that directly receives coordinates from a renderer process can ensure they properly transformed
Finally, it causes the ContentAutofillDriver to use the exposed methods to transform received autofill popup coordinates in order for them to display in the correct position.
BUG=554119
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/015b5b5829406934f9863c73f931815ae5007e8f
Cr-Commit-Position: refs/heads/master@{#371519}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Bug fix #Patch Set 4 : Better bug fix #Patch Set 5 : Fix Bling breakage #Patch Set 6 : Another fix, + rebase #Patch Set 7 : Mo IOS fixin #
Total comments: 26
Patch Set 8 : Review comments addressed #
Total comments: 3
Patch Set 9 : Rebase to fix merge conflicts #Patch Set 10 : Fixed merge error #Patch Set 11 : Fixed incorrect cast #Messages
Total messages: 21 (8 generated)
|