Don't calculate a shown ratio when top controls height is 0.
This was causing a crash in Blink with some Chrome Android UI pages. These pages would disable top controls by setting the height to 0 but when we scroll the page we calculate the "shown ratio" by dividing by height. This the divided-by-0 value made its way down to Blink. BUG=460007 Review URL: https://codereview.chromium.org/982333003 Cr-Commit-Position: refs/heads/master@{#319621}
Showing
Please register or sign in to comment