SVGGlyphRefElement.h [plain text]
#pragma once
#include "SVGElement.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGGlyphRefElement final : public SVGElement, public SVGURIReference {
WTF_MAKE_ISO_ALLOCATED(SVGGlyphRefElement);
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&);
using PropertyRegistry = SVGPropertyOwnerRegistry<SVGGlyphRefElement, SVGElement, SVGURIReference>;
const SVGPropertyRegistry& propertyRegistry() const final { return m_propertyRegistry; }
void parseAttribute(const QualifiedName&, const AtomString&) final;
bool rendererIsNeeded(const RenderStyle&) final { return false; }
float m_x { 0 };
float m_y { 0 };
float m_dx { 0 };
float m_dy { 0 };
PropertyRegistry m_propertyRegistry { *this };
};
}