Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Unified Diff: Source/core/rendering/svg/SVGTextChunkBuilder.cpp

Issue 370803002: Return transform from transformationForTextBox instead of using out-param (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698