[root layer scrolls] Fix Android Find in page
This patch fixes the Android find-in-page feature when used by dragging down the tickmarks. The issue was that prior to RLS, absolute coordinates were equivalent to "document" coordinates. That meant that after scrolling, they don't change. When RLS is turned on, absolute coordinates are frame-relative so scrolling will change the location of an absolute rect. This find in page feature would scroll the text match into view and then attempt to zoom in on it. However, because of the above change, the coordinates used for the zoom have now changed. The solution here is to simply query the bounding rect after the scroll into view again. Bug: 828758 Change-Id: I807a05b89707080b1eed1bb3682147411776aa44 Reviewed-on: https://chromium-review.googlesource.com/1004010Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#549526}
Showing
Please register or sign in to comment