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

Unified Diff: Source/core/rendering/svg/SVGTextMetrics.h

Issue 665253003: Remove SVGTextMetrics::m_glyph (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop WTFString.h include. Created 6 years, 2 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: Source/core/rendering/svg/SVGTextMetrics.h
diff --git a/Source/core/rendering/svg/SVGTextMetrics.h b/Source/core/rendering/svg/SVGTextMetrics.h
index b8956140e7628a15ae73ceb49882c6a4c927bb8c..774b9714cfcbca26ad8bcc40095ad61959aa407b 100644
--- a/Source/core/rendering/svg/SVGTextMetrics.h
+++ b/Source/core/rendering/svg/SVGTextMetrics.h
@@ -20,9 +20,7 @@
#ifndef SVGTextMetrics_h
#define SVGTextMetrics_h
-#include "platform/fonts/Glyph.h"
#include "platform/text/TextDirection.h"
-#include "wtf/text/WTFString.h"
namespace blink {
@@ -37,7 +35,7 @@ public:
SVGTextMetrics();
SVGTextMetrics(MetricsType);
- SVGTextMetrics(RenderSVGInlineText*, unsigned position, unsigned length, float width, Glyph glyphNameGlyphId);
+ SVGTextMetrics(RenderSVGInlineText*, unsigned position, unsigned length, float width);
// FIXME: Migrate away from these to the two below.
static SVGTextMetrics measureCharacterRange(RenderSVGInlineText*, unsigned position, unsigned length);
@@ -54,16 +52,12 @@ public:
float height() const { return m_height; }
unsigned length() const { return m_length; }
- // Only useful when measuring individual characters, to lookup ligatures.
- Glyph glyph() const { return m_glyph; }
-
private:
SVGTextMetrics(RenderSVGInlineText*, const TextRun&);
float m_width;
float m_height;
unsigned m_length;
- Glyph m_glyph;
};
} // namespace blink
« no previous file with comments | « Source/core/rendering/svg/SVGTextLayoutEngineSpacing.h ('k') | Source/core/rendering/svg/SVGTextMetrics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698