Pass values in CSS pixel scale to ContentViewCore::UpdateFrameInfo
ContentViewCore::UpdateFrameInfo() must receive positions and sizes in CSS pixel except top_shown_pix. When --use-zoom-for-dsf is enabled, those values given to ContentViewCore::UpdateFrameInfo() are in physical pixel. It results in test failures of ContentViewScrollingTest#testOverScroll and ContentViewScrollingTest#testScrollTo. This CL scales down those values given to ContentViewCore::UpdateFrameInfo() by the device scale factor. TEST=run_content_shell_test_apk -f ContentViewScrollingTest#testOverScroll (and ContentViewScrollingTest#testScrollTo) on NEXUS 5X Bug: 737777 Change-Id: I95be3ed63d569ec9d620fa431c0d6bfa932410ba Reviewed-on: https://chromium-review.googlesource.com/888183 Commit-Queue: Jaebaek Seo <jaebaek@chromium.org> Reviewed-by:Bo <boliu@chromium.org> Reviewed-by:
David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#533129}
Showing
Please register or sign in to comment