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

Issue 205743004: Expand system font values during font property parsing (Closed)

Created:
6 years, 9 months ago by alancutter (OOO until 2018)
Modified:
6 years, 1 month ago
CC:
blink-reviews, zoltan1, dsinclair, bemjb+rendering_chromium.org, eae+blinkwatch, ed+blinkwatch_opera.com, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, pdr., rune+blink, rwlbuis, Julien - ping for review
Visibility:
Public.

Description

Expand system font values during font property parsing This patch removes special case handling of the font shorthand property. Previously this property would be carried through to the style resolving stage if system font values were used. This patch refactors this process to happen in the CSS parser so that font is always expanded into longhand values. BUG=353932

Patch Set 1 #

Patch Set 2 : Fix compile failures #

Total comments: 4

Patch Set 3 : Rebased #

Patch Set 4 : Mac worker fix, num == 1, test moar #

Patch Set 5 : Restructure CSSPropertyParser similarly to apavlov #

Patch Set 6 : Bring back system FontDescription caching #

Patch Set 7 : Rebase and fix up unittest use of systemFont() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -245 lines) Patch
M LayoutTests/fast/css/font-shorthand.html View 1 2 3 1 chunk +50 lines, -36 lines 0 comments Download
M LayoutTests/fast/css/font-shorthand-expected.txt View 1 2 3 10 chunks +100 lines, -21 lines 0 comments Download
M Source/core/css/StylePropertyShorthandCustom.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 3 chunks +30 lines, -5 lines 0 comments Download
M Source/core/css/resolver/FontBuilder.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/resolver/FontBuilder.cpp View 1 1 chunk +0 lines, -23 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 chunk +0 lines, -12 lines 0 comments Download
M Source/core/rendering/RenderTheme.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/rendering/RenderTheme.cpp View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderThemeChromiumFontProvider.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/rendering/RenderThemeChromiumFontProviderLinux.cpp View 2 chunks +6 lines, -10 lines 0 comments Download
M Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp View 1 2 chunks +25 lines, -66 lines 0 comments Download
M Source/core/rendering/RenderThemeChromiumMac.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderThemeChromiumMac.mm View 1 2 3 1 chunk +29 lines, -57 lines 0 comments Download
M Source/core/rendering/RenderThemeChromiumSkia.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderThemeChromiumSkia.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/tests/DragImageTest.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (0 generated)
alancutter (OOO until 2018)
6 years, 9 months ago (2014-03-20 05:13:52 UTC) #1
dglazkov
lgtm https://codereview.chromium.org/205743004/diff/20001/Source/core/rendering/RenderTheme.h File Source/core/rendering/RenderTheme.h (right): https://codereview.chromium.org/205743004/diff/20001/Source/core/rendering/RenderTheme.h#newcode149 Source/core/rendering/RenderTheme.h:149: virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, float& fontSize, ...
6 years, 9 months ago (2014-03-20 05:24:43 UTC) #2
alancutter (OOO until 2018)
https://codereview.chromium.org/205743004/diff/20001/Source/core/rendering/RenderTheme.h File Source/core/rendering/RenderTheme.h (right): https://codereview.chromium.org/205743004/diff/20001/Source/core/rendering/RenderTheme.h#newcode149 Source/core/rendering/RenderTheme.h:149: virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, float& fontSize, AtomicString& ...
6 years, 9 months ago (2014-03-20 05:34:12 UTC) #3
alancutter (OOO until 2018)
The CQ bit was checked by alancutter@chromium.org
6 years, 9 months ago (2014-03-20 06:03:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/205743004/20001
6 years, 9 months ago (2014-03-20 06:03:28 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 06:18:26 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-20 06:18:26 UTC) #7
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-20 06:19:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/205743004/20001
6 years, 9 months ago (2014-03-20 06:19:21 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 06:44:10 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-20 06:44:10 UTC) #11
Timothy Loh
The CQ bit was checked by timloh@chromium.org
6 years, 9 months ago (2014-03-20 06:44:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/205743004/20001
6 years, 9 months ago (2014-03-20 06:44:58 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 07:24:15 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-20 07:24:15 UTC) #15
alancutter (OOO until 2018)
The CQ bit was checked by alancutter@chromium.org
6 years, 9 months ago (2014-03-20 12:31:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/205743004/20001
6 years, 9 months ago (2014-03-20 12:31:10 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 13:10:54 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-20 13:10:55 UTC) #19
apavlov
The CQ bit was checked by apavlov@chromium.org
6 years, 9 months ago (2014-03-20 14:48:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/205743004/20001
6 years, 9 months ago (2014-03-20 14:48:29 UTC) #21
apavlov
The CQ bit was unchecked by apavlov@chromium.org
6 years, 9 months ago (2014-03-20 15:23:18 UTC) #22
apavlov
Incidentally, I tried to land a similar patch (but without the theme refactoring) an hour ...
6 years, 9 months ago (2014-03-20 15:27:48 UTC) #23
alancutter (OOO until 2018)
On 2014/03/20 15:27:48, apavlov wrote: > Incidentally, I tried to land a similar patch (but ...
6 years, 9 months ago (2014-03-21 02:28:31 UTC) #24
apavlov
On 2014/03/21 02:28:31, alancutter wrote: > On 2014/03/20 15:27:48, apavlov wrote: > > Incidentally, I ...
6 years, 9 months ago (2014-03-21 08:06:55 UTC) #25
apavlov
The CQ bit was checked by apavlov@chromium.org
6 years, 9 months ago (2014-03-21 08:07:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/205743004/60001
6 years, 9 months ago (2014-03-21 08:07:21 UTC) #27
alancutter (OOO until 2018)
The changes to Mac have been causing problems for Web Workers, they don't seem to ...
6 years, 9 months ago (2014-03-21 08:21:29 UTC) #28
apavlov
On 2014/03/21 08:21:29, alancutter wrote: > The changes to Mac have been causing problems for ...
6 years, 9 months ago (2014-03-21 08:24:23 UTC) #29
apavlov
On 2014/03/21 08:24:23, apavlov wrote: > On 2014/03/21 08:21:29, alancutter wrote: > > The changes ...
6 years, 9 months ago (2014-03-21 09:32:03 UTC) #30
alancutter (OOO until 2018)
On 2014/03/21 09:32:03, apavlov wrote: > On 2014/03/21 08:24:23, apavlov wrote: > > On 2014/03/21 ...
6 years, 9 months ago (2014-03-21 13:20:52 UTC) #31
alancutter (OOO until 2018)
On 2014/03/21 13:20:52, alancutter wrote: > On 2014/03/21 09:32:03, apavlov wrote: > > On 2014/03/21 ...
6 years, 9 months ago (2014-03-22 03:06:17 UTC) #32
apavlov
On 2014/03/22 03:06:17, alancutter wrote: > On 2014/03/21 13:20:52, alancutter wrote: > > On 2014/03/21 ...
6 years, 8 months ago (2014-04-21 07:02:40 UTC) #33
alancutter (OOO until 2018)
On 2014/04/21 07:02:40, apavlov wrote: > > Hey Alan, > > Any decision or progress ...
6 years, 8 months ago (2014-04-24 08:10:02 UTC) #34
apavlov
On 2014/04/24 08:10:02, alancutter wrote: > On 2014/04/21 07:02:40, apavlov wrote: > > > > ...
6 years, 8 months ago (2014-04-24 08:19:01 UTC) #35
apavlov
What should we do about this patch? Is it already obsolete due to the recent ...
6 years, 1 month ago (2014-10-31 12:34:23 UTC) #36
Timothy Loh
6 years, 1 month ago (2014-10-31 22:52:59 UTC) #37
On 2014/10/31 12:34:23, apavlov wrote:
> What should we do about this patch? Is it already obsolete due to the recent
> work on shorthands?

andersr recently landed this https://codereview.chromium.org/677103002/,
closing.

Powered by Google App Engine
This is Rietveld 408576698