Index: Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
diff --git a/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp b/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
index 6b95d092af8e26ac7ff61dc07ba2691448fd5091..b2360f0f98f067c44f74e444a3fd7c3f1cbb146e 100644 |
--- a/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
+++ b/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
@@ -82,7 +82,7 @@ float SVGTextLayoutEngineSpacing::calculateSVGKerning(bool isVerticalText, const |
#endif |
} |
-float SVGTextLayoutEngineSpacing::calculateCSSKerningAndSpacing(const SVGRenderStyle* style, SVGElement* contextElement, const UChar* currentCharacter) |
+float SVGTextLayoutEngineSpacing::calculateCSSKerningAndSpacing(const SVGRenderStyle* style, SVGElement* contextElement, UChar currentCharacter) |
{ |
float kerning = 0; |
SVGLength kerningLength = style->kerning(); |
@@ -93,7 +93,7 @@ float SVGTextLayoutEngineSpacing::calculateCSSKerningAndSpacing(const SVGRenderS |
kerning = kerningLength.value(lengthContext); |
} |
- const UChar* lastCharacter = m_lastCharacter; |
+ UChar lastCharacter = m_lastCharacter; |
m_lastCharacter = currentCharacter; |
if (!kerning && !m_font.letterSpacing() && !m_font.wordSpacing()) |
@@ -101,7 +101,7 @@ float SVGTextLayoutEngineSpacing::calculateCSSKerningAndSpacing(const SVGRenderS |
float spacing = m_font.letterSpacing() + kerning; |
if (currentCharacter && lastCharacter && m_font.wordSpacing()) { |
- if (Font::treatAsSpace(*currentCharacter) && !Font::treatAsSpace(*lastCharacter)) |
+ if (Font::treatAsSpace(currentCharacter) && !Font::treatAsSpace(lastCharacter)) |
spacing += m_font.wordSpacing(); |
} |