[RLS] Adjust document rect for scrolling when hit testing
When kIgnoreClipping is passed as a parameter to HitTesting code we should ignore overflow clipping on the root layer. We pass a hit test rect into clipping code that we intersect with the usual rects. Normally this will be the frame rect but when kIgnoreOverflow is used, the hit test rect is unioned with the entire document rect to ensure we can hit anywhere in the document. However, when RLS is turned on hit testing occurs on absolute points, rather than document points. This means that the scroll offset must be accounted for in the hit test rect. Bug: 828815 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I97e78d931685db1227fc975de8a3ed55783dd3e7 Reviewed-on: https://chromium-review.googlesource.com/1007889 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#550134}
Showing
Please register or sign in to comment