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

Issue 1103273010: Add parseFontFaceDescriptor for @font-face handling (Closed)

Created:
5 years, 7 months ago by rwlbuis
Modified:
5 years, 7 months ago
Reviewers:
Timothy Loh
CC:
blink-reviews, blink-reviews-style_chromium.org, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add parseFontFaceDescriptor for @font-face handling Add parseFontFaceDescriptor for @font-face handling, similar to parseViewportProperty. Change FontFace to make it end up in this new code path too. With this change using initial/inherit/unset on properties in @font-face is not possible anymore and all properties not handled in parseFontFaceProperty are discarded. This also addresses bug 408484, i.e. using !important in @font-face causes the property to be dropped. Behavior matches FireFox. BUG=404023, 408484 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194903

Patch Set 1 #

Patch Set 2 : V2 #

Total comments: 5

Patch Set 3 : V3 #

Patch Set 4 : V4 #

Total comments: 2

Patch Set 5 : V5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -8 lines) Patch
M LayoutTests/fast/css/font-face-src-parsing.html View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/font-face-src-parsing-expected.txt View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/css/FontFace.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/parser/CSSParser.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParser.cpp View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 3 chunks +57 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
rwlbuis
PTAL. V2 is slightly different but requires https://codereview.chromium.org/1116593003/ I wonder if we can actually get ...
5 years, 7 months ago (2015-04-29 22:34:33 UTC) #2
Timothy Loh
https://codereview.chromium.org/1103273010/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1103273010/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp#newcode423 Source/core/css/parser/CSSPropertyParser.cpp:423: if (m_ruleType == StyleRule::Viewport) { This reads weird, and ...
5 years, 7 months ago (2015-05-01 04:32:16 UTC) #3
rwlbuis
On 2015/04/29 22:34:33, rwlbuis wrote: > PTAL. V2 is slightly different but requires > https://codereview.chromium.org/1116593003/ ...
5 years, 7 months ago (2015-05-01 22:00:53 UTC) #4
rwlbuis
On 2015/05/01 04:32:16, Timothy Loh wrote: > https://codereview.chromium.org/1103273010/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp > File Source/core/css/parser/CSSPropertyParser.cpp (right): > > https://codereview.chromium.org/1103273010/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp#newcode423 ...
5 years, 7 months ago (2015-05-01 22:04:23 UTC) #5
Timothy Loh
Couple of last comments and then we're good to go. https://codereview.chromium.org/1103273010/diff/60001/Source/core/css/FontFace.cpp File Source/core/css/FontFace.cpp (left): https://codereview.chromium.org/1103273010/diff/60001/Source/core/css/FontFace.cpp#oldcode68 ...
5 years, 7 months ago (2015-05-04 02:05:18 UTC) #6
rwlbuis
On 2015/05/04 02:05:18, Timothy Loh wrote: > Couple of last comments and then we're good ...
5 years, 7 months ago (2015-05-04 20:07:13 UTC) #7
Timothy Loh
lgtm
5 years, 7 months ago (2015-05-04 23:57:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1103273010/80001
5 years, 7 months ago (2015-05-05 00:43:24 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-05-05 03:46:41 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194903

Powered by Google App Engine
This is Rietveld 408576698