DescriptionBuild 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. #
Messages
Total messages: 20 (6 generated)
|