| commit | c37d7c08fe436fe0f53245eff661ada8c420a849 | [log] [tgz] |
|---|---|---|
| author | eae <eae@chromium.org> | Wed Jul 13 23:59:30 2016 |
| committer | Commit bot <commit-bot@chromium.org> | Thu Jul 14 00:00:53 2016 |
| tree | 69fe15f5b5aecdc464713fa479ff8a66f3950e52 | |
| parent | 8379f51dc3a4b447bbce3f479aece354214914bc [diff] |
Check for primaryFont in LayoutTextControl::getAvgCharWidth Change LayoutTextControl::getAvgCharWidth to check if primaryFont is set before attempting to access it falling back on measuring the width of 0. BUG=627818 R=cbiesinger@chromium.org Review-Url: https://codereview.chromium.org/2149683002 Cr-Commit-Position: refs/heads/master@{#405355}