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

Issue 150333003: Expand the "font" shorthand when specified using a system font keyword. (Closed)

Created:
6 years, 10 months ago by apavlov
Modified:
6 years, 9 months ago
Reviewers:
TabAtkins, darktears
CC:
blink-reviews, dglazkov+blink, apavlov+blink_chromium.org, ed+blinkwatch_opera.com
Visibility:
Public.

Description

Expand the "font" shorthand when specified using a system font keyword. R=darktears BUG=331801

Patch Set 1 #

Patch Set 2 : Rebased patch with no "font" shorthand added explicitly #

Patch Set 3 : Add test #

Total comments: 2

Patch Set 4 : Assert the value list size and check it before calling parseKeywordBasedFont() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -17 lines) Patch
A LayoutTests/fast/css/font-shorthand-keywords.html View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/font-shorthand-keywords-expected.txt View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 3 chunks +31 lines, -5 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
apavlov
6 years, 10 months ago (2014-01-30 14:27:28 UTC) #1
apavlov
The problem with the patch is: style.font = "-webkit-control"; style.font = ""; style.font == "-webkit-control"; ...
6 years, 10 months ago (2014-01-30 16:35:35 UTC) #2
apavlov
The problem is obviously due to the way shorthand properties are removed: only longhands are, ...
6 years, 10 months ago (2014-02-04 08:10:17 UTC) #3
apavlov
ping?
6 years, 10 months ago (2014-02-14 12:41:26 UTC) #4
apavlov
Friendly ping
6 years, 9 months ago (2014-03-14 08:27:28 UTC) #5
darktears
On 2014/01/30 16:35:35, apavlov wrote: > The problem with the patch is: > > style.font ...
6 years, 9 months ago (2014-03-18 12:12:36 UTC) #6
apavlov
Patch updated per Tab's response.
6 years, 9 months ago (2014-03-20 08:20:00 UTC) #7
darktears
Thanks for doing this. LGTM. https://codereview.chromium.org/150333003/diff/80001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/150333003/diff/80001/Source/core/css/parser/CSSPropertyParser.cpp#newcode4529 Source/core/css/parser/CSSPropertyParser.cpp:4529: return false; nit : ...
6 years, 9 months ago (2014-03-20 13:20:17 UTC) #8
apavlov
https://codereview.chromium.org/150333003/diff/80001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/150333003/diff/80001/Source/core/css/parser/CSSPropertyParser.cpp#newcode4529 Source/core/css/parser/CSSPropertyParser.cpp:4529: return false; On 2014/03/20 13:20:17, darktears wrote: > nit ...
6 years, 9 months ago (2014-03-20 14:38:24 UTC) #9
apavlov
The CQ bit was checked by apavlov@chromium.org
6 years, 9 months ago (2014-03-20 14:38:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apavlov@chromium.org/150333003/100001
6 years, 9 months ago (2014-03-20 14:38:45 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 14:41:29 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-20 14:41:30 UTC) #13
apavlov
The CQ bit was unchecked by apavlov@chromium.org
6 years, 9 months ago (2014-03-20 14:48:29 UTC) #14
apavlov
6 years, 9 months ago (2014-03-20 15:53:07 UTC) #15
Message was sent while issue was closed.
Closed, since https://codereview.chromium.org/205743004/ does the same thing
(and a tad more)

Powered by Google App Engine
This is Rietveld 408576698