commit | 37e42dda0182625f8bcb7277a5802ca6fbe32890 | [log] [tgz] |
---|---|---|
author | eae <eae@chromium.org> | Sat Oct 17 18:05:47 2015 |
committer | Commit bot <commit-bot@chromium.org> | Sat Oct 17 18:06:37 2015 |
tree | 88816e58d9afe65151f9f3b92aa811a629b6a8af | |
parent | 54d0dc5450e6d8d6a7cd80bd9fa512a41999e08e [diff] |
Only use fontMetrics if available in line-height computation Change ComputedStyle::computedLineHeight to check if primaryFont is non null before calling fontMetrics().lineSpacing() as metrics requires the font to have been loaded. This is a speculative fix for a top crasher. BUG=542338 R=pdr@chromium.org Review URL: https://codereview.chromium.org/1410173002 Cr-Commit-Position: refs/heads/master@{#354686}