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

Issue 2558053002: Add CSS support for font-variation-settings (Closed)

Created:
4 years ago by drott
Modified:
4 years ago
CC:
ajuma+watch_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-platform-graphics_chromium.org, blink-reviews-style_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eae, f(malita), gavinp+loader_chromium.org, Nate Chapin, jbroman, Justin Novosad, loading-reviews_chromium.org, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CSS support for font-variation-settings Implemented analogously to font-feature-settings, as their definition in the spec is quite similar as well [1]. Add an experimental web platform features flag for CSSVariableFonts. [1] https://drafts.csswg.org/css-fonts-4/#low-level-font-variation-settings-control-the-font-variation-settings-property TEST=fast/css/font-variation-settings-css-support.html BUG=669455, 669460 Committed: https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34 Cr-Commit-Position: refs/heads/master@{#437853}

Patch Set 1 #

Patch Set 2 : Remove empty if statement #

Total comments: 9

Patch Set 3 : Addressing Tim's review comments, adjusting test expectations #

Total comments: 1

Patch Set 4 : DCHECK corrected, newline removed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -8 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/font-variation-settings-css-support.html View 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/css-properties-as-js-properties-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSFontVariationValue.h View 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSFontVariationValue.cpp View 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.h View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.cpp View 5 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 chunks +44 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FontBuilder.h View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp View 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDescription.h View 3 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDescription.cpp View 3 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/opentype/FontSettings.h View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
drott
PTAL, thanks.
4 years ago (2016-12-07 14:40:37 UTC) #3
drott
Remove empty if statement
4 years ago (2016-12-07 14:55:05 UTC) #6
Timothy Loh
Looks good, but there are a few crashing tests? https://codereview.chromium.org/2558053002/diff/20001/third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js File third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js (right): https://codereview.chromium.org/2558053002/diff/20001/third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js#newcode4 third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js:4: ...
4 years ago (2016-12-08 03:36:05 UTC) #11
drott
Addressing Tim's review comments, adjusting test expectations
4 years ago (2016-12-08 07:53:45 UTC) #12
drott
Thanks for the review, updated. https://codereview.chromium.org/2558053002/diff/20001/third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js File third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js (right): https://codereview.chromium.org/2558053002/diff/20001/third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js#newcode4 third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js:4: "'abcd' 0.3, 'efgh' 1.4", ...
4 years ago (2016-12-09 10:25:50 UTC) #17
Timothy Loh
lgtm https://codereview.chromium.org/2558053002/diff/20001/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp File third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/2558053002/diff/20001/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp#newcode1394 third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp:1394: DCHECK(!RuntimeEnabledFeatures::css3TextDecorationsEnabled()); This one is correct -- when the ...
4 years ago (2016-12-12 02:15:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2558053002/60001
4 years ago (2016-12-12 08:14:20 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/323556)
4 years ago (2016-12-12 08:23:24 UTC) #23
drott
Jochen, Mike, could you please take a look at the histograms.xml change? Thanks.
4 years ago (2016-12-12 09:02:50 UTC) #25
Mike West
histograms.xml LGTM.
4 years ago (2016-12-12 11:44:41 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2558053002/60001
4 years ago (2016-12-12 11:45:34 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-12 12:40:44 UTC) #31
commit-bot: I haz the power
4 years ago (2016-12-12 15:11:41 UTC) #33
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34
Cr-Commit-Position: refs/heads/master@{#437853}

Powered by Google App Engine
This is Rietveld 408576698