Support the font-variation-settings property in CSS parsing and prepare a data structure that - as a next step - can be used for passing the defined axes values to shaping and font painting.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/ba39ed57a09afdcf993eff77d70268b8c110be34 commit ba39ed57a09afdcf993eff77d70268b8c110be34 Author: drott <drott@chromium.org> Date: Mon Dec 12 12:40:10 2016 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 Review-Url: https://codereview.chromium.org/2558053002 Cr-Commit-Position: refs/heads/master@{#437853} [add] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/LayoutTests/fast/css/font-variation-settings-css-support.html [add] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/LayoutTests/fast/css/resources/font-variation-settings-css-support.js [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/LayoutTests/webexposed/css-properties-as-js-properties-expected.txt [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/BUILD.gn [add] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/CSSFontVariationValue.cpp [add] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/CSSFontVariationValue.h [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/CSSProperties.in [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/CSSValue.cpp [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/CSSValue.h [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/resolver/FontBuilder.h [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/core/frame/UseCounter.cpp [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/platform/fonts/FontDescription.cpp [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/platform/fonts/FontDescription.h [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/third_party/WebKit/Source/platform/fonts/opentype/FontSettings.h [modify] https://crrev.com/ba39ed57a09afdcf993eff77d70268b8c110be34/tools/metrics/histograms/histograms.xml
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/4560fda00d1cb1cab638549fbc22dcb8f09a6653 commit 4560fda00d1cb1cab638549fbc22dcb8f09a6653 Author: ericwilligers <ericwilligers@chromium.org> Date: Wed Sep 13 10:29:24 2017 CSS: Retire runtime flag CSSFontDisplay Support for font-display shipped to stable in Chrome 60. The runtime flag is no longer needed. BUG= 669455 Change-Id: I8d7e5eb46797dc78f9f4330dcba28ab68212f2e5 Reviewed-on: https://chromium-review.googlesource.com/659719 Reviewed-by: Dominik Röttsches <drott@chromium.org> Reviewed-by: Kunihiko Sakamoto <ksakamoto@chromium.org> Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Cr-Commit-Position: refs/heads/master@{#501586} [modify] https://crrev.com/4560fda00d1cb1cab638549fbc22dcb8f09a6653/third_party/WebKit/Source/core/css/CSSProperties.json5 [modify] https://crrev.com/4560fda00d1cb1cab638549fbc22dcb8f09a6653/third_party/WebKit/Source/core/css/FontFace.cpp [modify] https://crrev.com/4560fda00d1cb1cab638549fbc22dcb8f09a6653/third_party/WebKit/Source/core/css/FontFace.idl [modify] https://crrev.com/4560fda00d1cb1cab638549fbc22dcb8f09a6653/third_party/WebKit/Source/core/css/FontFaceDescriptors.idl [modify] https://crrev.com/4560fda00d1cb1cab638549fbc22dcb8f09a6653/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5
Comment 1 by drott@chromium.org
, Nov 29 2016