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

Unified Diff: Source/core/svg/SVGLengthList.cpp

Issue 1162453002: [svg2] Make SVGLength wrap a CSSPrimitiveValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nit Created 5 years, 7 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/svg/SVGLengthContext.cpp ('k') | Source/core/svg/SVGLengthTearOff.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLengthList.cpp
diff --git a/Source/core/svg/SVGLengthList.cpp b/Source/core/svg/SVGLengthList.cpp
index 1fadc5eb0daf1e93703d6ac7abf0e9bcbd858d47..2f99d407948edc9a1b28bb16fbdd69453d70267e 100644
--- a/Source/core/svg/SVGLengthList.cpp
+++ b/Source/core/svg/SVGLengthList.cpp
@@ -152,11 +152,11 @@ void SVGLengthList::calculateAnimatedValue(SVGAnimationElement* animationElement
for (size_t i = 0; i < toLengthListSize; ++i) {
float animatedNumber = at(i)->value(lengthContext);
- SVGLengthType unitType = toList->at(i)->unitType();
+ CSSPrimitiveValue::UnitType unitType = toList->at(i)->primitiveType();
float effectiveFrom = 0;
if (fromLengthListSize) {
if (percentage < 0.5)
- unitType = fromList->at(i)->unitType();
+ unitType = fromList->at(i)->primitiveType();
effectiveFrom = fromList->at(i)->value(lengthContext);
}
float effectiveTo = toList->at(i)->value(lengthContext);
« no previous file with comments | « Source/core/svg/SVGLengthContext.cpp ('k') | Source/core/svg/SVGLengthTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698