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

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

Issue 195313003: [SVG2] Add getters and setters to SVG*List interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: s/slength/size Created 6 years, 9 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/SVGStringListTearOff.h ('k') | Source/core/svg/SVGTransformList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTransformList.cpp
diff --git a/Source/core/svg/SVGTransformList.cpp b/Source/core/svg/SVGTransformList.cpp
index 90029880fc109afe10e1f39d2ba598df1ae53959..5e1698d88c16f3b56d27b4f005ffaaee5cd1b959 100644
--- a/Source/core/svg/SVGTransformList.cpp
+++ b/Source/core/svg/SVGTransformList.cpp
@@ -288,10 +288,10 @@ void SVGTransformList::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement* con
return;
RefPtr<SVGTransformList> otherList = toSVGTransformList(other);
- if (numberOfItems() != otherList->numberOfItems())
+ if (length() != otherList->length())
return;
- ASSERT(numberOfItems() == 1);
+ ASSERT(length() == 1);
RefPtr<SVGTransform> fromTransform = at(0);
RefPtr<SVGTransform> toTransform = otherList->at(0);
@@ -313,8 +313,8 @@ void SVGTransformList::calculateAnimatedValue(SVGAnimationElement* animationElem
RefPtr<SVGTransformList> toList = toSVGTransformList(toValue);
RefPtr<SVGTransformList> toAtEndOfDurationList = toSVGTransformList(toAtEndOfDurationValue);
- size_t fromListSize = fromList->numberOfItems();
- size_t toListSize = toList->numberOfItems();
+ size_t fromListSize = fromList->length();
+ size_t toListSize = toList->length();
if (!toListSize)
return;
@@ -340,10 +340,10 @@ float SVGTransformList::calculateDistance(PassRefPtr<NewSVGPropertyBase> toValue
// is paced separately. To implement this we need to treat each component as individual animation everywhere.
RefPtr<SVGTransformList> toList = toSVGTransformList(toValue);
- if (isEmpty() || numberOfItems() != toList->numberOfItems())
+ if (isEmpty() || length() != toList->length())
return -1;
- ASSERT(numberOfItems() == 1);
+ ASSERT(length() == 1);
if (at(0)->transformType() == toList->at(0)->transformType())
return -1;
« no previous file with comments | « Source/core/svg/SVGStringListTearOff.h ('k') | Source/core/svg/SVGTransformList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698