Chromium Code Reviews

Unified Diff: Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 983073002: Make font-size-adjust animatable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Do not allow font-size-adjust to animate for none or 0 Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/css/resolver/AnimatedStyleBuilder.cpp
diff --git a/Source/core/css/resolver/AnimatedStyleBuilder.cpp b/Source/core/css/resolver/AnimatedStyleBuilder.cpp
index d2460975b6406eb052be97430861dcaf9f94cc03..601104dcb4cba4543ea3c606aaeb34b632a403ac 100644
--- a/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -390,6 +390,9 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
case CSSPropertyFontSize:
state.fontBuilder().setSize(animatableValueToFontSize(value));
return;
+ case CSSPropertyFontSizeAdjust:
+ state.fontBuilder().setSizeAdjust(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0));
+ return;
case CSSPropertyFontStretch:
state.fontBuilder().setStretch(animatableValueToFontStretch(value));
return;

Powered by Google App Engine