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

Issue 714163002: Remove RenderStyle member from FontBuilder. (Closed)

Created:
6 years, 1 month ago by andersr
Modified:
6 years ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, ed+blinkwatch_opera.com, Mike Lawther (Google), rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Remove RenderStyle member from FontBuilder. The FontBuilder currently operates directly on RenderStyle every time a font property is set. As indicated by the now-removed FIXME, this is most unclean, and makes the FontBuilder not very attractive to use in cases where you don't wish to spam the RenderStyle with setFontDescription calls. (Example: FontBuilder::createFontForDocument). This patch adds a FontDescription member instead, and changes FontDescriptionChangeScope to act as a pure mark-if-dirty class to let functions modify m_fontDescription directly, rather than through 'scope'. R=dglazkov@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186023

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Update FontDescription when inheriting cached properties. #

Patch Set 4 : Ensure font is created before taking animation snapshot. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -83 lines) Patch
M Source/core/core.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/resolver/FontBuilder.h View 4 chunks +5 lines, -10 lines 0 comments Download
M Source/core/css/resolver/FontBuilder.cpp View 1 8 chunks +36 lines, -39 lines 0 comments Download
D Source/core/css/resolver/FontBuilderTest.cpp View 1 chunk +0 lines, -28 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 chunks +5 lines, -3 lines 1 comment Download
M Source/core/css/resolver/StyleResolverState.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
dglazkov
lgtm
6 years, 1 month ago (2014-11-18 15:52:49 UTC) #1
andersr
On 2014/11/18 15:52:49, dglazkov wrote: > lgtm Hmm, maybe I should find another way of ...
6 years, 1 month ago (2014-11-19 22:39:33 UTC) #3
dglazkov
https://codereview.chromium.org/714163002/diff/80001/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/714163002/diff/80001/Source/core/css/resolver/StyleResolver.cpp#newcode719 Source/core/css/resolver/StyleResolver.cpp:719: state.fontBuilder().createFont(state.document().styleEngine()->fontSelector(), state.style(), state.parentStyle()); Let's ask animation folks? :) Mike, ...
6 years, 1 month ago (2014-11-20 19:22:14 UTC) #4
andersr
On 2014/11/20 19:22:14, dglazkov wrote: > https://codereview.chromium.org/714163002/diff/80001/Source/core/css/resolver/StyleResolver.cpp > File Source/core/css/resolver/StyleResolver.cpp (right): > > https://codereview.chromium.org/714163002/diff/80001/Source/core/css/resolver/StyleResolver.cpp#newcode719 > ...
6 years, 1 month ago (2014-11-21 14:52:12 UTC) #6
Timothy Loh
This is probably fine, we only go through here when starting animations/transitions. Is createFont a ...
6 years, 1 month ago (2014-11-24 06:55:08 UTC) #8
andersr
On 2014/11/24 06:55:08, Timothy Loh wrote: > Is createFont a no-op if we haven't changed ...
6 years, 1 month ago (2014-11-24 09:39:41 UTC) #9
Timothy Loh
On 2014/11/24 09:39:41, andersr wrote: > On 2014/11/24 06:55:08, Timothy Loh wrote: > > Is ...
6 years ago (2014-11-24 22:58:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/714163002/80001
6 years ago (2014-11-26 09:08:08 UTC) #12
commit-bot: I haz the power
6 years ago (2014-11-26 10:24:46 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186023

Powered by Google App Engine
This is Rietveld 408576698