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

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

Issue 19744002: Web Animations: Add CSSAnimatableValueFactory API (partial implementation) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move folders and add const to param Created 7 years, 5 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
« no previous file with comments | « Source/core/animation/AnimatableNumber.h ('k') | Source/core/animation/AnimatableValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableNumber.cpp
diff --git a/Source/core/animation/AnimatableNumber.cpp b/Source/core/animation/AnimatableNumber.cpp
index e0929f2142b3e06370ed24dd99f54c26f10f5911..7b9024968958db2ce4956481180517803c4869ec 100644
--- a/Source/core/animation/AnimatableNumber.cpp
+++ b/Source/core/animation/AnimatableNumber.cpp
@@ -139,7 +139,7 @@ AnimatableNumber::NumberUnitType AnimatableNumber::primitiveUnitToNumberType(uns
{
switch (primitiveUnit) {
case CSSPrimitiveValue::CSS_NUMBER:
- return UnitTypeNone;
+ return UnitTypeNumber;
case CSSPrimitiveValue::CSS_PX:
case CSSPrimitiveValue::CSS_CM:
case CSSPrimitiveValue::CSS_MM:
@@ -186,7 +186,7 @@ AnimatableNumber::NumberUnitType AnimatableNumber::primitiveUnitToNumberType(uns
unsigned short AnimatableNumber::numberTypeToPrimitiveUnit(NumberUnitType numberType)
{
switch (numberType) {
- case UnitTypeNone:
+ case UnitTypeNumber:
return CSSPrimitiveValue::CSS_NUMBER;
case UnitTypeLength:
return CSSPrimitiveValue::CSS_PX;
« no previous file with comments | « Source/core/animation/AnimatableNumber.h ('k') | Source/core/animation/AnimatableValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698