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

Issue 2137483004: Enable "system-ui" generic font family (Closed)

Created:
4 years, 5 months ago by kojii
Modified:
4 years, 2 months ago
Reviewers:
drott, 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, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable "system-ui" generic font family This patch enables the "system-ui" generic font family on all platforms. Following changes are planned but not included in this CL: 1. Content sets the current system font to Blink on Linux/CrOS[1]. 2. Remove internal use of "BlinkMacSystemFont" and add UMA[2]. [1] https://codereview.chromium.org/2138613002 [2] https://codereview.chromium.org/2388623002 BUG=654679 Committed: https://crrev.com/bb3db4f221492076bca16af4d6fb9f358b79cedb Cr-Commit-Position: refs/heads/master@{#425967}

Patch Set 1 #

Patch Set 2 : WIP: system-ui #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : Mac support #

Patch Set 6 : Linux support #

Patch Set 7 : Cleanup #

Patch Set 8 : For rebaseline #

Patch Set 9 : Rebaseline #

Patch Set 10 : Minor cleanup for following CLs #

Patch Set 11 : Fix Linux #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Patch Set 14 : WIP #

Patch Set 15 : Refactor and cleanup #

Total comments: 9

Patch Set 16 : Updated comments #

Total comments: 9

Patch Set 17 : drott review #

Patch Set 18 : Cleanup defaultFontFamily #

Patch Set 19 : Fix previous CL broke Android #

Patch Set 20 : drott review #

Patch Set 21 : Mac fix #

Patch Set 22 : Cleanup and Mac fix #

Total comments: 5

Patch Set 23 : drott nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/generic-system-ui.html View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/inspector-protocol/layout-fonts/generic-system-ui-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.10/inspector-protocol/layout-fonts/generic-system-ui-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.9/inspector-protocol/layout-fonts/generic-system-ui-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/inspector-protocol/layout-fonts/generic-system-ui-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/inspector-protocol/layout-fonts/generic-system-ui-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCache.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontFamilyNames.in View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 15 16 17 18 19 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMacTest.mm View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 19 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 116 (90 generated)
kojii
PTAL.
4 years, 2 months ago (2016-10-12 08:14:30 UTC) #45
kojii
Note, I found LayoutTheme in late stage, incorrectly assuming "font: menu" is IE-only and thus ...
4 years, 2 months ago (2016-10-12 10:51:15 UTC) #48
drott
Good change, looks mostly good to me, a few comments and questions on the float ...
4 years, 2 months ago (2016-10-12 11:01:59 UTC) #49
kojii
Thank you for your quick review, replies inline. https://codereview.chromium.org/2137483004/diff/310001/third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/generic-system-ui.html File third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/generic-system-ui.html (right): https://codereview.chromium.org/2137483004/diff/310001/third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/generic-system-ui.html#newcode1 third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/generic-system-ui.html:1: <!DOCTYPE ...
4 years, 2 months ago (2016-10-12 11:14:52 UTC) #50
kojii
> Thanks for catching the spell error, will fix in the next CL. With your ...
4 years, 2 months ago (2016-10-12 11:22:43 UTC) #53
eae
I like it but please wait for drott. Thank you!
4 years, 2 months ago (2016-10-12 17:15:57 UTC) #56
drott
Hi Koji, thanks for the explanations, my comments below. https://codereview.chromium.org/2137483004/diff/310001/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm File third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm (right): https://codereview.chromium.org/2137483004/diff/310001/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm#newcode72 third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm:72: ...
4 years, 2 months ago (2016-10-13 07:59:35 UTC) #57
kojii
Thank you for the review drott@, and thank you eae@ for sharing your thoughts. Replies ...
4 years, 2 months ago (2016-10-13 09:03:20 UTC) #60
drott
https://codereview.chromium.org/2137483004/diff/310001/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm File third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm (right): https://codereview.chromium.org/2137483004/diff/310001/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm#newcode72 third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm:72: const AtomicString& FontCache::systemFontFamily(float) { On 2016/10/13 at 09:03:20, kojii ...
4 years, 2 months ago (2016-10-13 12:36:13 UTC) #66
kojii
https://codereview.chromium.org/2137483004/diff/330001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/2137483004/diff/330001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode232 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:232: #if OS(WIN) On 2016/10/13 at 12:36:13, drott wrote: > ...
4 years, 2 months ago (2016-10-13 13:37:59 UTC) #67
drott
https://codereview.chromium.org/2137483004/diff/330001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/2137483004/diff/330001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode232 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:232: #if OS(WIN) In the document you're saying: "ResourceBundle::GetSharedInstance().GetFontWithDelta(0).GetFontName() can ...
4 years, 2 months ago (2016-10-13 16:45:14 UTC) #68
kojii
https://codereview.chromium.org/2137483004/diff/330001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/2137483004/diff/330001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode232 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:232: #if OS(WIN) On 2016/10/13 at 16:45:13, drott wrote: > ...
4 years, 2 months ago (2016-10-14 04:40:19 UTC) #69
drott
https://codereview.chromium.org/2137483004/diff/330001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/2137483004/diff/330001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode232 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:232: #if OS(WIN) On 2016/10/14 at 04:40:19, kojii wrote: > ...
4 years, 2 months ago (2016-10-14 07:34:21 UTC) #82
kojii
PTAL. All our GV discussion reflected, and the following Linux patch[1] looks good.
4 years, 2 months ago (2016-10-18 07:35:07 UTC) #97
drott
LGTM now, with a nit on the nested #ifdefs. Thanks for updating the CL.
4 years, 2 months ago (2016-10-18 07:48:15 UTC) #98
kojii
On 2016/10/18 at 07:48:15, drott wrote: > LGTM now, with a nit on the nested ...
4 years, 2 months ago (2016-10-18 08:55:30 UTC) #99
drott
> I can't find the nits...is it about adding comments like this: > #endif // ...
4 years, 2 months ago (2016-10-18 10:16:30 UTC) #100
kojii
https://codereview.chromium.org/2137483004/diff/510001/third_party/WebKit/LayoutTests/platform/linux/inspector-protocol/layout-fonts/generic-system-ui-expected.txt File third_party/WebKit/LayoutTests/platform/linux/inspector-protocol/layout-fonts/generic-system-ui-expected.txt (right): https://codereview.chromium.org/2137483004/diff/510001/third_party/WebKit/LayoutTests/platform/linux/inspector-protocol/layout-fonts/generic-system-ui-expected.txt#newcode3 third_party/WebKit/LayoutTests/platform/linux/inspector-protocol/layout-fonts/generic-system-ui-expected.txt:3: "Times New Roman" : 37 On 2016/10/18 at 10:16:29, ...
4 years, 2 months ago (2016-10-18 10:37:36 UTC) #101
kojii
nit done. https://codereview.chromium.org/2137483004/diff/510001/third_party/WebKit/Source/platform/fonts/FontCache.cpp File third_party/WebKit/Source/platform/fonts/FontCache.cpp (right): https://codereview.chromium.org/2137483004/diff/510001/third_party/WebKit/Source/platform/fonts/FontCache.cpp#newcode124 third_party/WebKit/Source/platform/fonts/FontCache.cpp:124: #else On 2016/10/18 at 10:37:35, kojii wrote: ...
4 years, 2 months ago (2016-10-18 10:42:41 UTC) #104
drott
On 2016/10/18 at 10:37:36, kojii wrote: > https://codereview.chromium.org/2137483004/diff/510001/third_party/WebKit/LayoutTests/platform/linux/inspector-protocol/layout-fonts/generic-system-ui-expected.txt > File third_party/WebKit/LayoutTests/platform/linux/inspector-protocol/layout-fonts/generic-system-ui-expected.txt (right): > > https://codereview.chromium.org/2137483004/diff/510001/third_party/WebKit/LayoutTests/platform/linux/inspector-protocol/layout-fonts/generic-system-ui-expected.txt#newcode3 ...
4 years, 2 months ago (2016-10-18 10:51:33 UTC) #105
drott
On 2016/10/18 at 10:42:41, kojii wrote: > Note, this part will need some re-write, since ...
4 years, 2 months ago (2016-10-18 10:55:10 UTC) #106
kojii
Let's address these questions in following CLs. Having a code should help our discussions.
4 years, 2 months ago (2016-10-18 14:01:45 UTC) #109
drott
On 2016/10/18 at 14:01:45, kojii wrote: > Let's address these questions in following CLs. Having ...
4 years, 2 months ago (2016-10-18 14:24:55 UTC) #110
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/2137483004/530001
4 years, 2 months ago (2016-10-18 15:25:31 UTC) #112
commit-bot: I haz the power
Committed patchset #23 (id:530001)
4 years, 2 months ago (2016-10-18 15:30:43 UTC) #114
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 15:32:55 UTC) #116
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/bb3db4f221492076bca16af4d6fb9f358b79cedb
Cr-Commit-Position: refs/heads/master@{#425967}

Powered by Google App Engine
This is Rietveld 408576698