Chromium Code Reviews
DescriptionFix the position of context menu for BrowserPlugins inside OOPIF (Merge to M-57)
Currently, we do not consider the displacement of OOPIF view on page when
update the geomtery of BrowserPluginGuest. This causes the context menu
offset (the displacement between WebContents's) to be wrong.
This CL will make the following changes to fix this issue:
1- The reported rect in OnUpdateGeometry() is transformed to owner view's
coordinate space.
2- We make sure BrowserPlugin does its own conversions using RenderWidget
of the local root containing the BrowserPlugin (as opposed to the RenderView
which seems wrong).
3- We make sure BrowserPlugin updates geometry when it is attached.
BUG=670433
NOTRY=TRUE
NOPRESUBMIT=TRUE
Review-Url: https://codereview.chromium.org/2544223002
Cr-Commit-Position: refs/heads/master@{#446448}
(cherry picked from commit aeddbee1c18102e37b5dc083c99a337e12afa759)
Review-Url: https://codereview.chromium.org/2695103003
Cr-Commit-Position: refs/branch-heads/2987@{#512}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}
Committed: https://chromium.googlesource.com/chromium/src/+/b4d8f2c9b39a7fc569beede339aff9f2520604cf
Patch Set 1 #
Messages
Total messages: 13 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||