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

Issue 2692803005: Avoid checking family name in getLastResortFallbackFont() on Windows (Closed)

Created:
3 years, 10 months ago by kojii
Modified:
3 years, 10 months ago
Reviewers:
eae
CC:
ajuma+watch_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid checking family name in getLastResortFallbackFont() on Windows Windows can return a valid SkTypeface even when requested name does not exist. FontCache checks if the family name of the SkTypeface returned from Skia matches to the requested name. This patch disables the check in getLastResortFallbackFont(). In this case, finding a font is more important than finding the font with the requested family name. This change eliminates one possible case where getLastResortFallbackFont() can return nullptr on Windows. BUG=561873 Review-Url: https://codereview.chromium.org/2692803005 Cr-Commit-Position: refs/heads/master@{#450372} Committed: https://chromium.googlesource.com/chromium/src/+/ff7fede033b10623c7085324f7e02cf338478f40

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -42 lines) Patch
M third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCache.h View 4 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCache.cpp View 5 chunks +13 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm View 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp View 2 chunks +20 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp View 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (17 generated)
kojii
PTAL. WDYT? The stability sheriff reminded me to work on this. Our last guesstimate is ...
3 years, 10 months ago (2017-02-14 14:13:31 UTC) #15
eae
Let's try it, thank you LGTM
3 years, 10 months ago (2017-02-14 15:50:19 UTC) #16
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/2692803005/40001
3 years, 10 months ago (2017-02-14 16:05:10 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 16:10:30 UTC) #21
Message was sent while issue was closed.
Committed patchset #1 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ff7fede033b10623c7085324f7e0...

Powered by Google App Engine
This is Rietveld 408576698