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

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

Issue 1421533006: Make SVGLength wrap a CSSPrimitiveValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added expectation Created 5 years, 1 month 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: third_party/WebKit/Source/core/svg/SVGLengthList.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
index 46c57c9188b0edc8243e6b2b4f860bcd9198bfdc..60620ec7036db0210a792102d6fdaf4c3f0574d3 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
@@ -147,11 +147,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)->typeWithCalcResolved();
float effectiveFrom = 0;
if (fromLengthListSize) {
if (percentage < 0.5)
- unitType = fromList->at(i)->unitType();
+ unitType = fromList->at(i)->typeWithCalcResolved();
effectiveFrom = fromList->at(i)->value(lengthContext);
}
float effectiveTo = toList->at(i)->value(lengthContext);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthContext.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLengthTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698