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

Unified Diff: Source/core/animation/StringKeyframe.cpp

Issue 983073002: Make font-size-adjust animatable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed comments Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/animation/StringKeyframe.cpp
diff --git a/Source/core/animation/StringKeyframe.cpp b/Source/core/animation/StringKeyframe.cpp
index 3aa81904ea03a9d174a6b4a3d17f8f4bfb0783b1..3e552e87baaed80b6f29c4fdc6c1d474af46a40b 100644
--- a/Source/core/animation/StringKeyframe.cpp
+++ b/Source/core/animation/StringKeyframe.cpp
@@ -111,6 +111,8 @@ InterpolationRange setRange(CSSPropertyID id)
return RangeOpacityFIXME;
case CSSPropertyStrokeMiterlimit:
return RangeGreaterThanOrEqualToOne;
+ case CSSPropertyFontSizeAdjust:
+ return RangeNonNegative;
default:
ASSERT_NOT_REACHED();
return RangeAll;
@@ -214,6 +216,13 @@ PassRefPtrWillBeRawPtr<Interpolation> StringKeyframe::PropertySpecificKeyframe::
fallBackToLegacy = true;
break;
+ case CSSPropertyFontSizeAdjust:
+ if (AnimatableValue::usesDefaultInterpolation(
dstockwell 2015/03/17 23:36:46 Hmm, instead of adding these checks here, we can j
changseok 2015/03/18 09:05:02 Done.
+ StyleResolver::createAnimatableValueSnapshot(*element, baseStyle, property, fromCSSValue).get(),
+ StyleResolver::createAnimatableValueSnapshot(*element, baseStyle, property, toCSSValue).get())) {
+ forceDefaultInterpolation = true;
+ break;
+ }
case CSSPropertyOrphans:
case CSSPropertyWidows:
case CSSPropertyZIndex:

Powered by Google App Engine
This is Rietveld 408576698