Fix RTL hint text positioning in the UrlBar.
The MVC refactor for UrlBar.java: https://chromium-review.googlesource.com/1148680 converted empty text strings to pass in SCROLL_BEGIN. The logic for properly scrolling empty RTL text existed only within SCROLL_TO_TLD. This moves and unifies the logic within the SCROLL_BEGIN handling. This also fixes some issues with resetting the previous scroll state too aggressively so that multiple calls would need to recalculate. BUG=871147 Change-Id: I8cbe07a4765b991fa39999dd92ae8dcc8f08538a Reviewed-on: https://chromium-review.googlesource.com/1164477 Commit-Queue: Ted Choc <tedchoc@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#581253}
Showing
Please register or sign in to comment