Index: Source/core/svg/SVGPathSegList.cpp |
diff --git a/Source/core/svg/SVGPathSegList.cpp b/Source/core/svg/SVGPathSegList.cpp |
index 7f604ecc45f989abf2b8672b2808e6f251f4e8fb..defed36c115ead5648bad96f2cc6f355e33e16ba 100644 |
--- a/Source/core/svg/SVGPathSegList.cpp |
+++ b/Source/core/svg/SVGPathSegList.cpp |
@@ -162,7 +162,7 @@ void SVGPathSegList::setValueAsString(const String& string, ExceptionState& exce |
void SVGPathSegList::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement*) |
{ |
RefPtr<SVGPathSegList> otherList = toSVGPathSegList(other); |
- if (numberOfItems() != otherList->numberOfItems()) |
+ if (length() != otherList->length()) |
return; |
byteStream(); // create |m_byteStream| if not exist. |