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

Issue 1615923004: Add FontCache API for retrieving prioritized fallback fonts (Closed)

Created:
4 years, 11 months ago by drott
Modified:
4 years, 10 months ago
Reviewers:
kojii, wkorman, eae
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, vmpstr+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add FontCache API for retrieving prioritized fallback fonts BUG=580536 Committed: https://crrev.com/49d9c1f5fc97e4cedb0518cc3dd40771d8a68bec Cr-Commit-Position: refs/heads/master@{#373499}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Review comments addressed #

Total comments: 5

Patch Set 3 : newlines removed #

Patch Set 4 : Build fix attempt by returning pointer instead of reference #

Patch Set 5 : Separate tests per enum value, added fonts on Linux and Win #

Patch Set 6 : Column limit, formatting #

Patch Set 7 : Additional fallback for Linux #

Total comments: 1

Patch Set 8 : Documenting public method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/fonts/FontCache.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCache.cpp View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm View 1 2 2 chunks +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp View 1 2 3 4 5 6 2 chunks +55 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (18 generated)
drott
Currently depends on: https://codereview.chromium.org/1613153002/
4 years, 11 months ago (2016-01-22 14:44:20 UTC) #3
wkorman
https://codereview.chromium.org/1615923004/diff/1/third_party/WebKit/Source/platform/fonts/FontCache.cpp File third_party/WebKit/Source/platform/fonts/FontCache.cpp (right): https://codereview.chromium.org/1615923004/diff/1/third_party/WebKit/Source/platform/fonts/FontCache.cpp#newcode202 third_party/WebKit/Source/platform/fonts/FontCache.cpp:202: if (!fontsListInitialized) { Blink seems to prefer the early-out ...
4 years, 11 months ago (2016-01-25 23:38:17 UTC) #4
drott
Review comments addressed
4 years, 10 months ago (2016-02-02 17:24:59 UTC) #5
drott
Thanks for the review! https://codereview.chromium.org/1615923004/diff/1/third_party/WebKit/Source/platform/fonts/FontCache.cpp File third_party/WebKit/Source/platform/fonts/FontCache.cpp (right): https://codereview.chromium.org/1615923004/diff/1/third_party/WebKit/Source/platform/fonts/FontCache.cpp#newcode202 third_party/WebKit/Source/platform/fonts/FontCache.cpp:202: if (!fontsListInitialized) { On 2016/01/25 ...
4 years, 10 months ago (2016-02-02 17:28:28 UTC) #6
wkorman
lgtm https://codereview.chromium.org/1615923004/diff/20001/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm File third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm (right): https://codereview.chromium.org/1615923004/diff/20001/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm#newcode228 third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm:228: -1 blank https://codereview.chromium.org/1615923004/diff/20001/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm#newcode251 third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm:251: -1 blank https://codereview.chromium.org/1615923004/diff/20001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File ...
4 years, 10 months ago (2016-02-02 19:04:08 UTC) #7
drott
newlines removed
4 years, 10 months ago (2016-02-02 22:24:45 UTC) #8
drott
https://codereview.chromium.org/1615923004/diff/20001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/1615923004/diff/20001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode199 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:199: for (size_t i = 0; i < WTF_ARRAY_LENGTH(kColorEmojiFonts); ++i) ...
4 years, 10 months ago (2016-02-02 22:27:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1615923004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1615923004/40001
4 years, 10 months ago (2016-02-02 22:31:34 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/139828) win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
4 years, 10 months ago (2016-02-02 23:55:57 UTC) #14
drott
Build fix attempt by returning pointer instead of reference
4 years, 10 months ago (2016-02-03 11:09:57 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1615923004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1615923004/60001
4 years, 10 months ago (2016-02-03 11:12:30 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/125674) ios_rel_device_ninja on ...
4 years, 10 months ago (2016-02-03 11:15:37 UTC) #19
drott
Build fix attempt by returning pointer instead of reference
4 years, 10 months ago (2016-02-03 11:32:15 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1615923004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1615923004/80001
4 years, 10 months ago (2016-02-03 11:33:05 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/175552)
4 years, 10 months ago (2016-02-03 12:33:41 UTC) #25
drott
Separate tests per enum value, added fonts on Linux and Win
4 years, 10 months ago (2016-02-03 14:20:09 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1615923004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1615923004/100001
4 years, 10 months ago (2016-02-03 14:21:16 UTC) #28
drott
column limit, formatting
4 years, 10 months ago (2016-02-03 14:22:19 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1615923004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1615923004/120001
4 years, 10 months ago (2016-02-03 14:23:15 UTC) #31
drott
Additional fallback for Linux
4 years, 10 months ago (2016-02-03 15:14:36 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1615923004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1615923004/140001
4 years, 10 months ago (2016-02-03 15:15:40 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-03 16:50:00 UTC) #36
wkorman
lgtm https://codereview.chromium.org/1615923004/diff/140001/third_party/WebKit/Source/platform/fonts/FontCache.h File third_party/WebKit/Source/platform/fonts/FontCache.h (right): https://codereview.chromium.org/1615923004/diff/140001/third_party/WebKit/Source/platform/fonts/FontCache.h#newcode90 third_party/WebKit/Source/platform/fonts/FontCache.h:90: const Vector<AtomicString>* fontListForFallbackPriority(const FontDescription&, FontFallbackPriority); As a public ...
4 years, 10 months ago (2016-02-03 19:23:48 UTC) #37
drott
Documenting public method
4 years, 10 months ago (2016-02-04 09:05:17 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1615923004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1615923004/160001
4 years, 10 months ago (2016-02-04 09:06:17 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 10 months ago (2016-02-04 10:34:45 UTC) #43
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/49d9c1f5fc97e4cedb0518cc3dd40771d8a68bec Cr-Commit-Position: refs/heads/master@{#373499}
4 years, 10 months ago (2016-02-04 10:35:37 UTC) #45
drott
4 years, 9 months ago (2016-03-01 16:22:25 UTC) #46
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:160001) has been created in
https://codereview.chromium.org/1750213003/ by drott@chromium.org.

The reason for reverting is: This will have to be done differently to be
compatible with Android, where we cannot search by family name..

Powered by Google App Engine
This is Rietveld 408576698