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

Unified Diff: Source/core/layout/svg/SVGTextLayoutEngineBaseline.h

Issue 956553004: Use Length for baselineShiftValue in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: A few more TEs. Created 5 years, 10 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/layout/svg/SVGTextLayoutEngineBaseline.h
diff --git a/Source/core/layout/svg/SVGTextLayoutEngineBaseline.h b/Source/core/layout/svg/SVGTextLayoutEngineBaseline.h
index 6ce283171f3cd092ad251ed810e23551fd7b990b..8df8f7d707325e7c366903b6450a3a410f235ee2 100644
--- a/Source/core/layout/svg/SVGTextLayoutEngineBaseline.h
+++ b/Source/core/layout/svg/SVGTextLayoutEngineBaseline.h
@@ -27,7 +27,7 @@ namespace blink {
class Font;
class LayoutObject;
-class SVGElement;
+class LayoutStyle;
class SVGLayoutStyle;
class SVGTextMetrics;
@@ -37,7 +37,7 @@ class SVGTextLayoutEngineBaseline {
public:
SVGTextLayoutEngineBaseline(const Font&);
- float calculateBaselineShift(const SVGLayoutStyle&, SVGElement* lengthContext) const;
+ float calculateBaselineShift(const LayoutStyle&) const;
float calculateAlignmentBaselineShift(bool isVerticalText, const LayoutObject* textRenderer) const;
float calculateGlyphOrientationAngle(bool isVerticalText, const SVGLayoutStyle&, const UChar& character) const;
float calculateGlyphAdvanceAndOrientation(bool isVerticalText, const SVGTextMetrics&, float angle, float& xOrientationShift, float& yOrientationShift) const;

Powered by Google App Engine
This is Rietveld 408576698