SVGAltGlyphElement.h [plain text]
#pragma once
#include "SVGTextPositioningElement.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGGlyphElement;
class SVGAltGlyphElement final : public SVGTextPositioningElement, public SVGURIReference {
WTF_MAKE_ISO_ALLOCATED(SVGAltGlyphElement);
public:
static Ref<SVGAltGlyphElement> create(const QualifiedName&, Document&);
const AtomString& glyphRef() const;
ExceptionOr<void> setGlyphRef(const AtomString&);
const AtomString& format() const;
ExceptionOr<void> setFormat(const AtomString&);
bool hasValidGlyphElements(Vector<String>& glyphNames) const;
private:
SVGAltGlyphElement(const QualifiedName&, Document&);
using PropertyRegistry = SVGPropertyOwnerRegistry<SVGAltGlyphElement, SVGTextPositioningElement, SVGURIReference>;
const SVGPropertyRegistry& propertyRegistry() const final { return m_propertyRegistry; }
RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override;
bool childShouldCreateRenderer(const Node&) const override;
PropertyRegistry m_propertyRegistry { *this };
};
}