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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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: 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;

Powered by Google App Engine
This is Rietveld 408576698