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

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

Issue 955863002: Support keywords in LengthStyleInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 dc9438e01db591f8debfffa48e622ca271e46c26..18779160d0b0360817b60000e5e5a37880df3519 100644
--- a/Source/core/animation/StringKeyframe.cpp
+++ b/Source/core/animation/StringKeyframe.cpp
@@ -190,23 +190,13 @@ PassRefPtrWillBeRawPtr<Interpolation> StringKeyframe::PropertySpecificKeyframe::
case CSSPropertyVerticalAlign:
case CSSPropertyWordSpacing:
case CSSPropertyWebkitColumnRuleWidth:
- if (LengthStyleInterpolation::canCreateFrom(*fromCSSValue) && LengthStyleInterpolation::canCreateFrom(*toCSSValue))
+ if (LengthStyleInterpolation::canCreateFrom(*fromCSSValue, property) && LengthStyleInterpolation::canCreateFrom(*toCSSValue, property))
return LengthStyleInterpolation::create(*fromCSSValue, *toCSSValue, property, range);
- // FIXME: Handle keywords e.g. 'none'.
- if (property == CSSPropertyPerspective)
- fallBackToLegacy = true;
// FIXME: Handle keywords e.g. 'smaller', 'larger'.
if (property == CSSPropertyFontSize)
fallBackToLegacy = true;
- // FIXME: Handle keywords e.g. 'normal'
- if (property == CSSPropertyLetterSpacing)
- fallBackToLegacy = true;
-
- // FIXME: Handle keywords e.g. 'thick'
- if (property == CSSPropertyOutlineWidth || property == CSSPropertyWebkitColumnRuleWidth)
- fallBackToLegacy = true;
break;
case CSSPropertyOrphans:
case CSSPropertyWidows:

Powered by Google App Engine
This is Rietveld 408576698