Index: Source/core/animation/css/CSSAnimatableValueFactory.cpp |
diff --git a/Source/core/animation/css/CSSAnimatableValueFactory.cpp b/Source/core/animation/css/CSSAnimatableValueFactory.cpp |
index abd8fee07599dd4dbe930964448779db6d74d6e7..f52b2f61ee07b6f19d81207feefb96f9fa08acd0 100644 |
--- a/Source/core/animation/css/CSSAnimatableValueFactory.cpp |
+++ b/Source/core/animation/css/CSSAnimatableValueFactory.cpp |
@@ -225,6 +225,16 @@ inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromShapeValue(Shape |
return AnimatableUnknown::create(CSSValueNone); |
} |
+static double fontStretchToDouble(FontStretch fontStretch) |
+{ |
+ return static_cast<unsigned>(fontStretch); |
+} |
+ |
+static PassRefPtr<AnimatableValue> createFromFontStretch(FontStretch fontStretch) |
+{ |
+ return createFromDouble(fontStretchToDouble(fontStretch)); |
+} |
+ |
static double fontWeightToDouble(FontWeight fontWeight) |
{ |
switch (fontWeight) { |
@@ -341,6 +351,8 @@ PassRefPtrWillBeRawPtr<AnimatableValue> CSSAnimatableValueFactory::create(CSSPro |
// FIXME: Should we introduce an option to pass the computed font size here, allowing consumers to |
// enable text zoom rather than Text Autosizing? See http://crbug.com/227545. |
return createFromDouble(style.specifiedFontSize()); |
+ case CSSPropertyFontStretch: |
+ return createFromFontStretch(style.fontStretch()); |
case CSSPropertyFontWeight: |
return createFromFontWeight(style.fontWeight()); |
case CSSPropertyHeight: |