SVGGlyphRefElement.h [plain text]
#pragma once
#if ENABLE(SVG_FONTS)
#include "SVGElement.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGGlyphRefElement final : public SVGElement, public SVGURIReference {
public:
static Ref<SVGGlyphRefElement> create(const QualifiedName&, Document&);
bool hasValidGlyphElement(String& glyphName) const;
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:
SVGGlyphRefElement(const QualifiedName&, Document&);
void parseAttribute(const QualifiedName&, const AtomicString&) final;
bool rendererIsNeeded(const RenderStyle&) final { return false; }
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGlyphRefElement)
DECLARE_ANIMATED_STRING_OVERRIDE(Href, href)
END_DECLARE_ANIMATED_PROPERTIES
float m_x { 0 };
float m_y { 0 };
float m_dx { 0 };
float m_dy { 0 };
};
}
#endif