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

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

Issue 1156053002: Move SVGTextChunkBuilder out of SVGTextLayoutEngine (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/SVGTextChunkBuilder.h ('k') | Source/core/layout/svg/SVGTextLayoutEngine.h » ('j') | 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 21b19a5550dc57602273e29cde4ea3aae713b81b..b19b866954a80122e4794276f53fcfb92950cafc 100644
--- a/Source/core/layout/svg/SVGTextChunkBuilder.cpp
+++ b/Source/core/layout/svg/SVGTextChunkBuilder.cpp
@@ -31,11 +31,6 @@ SVGTextChunkBuilder::SVGTextChunkBuilder()
{
}
-AffineTransform SVGTextChunkBuilder::transformationForTextBox(SVGInlineTextBox* textBox) const
-{
- return m_textBoxTransformations.get(textBox);
-}
-
void SVGTextChunkBuilder::buildTextChunks(Vector<SVGInlineTextBox*>& lineLayoutBoxes)
{
if (lineLayoutBoxes.isEmpty())
@@ -253,4 +248,18 @@ void SVGTextChunkBuilder::processTextAnchorCorrection(bool isVerticalText, float
}
}
+void SVGTextChunkBuilder::finalizeTransformMatrices(const Vector<SVGInlineTextBox*>& boxes) const
+{
+ for (SVGInlineTextBox* textBox : boxes) {
+ AffineTransform textBoxTransformation = m_textBoxTransformations.get(textBox);
+ if (textBoxTransformation.isIdentity())
+ continue;
+
+ for (SVGTextFragment& fragment : textBox->textFragments()) {
+ ASSERT(fragment.lengthAdjustTransform.isIdentity());
+ fragment.lengthAdjustTransform = textBoxTransformation;
+ }
+ }
+}
+
}
« no previous file with comments | « Source/core/layout/svg/SVGTextChunkBuilder.h ('k') | Source/core/layout/svg/SVGTextLayoutEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698