Index: Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp |
index 94571af76199a0b685025c2c31e40f1ae42108b0..f4a1fb80831a8a8e4ac9522da69e86207fc94d05 100755 |
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -2112,7 +2112,7 @@ void StyleBuilder::oldApplyProperty(CSSPropertyID id, StyleResolverState& state, |
CSSValueList* dashes = toCSSValueList(value); |
- Vector<SVGLength> array; |
+ RefPtr<SVGLengthList> array = SVGLengthList::create(); |
size_t length = dashes->length(); |
for (size_t i = 0; i < length; ++i) { |
CSSValue* currValue = dashes->itemWithoutBoundsCheck(i); |
@@ -2120,10 +2120,10 @@ void StyleBuilder::oldApplyProperty(CSSPropertyID id, StyleResolverState& state, |
continue; |
CSSPrimitiveValue* dash = toCSSPrimitiveValue(dashes->itemWithoutBoundsCheck(i)); |
- array.append(SVGLength::fromCSSPrimitiveValue(dash)); |
+ array->append(SVGLength::fromCSSPrimitiveValue(dash)); |
} |
- state.style()->accessSVGStyle()->setStrokeDashArray(array); |
+ state.style()->accessSVGStyle()->setStrokeDashArray(array.release()); |
break; |
} |
case CSSPropertyStopColor: |