Fix hit-testing for scrolling content
This patch changes |SelectionControllerTest| to use the unified |HitTestResult::GetPosition()| added in r827165 <crrev.com/c/2535890>. This makes the tests to run the same code when |LayoutNGFullPositionForPoint| is enabled. By switching to the unified code, the test for crbug.com/985779 started to fail, because when inner node is inline, |LocalPoint()| is in the content coordinate system, not in the container coordinate system, that |PositionForPoint| should not add |ScrolledContentOffset|. Before |LayoutNGFullPositionForPoint| is enabled, this was done in |LayoutObject| virtual functions. Bug: 985779, 1150362, 829028 Change-Id: Ie16d228679778e64170720da105ba47bc6c3557f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2567059Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#832337}
Showing
Please register or sign in to comment