Index: Source/core/css/resolver/StyleBuilderConverter.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderConverter.cpp b/Source/core/css/resolver/StyleBuilderConverter.cpp |
index d3cf95a1cc76cf57db3e96e72793973316684a06..eae848e2901b5fbec8422daf44a42fa1df53e817 100644 |
--- a/Source/core/css/resolver/StyleBuilderConverter.cpp |
+++ b/Source/core/css/resolver/StyleBuilderConverter.cpp |
@@ -804,14 +804,14 @@ float StyleBuilderConverter::convertSpacing(StyleResolverState& state, CSSValue* |
return primitiveValue->computeLength<float>(state.cssToLengthConversionData()); |
} |
-PassRefPtrWillBeRawPtr<SVGLengthList> StyleBuilderConverter::convertStrokeDasharray(StyleResolverState&, CSSValue* value) |
+PassRefPtr<SVGDashArray> StyleBuilderConverter::convertStrokeDasharray(StyleResolverState& state, CSSValue* value) |
{ |
if (!value->isValueList()) |
return SVGLayoutStyle::initialStrokeDashArray(); |
CSSValueList* dashes = toCSSValueList(value); |
- RefPtrWillBeRawPtr<SVGLengthList> array = SVGLengthList::create(); |
+ RefPtr<SVGDashArray> array = SVGDashArray::create(); |
size_t length = dashes->length(); |
for (size_t i = 0; i < length; ++i) { |
CSSValue* currValue = dashes->item(i); |
@@ -819,7 +819,7 @@ PassRefPtrWillBeRawPtr<SVGLengthList> StyleBuilderConverter::convertStrokeDashar |
continue; |
CSSPrimitiveValue* dash = toCSSPrimitiveValue(dashes->item(i)); |
- array->append(SVGLength::fromCSSPrimitiveValue(dash)); |
+ array->append(convertLength(state, dash)); |
} |
return array.release(); |