Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Issue 2959913002: PlatformFontMac: Use a default NSFont when an invalid font is passed. (Closed)

Created:
3 years, 5 months ago by tapted
Modified:
3 years, 5 months ago
CC:
chromium-reviews, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PlatformFontMac: Use a default NSFont when an invalid font is passed. Currently RenderTextHarfbuzz crashes trying to find fallbacks for an null font. Ensuring PlatformFontMac never has a null NSFont is similar to the approach in PlatformFontLinux (its anon::CreateSkTypeface(..) never returns null). Having this invariant allows some logic in PlatformFontMac to be simplified. BUG=699820 Review-Url: https://codereview.chromium.org/2959913002 Cr-Commit-Position: refs/heads/master@{#483223} Committed: https://chromium.googlesource.com/chromium/src/+/0f5cbd14b845f2795a87e9caa7e048e2ccf95947

Patch Set 1 #

Patch Set 2 : Extract some tracing from other platforms #

Patch Set 3 : Use a default font #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -22 lines) Patch
M ui/gfx/font_fallback_mac.mm View 1 2 2 chunks +3 lines, -0 lines 1 comment Download
M ui/gfx/platform_font_mac.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/platform_font_mac.mm View 1 2 7 chunks +13 lines, -15 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 2 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (19 generated)
tapted
Hi Alexei, please take a look. An alternative in Patchset 1 also gets past the ...
3 years, 5 months ago (2017-06-28 03:46:11 UTC) #17
Alexei Svitkine (slow)
lgtm
3 years, 5 months ago (2017-06-28 15:13:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2959913002/60001
3 years, 5 months ago (2017-06-29 00:30:21 UTC) #20
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 00:36:11 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0f5cbd14b845f2795a87e9caa7e0...

Powered by Google App Engine
This is Rietveld 408576698