Track the real and emulated screen rects in popups from the PageProperties

Currently popup widgets will snapshot the main frame's ViewRect and
the emulated ViewRect (aka WidgetRect). The popup itself lives with real
screen infos, passed to UpdateSurfaceAndScreenInfo(), and since it never
does SynchronizeVisualPropertiesFromRenderView() it keeps those values.

The RenderWidget converts WindowRects that the popup specifies of
queries in and out of emulated space as needed. After this change, the
conversions are done against the live real and emulated ViewRects
instead of snapshotting them at creation, avoiding the need for
tracking states on RenderWidget.

[email protected]

Bug: 1006052
Change-Id: I611287afcccdc8e8e739ef2c31e78d06191f688f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1833782
Reviewed-by: Avi Drissman <[email protected]>
Commit-Queue: danakj <[email protected]>
Cr-Commit-Position: refs/heads/master@{#701720}
5 files changed