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

Issue 721773002: Build animated font properties through FontBuilder. (Closed)

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

Description

Build animated font properties through FontBuilder. Font mutations during style resolution should happen through the FontBuilder of the StyleResolverState. Otherwise, the elaborate zooming and min-max logic in FontSize via FontBuilder is not applied. It is also good etiquette by AnimatedStyleBuilder to *not* secretly update the Font without notice, because it makes the 'fontDirty' flag wrong, in some cases. (Although the worst-case scenario is just an extra Font update). FontBuilder::setSize used to accept a CSSValue*, and I would assume that's why RenderStyle::setFontSize was created in the first place. It's easy to cleanly set a new size on the builder now, though. R=alancutter@chromium.org BUG=227545 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185449

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 2

Patch Set 3 : Re-upload with --no-find-copies. #

Total comments: 1

Patch Set 4 : Add comment about clamping. #

Total comments: 2

Patch Set 5 : Remove body tags. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -34 lines) Patch
A LayoutTests/animations/interpolation/font-size-zoom-interpolation.html View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/animations/interpolation/font-size-zoom-interpolation-expected.txt View 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 2 chunks +9 lines, -3 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 1 chunk +1 line, -9 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 4 chunks +4 lines, -22 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
andersr
6 years, 1 month ago (2014-11-12 20:42:47 UTC) #1
dstockwell
https://codereview.chromium.org/721773002/diff/20001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html File LayoutTests/animations/interpolation/font-size-zoom-interpolation.html (left): https://codereview.chromium.org/721773002/diff/20001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html#oldcode26 LayoutTests/animations/interpolation/font-size-zoom-interpolation.html:26: from: '4px', I don't understand the changes to this ...
6 years, 1 month ago (2014-11-12 22:41:11 UTC) #2
andersr
https://codereview.chromium.org/721773002/diff/20001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html File LayoutTests/animations/interpolation/font-size-zoom-interpolation.html (left): https://codereview.chromium.org/721773002/diff/20001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html#oldcode26 LayoutTests/animations/interpolation/font-size-zoom-interpolation.html:26: from: '4px', On 2014/11/12 22:41:11, dstockwell wrote: > I ...
6 years, 1 month ago (2014-11-13 00:30:19 UTC) #3
dstockwell
On 2014/11/13 at 00:30:19, andersr wrote: > https://codereview.chromium.org/721773002/diff/20001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html > File LayoutTests/animations/interpolation/font-size-zoom-interpolation.html (left): > > https://codereview.chromium.org/721773002/diff/20001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html#oldcode26 ...
6 years, 1 month ago (2014-11-13 00:42:47 UTC) #4
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/721773002/diff/40001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html File LayoutTests/animations/interpolation/font-size-zoom-interpolation.html (right): https://codereview.chromium.org/721773002/diff/40001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html#newcode27 LayoutTests/animations/interpolation/font-size-zoom-interpolation.html:27: {at: -2, is: '0px'}, We should keep the ...
6 years, 1 month ago (2014-11-15 09:15:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/721773002/60001
6 years, 1 month ago (2014-11-17 10:22:38 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/19930)
6 years, 1 month ago (2014-11-17 10:26:03 UTC) #9
rune
lgtm with nits Description: should happen _through_ the FontBuilder https://codereview.chromium.org/721773002/diff/60001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html File LayoutTests/animations/interpolation/font-size-zoom-interpolation.html (right): https://codereview.chromium.org/721773002/diff/60001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html#newcode14 LayoutTests/animations/interpolation/font-size-zoom-interpolation.html:14: ...
6 years, 1 month ago (2014-11-17 11:22:51 UTC) #11
andersr
On 2014/11/17 11:22:51, rune wrote: > lgtm with nits > > Description: should happen _through_ ...
6 years, 1 month ago (2014-11-17 12:15:21 UTC) #12
andersr
https://codereview.chromium.org/721773002/diff/60001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html File LayoutTests/animations/interpolation/font-size-zoom-interpolation.html (right): https://codereview.chromium.org/721773002/diff/60001/LayoutTests/animations/interpolation/font-size-zoom-interpolation.html#newcode14 LayoutTests/animations/interpolation/font-size-zoom-interpolation.html:14: <body> On 2014/11/17 11:22:50, rune wrote: > Body should ...
6 years, 1 month ago (2014-11-17 12:15:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/721773002/80001
6 years, 1 month ago (2014-11-17 12:16:35 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/36826)
6 years, 1 month ago (2014-11-17 14:21:45 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/721773002/80001
6 years, 1 month ago (2014-11-17 15:12:00 UTC) #19
commit-bot: I haz the power
6 years, 1 month ago (2014-11-17 15:54:34 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 185449

Powered by Google App Engine
This is Rietveld 408576698