Index: Source/core/rendering/svg/SVGTextLayoutEngine.cpp |
diff --git a/Source/core/rendering/svg/SVGTextLayoutEngine.cpp b/Source/core/rendering/svg/SVGTextLayoutEngine.cpp |
index 78da01d1d3a511382770119fa1e6e5e66cc9d1a8..0d179d5efd2ba5784acb5e411bc244eb410a8eef 100644 |
--- a/Source/core/rendering/svg/SVGTextLayoutEngine.cpp |
+++ b/Source/core/rendering/svg/SVGTextLayoutEngine.cpp |
@@ -555,14 +555,11 @@ void SVGTextLayoutEngine::layoutTextOnLineOrPath(SVGInlineTextBox* textBox, Rend |
if (textPathOffset > m_textPathLength) |
break; |
- bool ok = false; |
- FloatPoint point = m_textPath.pointAtLength(textPathOffset, ok); |
- ASSERT(ok); |
- |
+ FloatPoint point; |
+ bool ok = m_textPath.pointAndNormalAtLength(textPathOffset, point, angle); |
+ ASSERT_UNUSED(ok, ok); |
x = point.x(); |
y = point.y(); |
- angle = m_textPath.normalAngleAtLength(textPathOffset, ok); |
- ASSERT(ok); |
// For vertical text on path, the actual angle has to be rotated 90 degrees anti-clockwise, not the orientation angle! |
if (m_isVerticalText) |