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

Issue 1955723004: Implement font-variant-numeric (Closed)

Created:
4 years, 7 months ago by drott
Modified:
4 years, 7 months ago
CC:
darktears, apavlov+blink_chromium.org, asvitkine+watch_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, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement font-variant-numeric Now that we have font-variant converted to be a shorthand, we can base an implementation of font-variant-numeric on top. This CL implements the font-variant-numeric property, integrates it with the font-variant shorthand, implements the required OpenType mappings and activates the feature in HarfBuzz as needed. Tests added and extended accordingly. Intent to Implement and Ship thread on blink-dev: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/osZzOCF-ONM BUG=609813 Committed: https://crrev.com/922e9b6aab1704df01ff8a03212a85e53a360e4b Cr-Commit-Position: refs/heads/master@{#393534}

Patch Set 1 #

Patch Set 2 : Remove whitespace and clarified TODOs #

Total comments: 14

Patch Set 3 : Review comments addressed #

Patch Set 4 : eae@'s review comments addressed #

Total comments: 10

Patch Set 5 : Review comments addressed, test expectations updated #

Patch Set 6 : font-shorthand rebaselined #

Total comments: 1

Patch Set 7 : Line moved back #

Total comments: 1

Patch Set 8 : FIXME -> TODO #

Patch Set 9 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+521 lines, -45 lines) Patch
M third_party/WebKit/LayoutTests/fast/css/font-property-priority-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/font-shorthand-expected.txt View 1 2 3 4 5 18 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/font-shorthand-from-longhands.html View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/font-shorthand-from-longhands-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/font-variant-shorthand-from-longhands.html View 2 chunks +13 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/font-variant-shorthand-from-longhands-expected.txt View 1 chunk +7 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-empty-font-family-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-font-family-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-listing-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-listing-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/inspector-support/style-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/text/font-features/font-variant-numeric.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/text/font-features/font-variant-numeric-expected.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/font-features/font-variant-shorthand.html View 1 2 3 4 4 chunks +44 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/font-features/resources/font-variant-features.js View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-style-whitelist-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-properties-overload-expected.txt View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/svg/css/getComputedStyle-listing-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/css-properties-as-js-properties-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueKeywords.in View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 3 4 5 6 7 3 chunks +27 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySerializer.cpp View 3 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 6 chunks +104 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FontBuilder.h View 4 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp View 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FontBuilderTest.cpp View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDescription.h View 1 2 3 4 5 6 7 8 9 chunks +20 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDescription.cpp View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/platform/fonts/FontVariantNumeric.h View 1 2 3 4 1 chunk +95 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 62 (24 generated)
drott
PTAL, thanks.
4 years, 7 months ago (2016-05-06 13:11:30 UTC) #2
drott
Remove whitespace and clarified TODOs
4 years, 7 months ago (2016-05-06 13:19:56 UTC) #3
eae
LGTM https://codereview.chromium.org/1955723004/diff/20001/third_party/WebKit/Source/platform/fonts/FontDescription.h File third_party/WebKit/Source/platform/fonts/FontDescription.h (right): https://codereview.chromium.org/1955723004/diff/20001/third_party/WebKit/Source/platform/fonts/FontDescription.h#newcode52 third_party/WebKit/Source/platform/fonts/FontDescription.h:52: uint32_t f[2]; part or segment might be a ...
4 years, 7 months ago (2016-05-09 16:31:58 UTC) #4
Timothy Loh
https://codereview.chromium.org/1955723004/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1955723004/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode548 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:548: class VariantNumericValidator { Why is this different to the ...
4 years, 7 months ago (2016-05-10 05:26:26 UTC) #5
drott
Review comments addressed
4 years, 7 months ago (2016-05-10 09:18:03 UTC) #6
drott
eae@'s review comments addressed
4 years, 7 months ago (2016-05-10 10:58:15 UTC) #7
drott
Thanks for the review, Tim and Emil - comments addressed. https://codereview.chromium.org/1955723004/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1955723004/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode548 ...
4 years, 7 months ago (2016-05-10 10:59:06 UTC) #8
Timothy Loh
Bots are red, there are a whole bunch of tests that need to be updated ...
4 years, 7 months ago (2016-05-11 06:47:26 UTC) #9
drott
Review comments addressed, test expectations updated
4 years, 7 months ago (2016-05-11 08:06:50 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955723004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955723004/80001
4 years, 7 months ago (2016-05-11 08:06:54 UTC) #12
drott
Thanks for the review, CL updated. https://codereview.chromium.org/1955723004/diff/60001/third_party/WebKit/LayoutTests/fast/text/font-features/font-variant-numeric.html File third_party/WebKit/LayoutTests/fast/text/font-features/font-variant-numeric.html (right): https://codereview.chromium.org/1955723004/diff/60001/third_party/WebKit/LayoutTests/fast/text/font-features/font-variant-numeric.html#newcode18 third_party/WebKit/LayoutTests/fast/text/font-features/font-variant-numeric.html:18: </script> On 2016/05/11 ...
4 years, 7 months ago (2016-05-11 08:10:47 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/226906)
4 years, 7 months ago (2016-05-11 09:22:30 UTC) #15
drott
font-shorthand rebaselined
4 years, 7 months ago (2016-05-11 11:20:26 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955723004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955723004/100001
4 years, 7 months ago (2016-05-11 11:20:35 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-11 12:47:12 UTC) #20
Timothy Loh
lgtm https://codereview.chromium.org/1955723004/diff/100001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1955723004/diff/100001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode4176 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:4176: CSSValueID id = m_range.peek().id(); This line doesn't need ...
4 years, 7 months ago (2016-05-12 07:24:42 UTC) #21
drott
Line moved back
4 years, 7 months ago (2016-05-12 07:38:11 UTC) #22
drott
dpranke@chromium.org, mpearson@chromium.org, could you please review the changes in third_party/WebKit/LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt tools/metrics/histograms/histograms.xml
4 years, 7 months ago (2016-05-12 07:39:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955723004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955723004/120001
4 years, 7 months ago (2016-05-12 07:39:41 UTC) #27
Timothy Loh
One more quick thing, we should link to the intent thread somewhere either in the ...
4 years, 7 months ago (2016-05-12 07:45:35 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/181909)
4 years, 7 months ago (2016-05-12 07:46:43 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955723004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955723004/120001
4 years, 7 months ago (2016-05-12 07:48:16 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-12 09:15:00 UTC) #37
Dirk Pranke
On 2016/05/12 07:39:30, drott wrote: > mailto:dpranke@chromium.org, mailto:mpearson@chromium.org, could you please review the changes > ...
4 years, 7 months ago (2016-05-13 01:37:50 UTC) #38
drott
On 2016/05/13 at 01:37:50, dpranke wrote: > I'm not an owner for webexposed; I suggest ...
4 years, 7 months ago (2016-05-13 08:31:26 UTC) #40
tkent
lgtm. I'm not an owner of histograms.xml. https://codereview.chromium.org/1955723004/diff/120001/third_party/WebKit/Source/platform/fonts/FontDescription.h File third_party/WebKit/Source/platform/fonts/FontDescription.h (right): https://codereview.chromium.org/1955723004/diff/120001/third_party/WebKit/Source/platform/fonts/FontDescription.h#newcode241 third_party/WebKit/Source/platform/fonts/FontDescription.h:241: // FIXME: ...
4 years, 7 months ago (2016-05-13 08:44:12 UTC) #41
drott
asvitkine@, holte@, isherman@, jwd@, mpearson@, rkaplow@, can anyone of you review the histograms.xml change? Thank ...
4 years, 7 months ago (2016-05-13 09:14:28 UTC) #43
drott
FIXME -> TODO
4 years, 7 months ago (2016-05-13 11:39:34 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955723004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955723004/140001
4 years, 7 months ago (2016-05-13 11:39:44 UTC) #46
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 13:21:23 UTC) #48
rkaplow
lgtm histogram lgtm
4 years, 7 months ago (2016-05-13 14:12:40 UTC) #49
drott
rkaplow, thanks!
4 years, 7 months ago (2016-05-13 14:13:42 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955723004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955723004/140001
4 years, 7 months ago (2016-05-13 14:14:18 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/182708)
4 years, 7 months ago (2016-05-13 14:22:37 UTC) #55
drott
rebased
4 years, 7 months ago (2016-05-13 14:26:22 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955723004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955723004/160001
4 years, 7 months ago (2016-05-13 14:26:42 UTC) #59
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 7 months ago (2016-05-13 16:03:29 UTC) #60
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 16:05:08 UTC) #62
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/922e9b6aab1704df01ff8a03212a85e53a360e4b
Cr-Commit-Position: refs/heads/master@{#393534}

Powered by Google App Engine
This is Rietveld 408576698