Index: Source/core/rendering/svg/SVGTextLayoutEngine.cpp |
diff --git a/Source/core/rendering/svg/SVGTextLayoutEngine.cpp b/Source/core/rendering/svg/SVGTextLayoutEngine.cpp |
index cbdaf1b45a51680d108fd64b9bd861cb250899dc..793d14bd8d502f554aba1e9e71b32619e91e0770 100644 |
--- a/Source/core/rendering/svg/SVGTextLayoutEngine.cpp |
+++ b/Source/core/rendering/svg/SVGTextLayoutEngine.cpp |
@@ -441,7 +441,6 @@ void SVGTextLayoutEngine::layoutTextOnLineOrPath(SVGInlineTextBox* textBox, Rend |
Vector<SVGTextMetrics>& visualMetricsValues = text->layoutAttributes()->textMetricsValues(); |
ASSERT(!visualMetricsValues.isEmpty()); |
- const UChar* characters = text->bloatedCharacters(); |
const Font& font = style->font(); |
SVGTextLayoutEngineSpacing spacingLayout(font); |
@@ -492,8 +491,8 @@ void SVGTextLayoutEngine::layoutTextOnLineOrPath(SVGInlineTextBox* textBox, Rend |
float angle = data.rotate == SVGTextLayoutAttributes::emptyValue() ? 0 : data.rotate; |
// Calculate glyph orientation angle. |
- const UChar* currentCharacter = characters + m_visualCharacterOffset; |
- float orientationAngle = baselineLayout.calculateGlyphOrientationAngle(m_isVerticalText, svgStyle, *currentCharacter); |
+ UChar currentCharacter = text->characterAt(m_visualCharacterOffset); |
+ float orientationAngle = baselineLayout.calculateGlyphOrientationAngle(m_isVerticalText, svgStyle, currentCharacter); |
// Calculate glyph advance & x/y orientation shifts. |
float xOrientationShift = 0; |