#define SVGGlyphElement_h
#if ENABLE(SVG_FONTS)
-#include "SVGNames.h"
-#include "core/platform/graphics/SVGGlyph.h"
+#include "core/SVGNames.h"
#include "core/svg/SVGElement.h"
+#include "platform/fonts/SVGGlyph.h"
-namespace WebCore {
+namespace blink {
class SVGFontData;
class SVGGlyphElement FINAL : public SVGElement {
+ DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtr<SVGGlyphElement> create(const QualifiedName&, Document&);
+ DECLARE_NODE_FACTORY(SVGGlyphElement);
SVGGlyph buildGlyphIdentifier() const;
// Helper function used by SVGFont
static void inheritUnspecifiedAttributes(SVGGlyph&, const SVGFontData*);
- static String querySVGFontLanguage(const SVGElement*);
// Helper function shared between SVGGlyphElement & SVGMissingGlyphElement
static SVGGlyph buildGenericGlyphIdentifier(const SVGElement*);
private:
- SVGGlyphElement(const QualifiedName&, Document&);
+ explicit SVGGlyphElement(Document&);
// FIXME: svgAttributeChanged missing.
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
virtual void removedFrom(ContainerNode*) OVERRIDE;
- virtual bool rendererIsNeeded(const RenderStyle&) { return false; }
+ virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
void invalidateGlyphCache();
};
-DEFINE_NODE_TYPE_CASTS(SVGGlyphElement, hasTagName(SVGNames::glyphTag));
-
-} // namespace WebCore
+} // namespace blink
#endif // ENABLE(SVG_FONTS)
-#endif
+#endif // SVGGlyphElement_h