diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2010-11-10 15:31:59 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2010-11-17 13:35:59 -0800 |
commit | 28040489d744e0c5d475a88663056c9040ed5320 (patch) | |
tree | c463676791e4a63e452a95f0a12b2a8519730693 /WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp | |
parent | eff9be92c41913c92fb1d3b7983c071f3e718678 (diff) | |
download | external_webkit-28040489d744e0c5d475a88663056c9040ed5320.zip external_webkit-28040489d744e0c5d475a88663056c9040ed5320.tar.gz external_webkit-28040489d744e0c5d475a88663056c9040ed5320.tar.bz2 |
Merge WebKit at r71558: Initial merge by git.
Change-Id: Ib345578fa29df7e4bc72b4f00e4a6fddcb754c4c
Diffstat (limited to 'WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp')
-rw-r--r-- | WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp b/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp index 2474a5c..3122912 100644 --- a/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp +++ b/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp @@ -72,21 +72,15 @@ static inline void extractFloatValuesFromSVGLengthList(SVGElement* lengthContext } } -static inline void extractFloatValuesFromSVGNumberList(SVGNumberList* list, Vector<float>& floatValues, unsigned textContentLength) +static inline void extractFloatValuesFromSVGNumberList(const SVGNumberList& list, Vector<float>& floatValues, unsigned textContentLength) { - ASSERT(list); - - unsigned length = list->numberOfItems(); + unsigned length = list.size(); if (length > textContentLength) length = textContentLength; floatValues.reserveCapacity(length); - ExceptionCode ec = 0; - for (unsigned i = 0; i < length; ++i) { - float length = list->getItem(i, ec); - ASSERT(!ec); - floatValues.append(length); - } + for (unsigned i = 0; i < length; ++i) + floatValues.append(list.at(i)); } void SVGTextLayoutAttributesBuilder::buildLayoutScope(LayoutScope& scope, RenderObject* renderer, unsigned textContentStart, unsigned textContentLength) const |