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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLengthContext.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/svg/SVGLengthContext.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp b/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
index 0b6d073c0ab81d11447914455e39d50c43181367..fcb6425c04e7d39ff616fb1b8bc5d7939445f6c3 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
@@ -349,7 +349,7 @@ float SVGLengthContext::convertValueFromUserUnitsToCHS(float value) const
if (!style)
return 0;
- float zeroWidth = style->fontMetrics().zeroWidth() / style->effectiveZoom();
+ float zeroWidth = style->getFontMetrics().zeroWidth() / style->effectiveZoom();
if (!zeroWidth)
return 0;
@@ -362,7 +362,7 @@ float SVGLengthContext::convertValueFromCHSToUserUnits(float value) const
if (!style)
return 0;
- return value * style->fontMetrics().zeroWidth() / style->effectiveZoom();
+ return value * style->getFontMetrics().zeroWidth() / style->effectiveZoom();
}
float SVGLengthContext::convertValueFromUserUnitsToEXS(float value) const
@@ -373,7 +373,7 @@ float SVGLengthContext::convertValueFromUserUnitsToEXS(float value) const
// Use of ceil allows a pixel match to the W3Cs expected output of coords-units-03-b.svg
// if this causes problems in real world cases maybe it would be best to remove this
- float xHeight = ceilf(style->fontMetrics().xHeight() / style->effectiveZoom());
+ float xHeight = ceilf(style->getFontMetrics().xHeight() / style->effectiveZoom());
if (!xHeight)
return 0;
@@ -388,7 +388,7 @@ float SVGLengthContext::convertValueFromEXSToUserUnits(float value) const
// Use of ceil allows a pixel match to the W3Cs expected output of coords-units-03-b.svg
// if this causes problems in real world cases maybe it would be best to remove this
- return value * ceilf(style->fontMetrics().xHeight() / style->effectiveZoom());
+ return value * ceilf(style->getFontMetrics().xHeight() / style->effectiveZoom());
}
bool SVGLengthContext::determineViewport(FloatSize& viewportSize) const
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGImageElement.cpp ('k') | third_party/WebKit/Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698