Index: Source/core/rendering/svg/SVGTextChunkBuilder.cpp |
diff --git a/Source/core/rendering/svg/SVGTextChunkBuilder.cpp b/Source/core/rendering/svg/SVGTextChunkBuilder.cpp |
index 34176c62b1d17736ee7e21aa47d0c132067c2706..4cfa2c540aaae959eee6a33b2f1a156fb0d621aa 100644 |
--- a/Source/core/rendering/svg/SVGTextChunkBuilder.cpp |
+++ b/Source/core/rendering/svg/SVGTextChunkBuilder.cpp |
@@ -31,15 +31,9 @@ SVGTextChunkBuilder::SVGTextChunkBuilder() |
{ |
} |
-void SVGTextChunkBuilder::transformationForTextBox(SVGInlineTextBox* textBox, AffineTransform& transform) const |
+AffineTransform SVGTextChunkBuilder::transformationForTextBox(SVGInlineTextBox* textBox) const |
{ |
- DEFINE_STATIC_LOCAL(const AffineTransform, s_identityTransform, ()); |
- if (!m_textBoxTransformations.contains(textBox)) { |
- transform = s_identityTransform; |
- return; |
- } |
- |
- transform = m_textBoxTransformations.get(textBox); |
+ return m_textBoxTransformations.get(textBox); |
} |
void SVGTextChunkBuilder::buildTextChunks(Vector<SVGInlineTextBox*>& lineLayoutBoxes) |