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

Issue 468793003: Make style building for 'font-size' less custom. (Closed)

Created:
6 years, 4 months ago by andersr
Modified:
6 years, 3 months ago
Reviewers:
dglazkov
CC:
blink-reviews, jamesr, krit, blink-reviews-css, ed+blinkwatch_opera.com, jbroman, danakj, dglazkov+blink, Rik, apavlov+blink_chromium.org, darktears, Stephen Chennney, rune+blink, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Make style building for 'font-size' less custom. This change adds a FontDescription::Size structure which represents a (specified) font size in transit. The conversion from CSSValue* to font size (now FontDescription::Size) has been moved to StyleBuilderConverter. This reduces the dependency on RenderStyle/CSSValue in FontBuilder. Keyword sizes are now resolved into actual float sizes in FontBuilder:: setSize. This happens only if the FontDescription::Size has a keyword size, but has no float value size. The idea is that if both a keyword size and float value size is provided from the outside, it means we inherit the "entire" Size as-is, and no re-resolving of the keyword size is necessary. The m_fontSizehasViewportUnits flag has been removed. StyleBuilderConverter is now marking the relevant style directly (more or less) during conversion instead. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182154

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase. (Conflicts: FontBuilder::updateComputedSize) #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix regression related to FontDescriptions with isAbsolute=true. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -169 lines) Patch
M Source/core/css/CSSProperties.in View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/FontSize.h View 1 chunk +13 lines, -3 lines 0 comments Download
M Source/core/css/FontSize.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/css/resolver/FontBuilder.h View 1 5 chunks +6 lines, -11 lines 0 comments Download
M Source/core/css/resolver/FontBuilder.cpp View 1 8 chunks +35 lines, -131 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 1 chunk +0 lines, -15 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/editing/EditingStyle.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M Source/platform/fonts/FontDescription.h View 1 2 chunks +15 lines, -0 lines 0 comments Download
M Source/platform/fonts/FontDescription.cpp View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
andersr
https://codereview.chromium.org/468793003/diff/1/Source/platform/fonts/FontDescription.cpp File Source/platform/fonts/FontDescription.cpp (right): https://codereview.chromium.org/468793003/diff/1/Source/platform/fonts/FontDescription.cpp#newcode101 Source/platform/fonts/FontDescription.cpp:101: return Size(0, size.value * 1.2, size.isAbsolute); Note a keyword ...
6 years, 4 months ago (2014-08-15 12:40:42 UTC) #1
dglazkov
LGTM. My apologies for taking this long! Please bug me more annoyingly, I am very ...
6 years, 3 months ago (2014-09-15 19:29:42 UTC) #2
andersr
On 2014/09/15 at 19:29:42, dglazkov wrote: > LGTM. My apologies for taking this long! Please ...
6 years, 3 months ago (2014-09-17 10:43:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/468793003/40001
6 years, 3 months ago (2014-09-17 10:44:35 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/25520) linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/25222) win_blink_rel ...
6 years, 3 months ago (2014-09-17 11:50:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/468793003/60001
6 years, 3 months ago (2014-09-17 12:45:45 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-17 13:51:39 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 182154

Powered by Google App Engine
This is Rietveld 408576698