| Index: Source/core/rendering/svg/SVGTextMetrics.h
|
| diff --git a/Source/core/rendering/svg/SVGTextMetrics.h b/Source/core/rendering/svg/SVGTextMetrics.h
|
| index 8c3bb26bb51c9010609126a7198dba0c4d09f5b9..b45d4c75c675824601b5b258821f4b3844c69960 100644
|
| --- a/Source/core/rendering/svg/SVGTextMetrics.h
|
| +++ b/Source/core/rendering/svg/SVGTextMetrics.h
|
| @@ -21,6 +21,7 @@
|
| #define SVGTextMetrics_h
|
|
|
| #include "platform/fonts/Glyph.h"
|
| +#include "platform/text/TextDirection.h"
|
| #include "wtf/text/WTFString.h"
|
|
|
| namespace WebCore {
|
| @@ -39,9 +40,13 @@ public:
|
| SVGTextMetrics(MetricsType);
|
| SVGTextMetrics(RenderSVGInlineText*, unsigned position, unsigned length, float width, Glyph glyphNameGlyphId);
|
|
|
| + // FIXME: Migrate away from these to the two below.
|
| static SVGTextMetrics measureCharacterRange(RenderSVGInlineText*, unsigned position, unsigned length);
|
| static TextRun constructTextRun(RenderSVGInlineText*, unsigned position, unsigned length);
|
|
|
| + static SVGTextMetrics measureCharacterRange(RenderSVGInlineText*, unsigned position, unsigned length, TextDirection);
|
| + static TextRun constructTextRun(RenderSVGInlineText*, unsigned position, unsigned length, TextDirection);
|
| +
|
| bool isEmpty() const { return !m_width && !m_height && m_length <= 1; }
|
|
|
| float width() const { return m_width; }
|
|
|