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

Unified Diff: Source/core/rendering/svg/SVGTextLayoutEngineSpacing.h

Issue 323053002: Unapply effectiveZoom during SVG layout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add tests Created 6 years, 6 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
Index: Source/core/rendering/svg/SVGTextLayoutEngineSpacing.h
diff --git a/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.h b/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.h
index 7973d28971cf36b52a86ae1705c2bae6b099af59..a80639e0991d30da5d6ef022772ddfd7a89ee07b 100644
--- a/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.h
+++ b/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.h
@@ -32,7 +32,7 @@ class SVGElement;
class SVGTextLayoutEngineSpacing {
WTF_MAKE_NONCOPYABLE(SVGTextLayoutEngineSpacing);
public:
- SVGTextLayoutEngineSpacing(const Font&);
+ SVGTextLayoutEngineSpacing(const Font&, float effectiveZoom);
float calculateSVGKerning(bool isVerticalText, Glyph currentGlyph);
float calculateCSSSpacing(UChar currentCharacter);
@@ -40,6 +40,7 @@ public:
private:
const Font& m_font;
UChar m_lastCharacter;
+ float m_effectiveZoom;
#if ENABLE(SVG_FONTS)
Glyph m_lastGlyph;
« no previous file with comments | « Source/core/rendering/svg/SVGTextLayoutEngine.cpp ('k') | Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698