Adjust location and size of TapDisambiguator
As shown in crbug.com/737777#c72, the location and size of Android tab disambiguator is not correct when --use-zoom-for-dsf is enabled. It is because RenderViewImpl::DidTapMultipleTargets() assumes |touch_rect| is in DIPs while it is in physical pixels when --use-zoom-for-dsf is enabled. This CL solves this problem. TEST=Android Chrome with production code on NEXUS 5X, content_browsertests RenderViewTapDisambiguationTest.CanvasSizeUseZoomForDSF on NEXUS 5X, NEXUS 4, NEXUS 9 (w/ and w/o this change). Bug: 737777 Change-Id: I64ca0b9b76fcfc3798036a80c9213973de8f3f77 Reviewed-on: https://chromium-review.googlesource.com/898824Reviewed-by:Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Jaebaek Seo <jaebaek@chromium.org> Cr-Commit-Position: refs/heads/master@{#536868}
Showing
Please register or sign in to comment