| 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();
|
|
|