#ifndef SVGGlyphRefElement_h
#define SVGGlyphRefElement_h
#if ENABLE(SVG_FONTS)
#include "SVGNames.h"
#include "core/svg/SVGElement.h"
#include "core/svg/SVGURIReference.h"
namespace WebCore {
class SVGGlyphRefElement FINAL : public SVGElement,
public SVGURIReference {
public:
static PassRefPtr<SVGGlyphRefElement> create(Document&);
bool hasValidGlyphElement(AtomicString& glyphName) const;
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
const AtomicString& glyphRef() const;
void setGlyphRef(const AtomicString&);
float x() const { return m_x; }
void setX(float);
float y() const { return m_y; }
void setY(float);
float dx() const { return m_dx; }
void setDx(float);
float dy() const { return m_dy; }
void setDy(float);
private:
explicit SVGGlyphRefElement(Document&);
template<typename CharType>
void parseAttributeInternal(const QualifiedName&, const AtomicString&);
virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
float m_x;
float m_y;
float m_dx;
float m_dy;
};
}
#endif
#endif