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

Unified Diff: Source/core/rendering/svg/SVGTextLayoutEngine.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
« no previous file with comments | « Source/core/rendering/svg/SVGTextChunkBuilder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGTextLayoutEngine.cpp
diff --git a/Source/core/rendering/svg/SVGTextLayoutEngine.cpp b/Source/core/rendering/svg/SVGTextLayoutEngine.cpp
index 9b9d6c7207ebd2ebc26795ab7ab895246849907d..236843120141752402d0fc0d2296f902940d1ada 100644
--- a/Source/core/rendering/svg/SVGTextLayoutEngine.cpp
+++ b/Source/core/rendering/svg/SVGTextLayoutEngine.cpp
@@ -292,10 +292,9 @@ void SVGTextLayoutEngine::finalizeTransformMatrices(Vector<SVGInlineTextBox*>& b
if (!boxCount)
return;
- AffineTransform textBoxTransformation;
for (unsigned boxPosition = 0; boxPosition < boxCount; ++boxPosition) {
SVGInlineTextBox* textBox = boxes.at(boxPosition);
- m_chunkLayoutBuilder.transformationForTextBox(textBox, textBoxTransformation);
+ AffineTransform textBoxTransformation = m_chunkLayoutBuilder.transformationForTextBox(textBox);
pdr. 2014/07/08 19:00:44 I think this will create an unnecessary copy. Shou
fs 2014/07/09 08:53:53 This should be fine - at least the compiler I used
if (textBoxTransformation.isIdentity())
continue;
« no previous file with comments | « Source/core/rendering/svg/SVGTextChunkBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698