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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGTextQuery.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/SVGTextQuery.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextQuery.cpp b/third_party/WebKit/Source/core/layout/svg/SVGTextQuery.cpp
index a65a7db00aab933e29597e93a323b6886789b414..8b2556c2f3287d9022b3b746b46d523faeb8c16f 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextQuery.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextQuery.cpp
@@ -465,7 +465,7 @@ static inline void calculateGlyphBoundaries(const QueryData* queryData, const SV
ASSERT(scalingFactor);
FloatPoint glyphPosition = calculateGlyphPositionWithoutTransform(queryData, fragment, startPosition);
- glyphPosition.move(0, -queryData->textLineLayout.scaledFont().fontMetrics().floatAscent() / scalingFactor);
+ glyphPosition.move(0, -queryData->textLineLayout.scaledFont().getFontMetrics().floatAscent() / scalingFactor);
extent.setLocation(glyphPosition);
// Use the SVGTextMetrics computed by SVGTextMetricsBuilder (which spends
@@ -497,7 +497,7 @@ static inline FloatRect calculateFragmentBoundaries(LineLayoutSVGInlineText text
{
float scalingFactor = textLineLayout.scalingFactor();
ASSERT(scalingFactor);
- float baseline = textLineLayout.scaledFont().fontMetrics().floatAscent() / scalingFactor;
+ float baseline = textLineLayout.scaledFont().getFontMetrics().floatAscent() / scalingFactor;
return fragment.boundingBox(baseline);
}

Powered by Google App Engine
This is Rietveld 408576698