Index: third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp |
index 0728c4f7e92c1fea49b22ac72cf6f3f1427da78b..709ea20d817d100509c6e2248d1ff49504de6fce 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp |
@@ -41,11 +41,11 @@ float SVGTextLayoutEngineBaseline::calculateBaselineShift(const ComputedStyle& s |
switch (svgStyle.baselineShift()) { |
case BS_LENGTH: |
- return SVGLengthContext::valueForLength(svgStyle.baselineShiftValue(), style, m_font.fontDescription().computedPixelSize() / m_effectiveZoom); |
+ return SVGLengthContext::valueForLength(svgStyle.baselineShiftValue(), style, m_font.getFontDescription().computedPixelSize() / m_effectiveZoom); |
case BS_SUB: |
- return -m_font.fontMetrics().floatHeight() / 2 / m_effectiveZoom; |
+ return -m_font.getFontMetrics().floatHeight() / 2 / m_effectiveZoom; |
case BS_SUPER: |
- return m_font.fontMetrics().floatHeight() / 2 / m_effectiveZoom; |
+ return m_font.getFontMetrics().floatHeight() / 2 / m_effectiveZoom; |
default: |
ASSERT_NOT_REACHED(); |
return 0; |
@@ -116,7 +116,7 @@ float SVGTextLayoutEngineBaseline::calculateAlignmentBaselineShift(bool isVertic |
ASSERT(baseline != AB_AUTO && baseline != AB_BASELINE); |
} |
- const FontMetrics& fontMetrics = m_font.fontMetrics(); |
+ const FontMetrics& fontMetrics = m_font.getFontMetrics(); |
float ascent = fontMetrics.floatAscent() / m_effectiveZoom; |
float descent = fontMetrics.floatDescent() / m_effectiveZoom; |
float xheight = fontMetrics.xHeight() / m_effectiveZoom; |