commit | bfc7eb20e9d2bccc06f16c25d7e95870bbceaa3b | [log] [tgz] |
---|---|---|
author | bokan <bokan@chromium.org> | Mon Mar 09 13:39:34 2015 |
committer | Commit bot <commit-bot@chromium.org> | Mon Mar 09 13:42:06 2015 |
tree | c5888c6a174a595d5f250a160b55adfe79fe6b68 | |
parent | 2e35995d21e6c2b543cc97d73c8a505f54dc3d5a [diff] |
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}