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

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

Issue 1548913002: Store a <scale, bias> tuple for textLength scale adjustment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop []. Created 4 years, 11 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 | « third_party/WebKit/Source/core/layout/svg/SVGTextFragment.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp
index 49254562c2c67009f021befedf854379a8179d49..0176f2033f1d18f8fe3f7a3a145be76244992c3c 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp
@@ -523,13 +523,10 @@ void SVGTextLayoutEngine::layoutTextOnLineOrPath(SVGInlineTextBox* textBox, Line
if (m_isVerticalText)
m_currentTextFragment.transform.rotate(90);
+ m_currentTextFragment.isVertical = m_isVerticalText;
m_currentTextFragment.isTextOnPath = m_inPathLayout && m_textPathScaling != 1;
- if (m_currentTextFragment.isTextOnPath) {
- if (m_isVerticalText)
- m_currentTextFragment.lengthAdjustTransform.scaleNonUniform(1, m_textPathScaling);
- else
- m_currentTextFragment.lengthAdjustTransform.scaleNonUniform(m_textPathScaling, 1);
- }
+ if (m_currentTextFragment.isTextOnPath)
+ m_currentTextFragment.lengthAdjustScale = m_textPathScaling;
}
// Update current text position, after processing of the current character finished.
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/SVGTextFragment.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698