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

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: tweak TE 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
Index: Source/core/svg/SVGLengthList.cpp
diff --git a/Source/core/svg/SVGLengthList.cpp b/Source/core/svg/SVGLengthList.cpp
index 1fadc5eb0daf1e93703d6ac7abf0e9bcbd858d47..ad9d95c3a5aa1328a43f3c6640c8ca8ded1c1374 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)->getCSSPrimitiveValue()->primitiveType();
float effectiveFrom = 0;
if (fromLengthListSize) {
if (percentage < 0.5)
- unitType = fromList->at(i)->unitType();
+ unitType = fromList->at(i)->getCSSPrimitiveValue()->primitiveType();
effectiveFrom = fromList->at(i)->value(lengthContext);
}
float effectiveTo = toList->at(i)->value(lengthContext);

Powered by Google App Engine
This is Rietveld 408576698