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

Issue 2073693002: Avoid loading system fonts in LayoutThemeMac::systemFont (Closed)

Created:
4 years, 6 months ago by tapted
Modified:
3 years, 10 months ago
Reviewers:
tkent, Nico
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews, chrome-apps-syd-reviews_chromium.org, Nico, erikchen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid loading system fonts in LayoutThemeMac::systemFont Loading system fonts is buggy on macOS 10.12 Sierra. If we just assume that system fonts on Mac are never italic or bold, they don't need to be loaded at all. So, do that. This reduces the memory footprint of each renderer process by ~600MB on macOS 10.12 Beta (16A201w). BUG=619981

Patch Set 1 #

Patch Set 2 : Do the same in setFontFromControlSize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -46 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutThemeMac.mm View 1 2 chunks +14 lines, -46 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
tapted
Hi tkent, could you please take a look. Or do you know a good reviewer ...
4 years, 6 months ago (2016-06-16 06:49:09 UTC) #4
Nico
I don't know if we have anyone really familiar with this code :-/ erikchen did ...
4 years, 6 months ago (2016-06-16 08:22:04 UTC) #6
tapted
On 2016/06/16 08:22:04, Nico (traveling...slow) wrote: > I don't know if we have anyone really ...
4 years, 6 months ago (2016-06-16 09:09:52 UTC) #7
tapted
On 2016/06/16 09:09:52, tapted wrote: > On 2016/06/16 08:22:04, Nico (traveling...slow) wrote: > > I ...
4 years, 6 months ago (2016-06-17 02:50:17 UTC) #8
tkent
4 years, 6 months ago (2016-06-20 23:03:41 UTC) #9
> that system fonts on Mac are never italic or bold, they don't need to be

If this is true, I think this CL is worth to be landed.

Powered by Google App Engine
This is Rietveld 408576698