Fix fallback cursor while zoomed

The fallback cursor determines scroll modes based on the location within
the current scroller. The location and size of the scroller are compared
in root frame coordinates (i.e. the page's coordinate system). However,
for the root scroller, we need to account for zooming. When the page is
zoomed, the scroller's (visual viewport's) bounds shrink within the root
frame. This means we need to convert the root-frame-relative point into
the visual viewport so that we're computing locking relative to the
visual viewport.

Bug: 978214
Change-Id: Ib995aa9171ae818dd43a5b6208dd061ec6892eb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1681271
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Commit-Queue: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#673349}
2 files changed