Index: Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp |
diff --git a/Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp b/Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp |
index c325613d57502a13df88663e205e3179ccf4967c..35811eb4a58be84a8390dea0e9394f6f9c00e877 100644 |
--- a/Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp |
+++ b/Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp |
@@ -185,11 +185,11 @@ void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po |
RefPtr<SVGLengthList> dyList = position.element->dy()->currentValue(); |
RefPtr<SVGNumberList> rotateList = position.element->rotate()->currentValue(); |
- unsigned xListSize = xList->numberOfItems(); |
- unsigned yListSize = yList->numberOfItems(); |
- unsigned dxListSize = dxList->numberOfItems(); |
- unsigned dyListSize = dyList->numberOfItems(); |
- unsigned rotateListSize = rotateList->numberOfItems(); |
+ unsigned xListSize = xList->length(); |
+ unsigned yListSize = yList->length(); |
+ unsigned dxListSize = dxList->length(); |
+ unsigned dyListSize = dyList->length(); |
+ unsigned rotateListSize = rotateList->length(); |
if (!xListSize && !yListSize && !dxListSize && !dyListSize && !rotateListSize) |
return; |
@@ -219,7 +219,7 @@ void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po |
if (lastRotation == SVGTextLayoutAttributes::emptyValue()) |
return; |
- for (unsigned i = rotateList->numberOfItems(); i < position.length; ++i) { |
+ for (unsigned i = rotateList->length(); i < position.length; ++i) { |
SVGCharacterDataMap::iterator it = m_characterDataMap.find(position.start + i + 1); |
if (it == m_characterDataMap.end()) { |
SVGCharacterData data; |