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

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

Issue 1161803002: Add early-out in SVGTextChunkBuilder::finalizeTransformMatrices() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGTextChunkBuilder.cpp
diff --git a/Source/core/layout/svg/SVGTextChunkBuilder.cpp b/Source/core/layout/svg/SVGTextChunkBuilder.cpp
index b19b866954a80122e4794276f53fcfb92950cafc..626cf1a23c0ec250bf3f43872d2e00f7e5c68741 100644
--- a/Source/core/layout/svg/SVGTextChunkBuilder.cpp
+++ b/Source/core/layout/svg/SVGTextChunkBuilder.cpp
@@ -250,6 +250,9 @@ void SVGTextChunkBuilder::processTextAnchorCorrection(bool isVerticalText, float
void SVGTextChunkBuilder::finalizeTransformMatrices(const Vector<SVGInlineTextBox*>& boxes) const
{
+ if (m_textBoxTransformations.isEmpty())
+ return;
+
for (SVGInlineTextBox* textBox : boxes) {
AffineTransform textBoxTransformation = m_textBoxTransformations.get(textBox);
if (textBoxTransformation.isIdentity())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698