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

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

Issue 1157253002: Remove SVGTextLayoutEngine::m_pathLayoutBoxes (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 | « Source/core/layout/svg/SVGTextLayoutEngine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGTextLayoutEngine.cpp
diff --git a/Source/core/layout/svg/SVGTextLayoutEngine.cpp b/Source/core/layout/svg/SVGTextLayoutEngine.cpp
index 7dfb40dab2b50a2d5488e0f898ff820b3e736d9d..ab9604cb47cf6977611ea77846ecaa600b89c58e 100644
--- a/Source/core/layout/svg/SVGTextLayoutEngine.cpp
+++ b/Source/core/layout/svg/SVGTextLayoutEngine.cpp
@@ -250,10 +250,8 @@ void SVGTextLayoutEngine::layoutInlineTextBox(SVGInlineTextBox* textBox)
m_isVerticalText = style.svgStyle().isVerticalWritingMode();
layoutTextOnLineOrPath(textBox, text, style);
- if (m_inPathLayout) {
- m_pathLayoutBoxes.append(textBox);
+ if (m_inPathLayout)
return;
- }
m_lineLayoutBoxes.append(textBox);
}
@@ -270,11 +268,6 @@ void SVGTextLayoutEngine::finishLayout()
chunkLayoutBuilder.finalizeTransformMatrices(m_lineLayoutBoxes);
m_lineLayoutBoxes.clear();
}
-
- if (!m_pathLayoutBoxes.isEmpty()) {
- chunkLayoutBuilder.finalizeTransformMatrices(m_pathLayoutBoxes);
- m_pathLayoutBoxes.clear();
- }
}
bool SVGTextLayoutEngine::currentLogicalCharacterAttributes(SVGTextLayoutAttributes*& logicalAttributes)
« no previous file with comments | « Source/core/layout/svg/SVGTextLayoutEngine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698