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

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

Issue 24467007: Generate toCSSCalcValue() instead of using manual inline functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 | « no previous file | Source/core/css/CSSCalculationValue.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 415fc8bed44237de61ae84f49eea0987d2c2cdf7..a214572afd52d31f01803d2246d225b0b362bf5e 100644
--- a/Source/core/animation/AnimatableNumber.cpp
+++ b/Source/core/animation/AnimatableNumber.cpp
@@ -52,7 +52,7 @@ PassRefPtr<AnimatableNumber> AnimatableNumber::create(CSSValue* value)
return create(primitiveValue->getDoubleValue() * scale, unitType, primitiveValue);
}
- if (value->isCalculationValue())
+ if (value->isCalcValue())
return create(toCSSCalcValue(value)->expressionNode());
ASSERT_NOT_REACHED();
@@ -78,7 +78,7 @@ bool AnimatableNumber::canCreateFrom(const CSSValue* value)
return true;
return primitiveUnitToNumberType(primitiveValue->primitiveType()) != UnitTypeInvalid;
}
- return value->isCalculationValue();
+ return value->isCalcValue();
}
PassRefPtr<CSSValue> AnimatableNumber::toCSSValue(NumberRange range) const
« no previous file with comments | « no previous file | Source/core/css/CSSCalculationValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698