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

Issue 173953002: Make font-weight animatable. (Closed)

Created:
6 years, 10 months ago by andersr
Modified:
6 years, 10 months ago
CC:
blink-reviews, shans, eae+blinkwatch, apavlov+blink_chromium.org, Steve Block, rwlbuis, dino_apple.com, bemjb+rendering_chromium.org, dsinclair, Timothy Loh, dstockwell, dglazkov+blink, jchaffraix+rendering, pdr., rune+blink, Eric Willigers, rjwright, zoltan1, darktears, leviw+renderwatch, Mike Lawther (Google), ed+blinkwatch_opera.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make font-weight animatable. We currently don't animate font-weight, even though (1) the spec calls for it, and (2) other browsers (IE+FF) do. The interpolator converts the font weights to equivalent real numbers, and performs the interpolation on these values. The font weight is rounded to the nearest 100 when the animated style is built. BUG=289734 TEST=automated Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167784

Patch Set 1 #

Patch Set 2 : Remove AnimatableFontWeight class. #

Total comments: 3

Patch Set 3 : Fixed review issues #

Total comments: 1

Patch Set 4 : Use clampTo<int>. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -0 lines) Patch
A LayoutTests/animations/interpolation/font-weight-interpolation.html View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
A LayoutTests/animations/interpolation/font-weight-interpolation-expected.txt View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 3 2 chunks +34 lines, -0 lines 0 comments Download
M Source/core/animation/css/CSSAnimations.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/animation/css/CSSPropertyAnimation.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
andersr
6 years, 10 months ago (2014-02-20 16:31:49 UTC) #1
alancutter (OOO until 2018)
Thanks again for the patch, it's appreciated! As mentioned on IRC the AnimatableFontWeight class is ...
6 years, 10 months ago (2014-02-21 00:24:25 UTC) #2
leviw_travelin_and_unemployed
The RenderStyle changes lgtm, but I defer to AlanCutter for the Animation stuff.
6 years, 10 months ago (2014-02-21 00:54:17 UTC) #3
andersr
AnimatableFontWeight removed. PTAL (alancutter).
6 years, 10 months ago (2014-02-21 11:42:41 UTC) #4
alancutter (OOO until 2018)
lgtm with nits. https://codereview.chromium.org/173953002/diff/60001/LayoutTests/animations/interpolation/font-weight-interpolation.html File LayoutTests/animations/interpolation/font-weight-interpolation.html (right): https://codereview.chromium.org/173953002/diff/60001/LayoutTests/animations/interpolation/font-weight-interpolation.html#newcode76 LayoutTests/animations/interpolation/font-weight-interpolation.html:76: {at: 8/8, is: '900'}, Since this ...
6 years, 10 months ago (2014-02-23 23:01:07 UTC) #5
alancutter (OOO until 2018)
lgtm behaviour change with nit. https://codereview.chromium.org/173953002/diff/170001/Source/core/css/resolver/AnimatedStyleBuilder.cpp File Source/core/css/resolver/AnimatedStyleBuilder.cpp (right): https://codereview.chromium.org/173953002/diff/170001/Source/core/css/resolver/AnimatedStyleBuilder.cpp#newcode244 Source/core/css/resolver/AnimatedStyleBuilder.cpp:244: index = std::min(std::max(index, 0), ...
6 years, 10 months ago (2014-02-24 23:01:04 UTC) #6
andersr
The CQ bit was checked by andersr@opera.com
6 years, 10 months ago (2014-02-25 09:26:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andersr@opera.com/173953002/210001
6 years, 10 months ago (2014-02-25 09:26:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andersr@opera.com/173953002/210001
6 years, 10 months ago (2014-02-25 13:29:12 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-02-25 15:21:31 UTC) #10
Message was sent while issue was closed.
Change committed as 167784

Powered by Google App Engine
This is Rietveld 408576698