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

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

Issue 1821833003: Remove unused SVGTextMetrics constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.cpp b/third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.cpp
index cff72c3447eaa48f0684af0d502558beb9f90f97..b0cf3a1ad1fa86cf9dae88dd340c715ca389c290 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.cpp
@@ -39,23 +39,6 @@ SVGTextMetrics::SVGTextMetrics(SVGTextMetrics::MetricsType)
{
}
-SVGTextMetrics::SVGTextMetrics(LineLayoutSVGInlineText textLayoutItem, const TextRun& run)
-{
- ASSERT(textLayoutItem);
-
- float scalingFactor = textLayoutItem.scalingFactor();
- ASSERT(scalingFactor);
-
- const Font& scaledFont = textLayoutItem.scaledFont();
-
- // Calculate width/height using the scaled font, divide this result by the scalingFactor afterwards.
- m_width = scaledFont.width(run) / scalingFactor;
- m_height = scaledFont.getFontMetrics().floatHeight() / scalingFactor;
-
- ASSERT(run.length() >= 0);
- m_length = static_cast<unsigned>(run.length());
-}
-
TextRun SVGTextMetrics::constructTextRun(LineLayoutSVGInlineText textLayoutItem, unsigned position, unsigned length, TextDirection textDirection)
{
const ComputedStyle& style = textLayoutItem.styleRef();
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698