Index: Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
diff --git a/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp b/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
index 6f68e475f1e6fb935d1a30b986191849a830a464..d7fb9f4bc0e94c38fcb9e9e5d254837bff5e80f7 100644 |
--- a/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
+++ b/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
@@ -82,12 +82,12 @@ float SVGTextLayoutEngineSpacing::calculateSVGKerning(bool isVerticalText, const |
float SVGTextLayoutEngineSpacing::calculateCSSKerningAndSpacing(const SVGRenderStyle* style, SVGElement* contextElement, UChar currentCharacter) |
{ |
float kerning = 0; |
- SVGLength kerningLength = style->kerning(); |
- if (kerningLength.unitType() == LengthTypePercentage) |
- kerning = kerningLength.valueAsPercentage() * m_font.pixelSize(); |
+ RefPtr<SVGLength> kerningLength = style->kerning(); |
+ if (kerningLength->unitType() == LengthTypePercentage) |
+ kerning = kerningLength->valueAsPercentage() * m_font.pixelSize(); |
else { |
SVGLengthContext lengthContext(contextElement); |
- kerning = kerningLength.value(lengthContext); |
+ kerning = kerningLength->value(lengthContext); |
} |
UChar lastCharacter = m_lastCharacter; |