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

Issue 2624893003: Move the FontFaceCache stored in CSSFontSelector to be stored in Document. (Closed)

Created:
3 years, 11 months ago by meade_UTC10
Modified:
3 years, 10 months ago
Reviewers:
drott, sashab, eae
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move the FontFaceCache stored in CSSFontSelector to be stored in Document. This addresses a FIXME found in the code. This FIXME was added in 2013 by dglazkov in 2013, ad02388f5fcffaab45b9ada7a7dfdcae13ed460f. BUG=685945 Review-Url: https://codereview.chromium.org/2624893003 Cr-Commit-Position: refs/heads/master@{#452734} Committed: https://chromium.googlesource.com/chromium/src/+/e07e958d62db5bb606c0dbbb446d2a25e33c3db1

Patch Set 1 #

Patch Set 2 : Add a helper function #

Total comments: 2

Patch Set 3 : Remove an unneccessary forward declaration #

Total comments: 2

Patch Set 4 : Sync #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -34 lines) Patch
M third_party/WebKit/Source/core/css/CSSFontSelector.h View 1 2 5 chunks +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSFontSelector.cpp View 1 2 3 6 chunks +8 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFaceSet.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFaceSet.cpp View 1 2 3 7 chunks +8 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 53 (31 generated)
meade_UTC10
PTAL for a first look? Thanks!
3 years, 11 months ago (2017-01-11 04:18:40 UTC) #4
sashab
Cool idea! 1 quick question https://codereview.chromium.org/2624893003/diff/20001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2624893003/diff/20001/third_party/WebKit/Source/core/dom/Document.h#newcode1658 third_party/WebKit/Source/core/dom/Document.h:1658: FontFaceCache m_fontFaceCache; What is ...
3 years, 11 months ago (2017-01-11 04:20:36 UTC) #5
sashab
Also... Are we concerned about adding stuff to Document? Do we care about mem increases ...
3 years, 11 months ago (2017-01-11 04:21:09 UTC) #6
meade_UTC10
On 2017/01/11 04:21:09, sashab wrote: > Also... Are we concerned about adding stuff to Document? ...
3 years, 11 months ago (2017-01-11 05:15:42 UTC) #7
meade_UTC10
https://codereview.chromium.org/2624893003/diff/20001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2624893003/diff/20001/third_party/WebKit/Source/core/dom/Document.h#newcode1658 third_party/WebKit/Source/core/dom/Document.h:1658: FontFaceCache m_fontFaceCache; On 2017/01/11 04:20:35, sashab wrote: > What ...
3 years, 11 months ago (2017-01-11 05:15:49 UTC) #8
sashab
Lg*m but not confident to OWNERs stamp this :) Would be great to hear from ...
3 years, 11 months ago (2017-01-11 22:48:53 UTC) #13
meade_UTC10
Hi Emil, I wanted to try and understand the Fonts code better so I can ...
3 years, 11 months ago (2017-01-12 00:37:03 UTC) #15
eae
Thank you for working on this! I think this makes sense but I'd love for ...
3 years, 11 months ago (2017-01-12 00:45:14 UTC) #17
drott
Thanks Eddy for addressing this old FIXME from Dimitri in 2013, ad02388f5fcffa. Could you mention ...
3 years, 11 months ago (2017-01-18 09:34:50 UTC) #18
meade_UTC10
https://codereview.chromium.org/2624893003/diff/40001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2624893003/diff/40001/third_party/WebKit/Source/core/dom/Document.h#newcode1658 third_party/WebKit/Source/core/dom/Document.h:1658: FontFaceCache m_fontFaceCache; On 2017/01/18 09:34:49, drott wrote: > Could ...
3 years, 10 months ago (2017-02-09 08:02:27 UTC) #26
meade_UTC10
On 2017/01/18 09:34:50, drott wrote: > Thanks Eddy for addressing this old FIXME from Dimitri ...
3 years, 10 months ago (2017-02-09 08:05:33 UTC) #27
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/2624893003/80001
3 years, 10 months ago (2017-02-14 00:25:41 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/365680)
3 years, 10 months ago (2017-02-14 01:16:37 UTC) #35
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/2624893003/80001
3 years, 10 months ago (2017-02-14 05:37:49 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/365928)
3 years, 10 months ago (2017-02-14 12:28:31 UTC) #39
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/2624893003/80001
3 years, 10 months ago (2017-02-16 03:01:25 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/154575) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-16 03:48:56 UTC) #43
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/2624893003/80001
3 years, 10 months ago (2017-02-22 05:19:28 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/19494)
3 years, 10 months ago (2017-02-22 07:34:53 UTC) #47
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/2624893003/80001
3 years, 10 months ago (2017-02-24 01:26:41 UTC) #49
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/e07e958d62db5bb606c0dbbb446d2a25e33c3db1
3 years, 10 months ago (2017-02-24 03:16:34 UTC) #52
erikchen
3 years, 9 months ago (2017-03-01 01:29:55 UTC) #53
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2728513002/ by erikchen@chromium.org.

The reason for reverting is: Reverted on suspicion of causing the top renderer
crash on Mac. 

https://bugs.chromium.org/p/chromium/issues/detail?id=696231.

Powered by Google App Engine
This is Rietveld 408576698