Index: Source/core/rendering/svg/SVGTextMetrics.cpp |
diff --git a/Source/core/rendering/svg/SVGTextMetrics.cpp b/Source/core/rendering/svg/SVGTextMetrics.cpp |
index 26dbc4c75075827367b4c475970eae2c5c7d077a..21638f34d878b0b09de9028e91ed6aafda992e95 100644 |
--- a/Source/core/rendering/svg/SVGTextMetrics.cpp |
+++ b/Source/core/rendering/svg/SVGTextMetrics.cpp |
@@ -22,7 +22,6 @@ |
#include "core/rendering/svg/SVGTextMetrics.h" |
#include "core/rendering/svg/RenderSVGInlineText.h" |
-#include "core/rendering/svg/SVGTextRunRenderingContext.h" |
namespace blink { |
@@ -86,9 +85,6 @@ TextRun SVGTextMetrics::constructTextRun(RenderSVGInlineText* text, unsigned pos |
run.setText(text->characters16() + position, length); |
} |
- if (textRunNeedsRenderingContext(style->font())) |
- run.setRenderingContext(SVGTextRunRenderingContext::create(text)); |
- |
// We handle letter & word spacing ourselves. |
run.disableSpacing(); |
@@ -114,13 +110,12 @@ SVGTextMetrics::SVGTextMetrics(RenderSVGInlineText* text, unsigned position, uns |
{ |
ASSERT(text); |
- bool needsContext = textRunNeedsRenderingContext(text->style()->font()); |
float scalingFactor = text->scalingFactor(); |
ASSERT(scalingFactor); |
m_width = width / scalingFactor; |
m_height = text->scaledFont().fontMetrics().floatHeight() / scalingFactor; |
- m_glyph = needsContext ? glyphNameGlyphId : 0; |
+ m_glyph = 0; |
m_length = length; |
} |