SVGAltGlyphElement.h [plain text]
#pragma once
#if ENABLE(SVG_FONTS)
#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 AtomicString& glyphRef() const;
ExceptionOr<void> setGlyphRef(const AtomicString&);
const AtomicString& format() const;
ExceptionOr<void> setFormat(const AtomicString&);
bool hasValidGlyphElements(Vector<String>& glyphNames) const;
private:
SVGAltGlyphElement(const QualifiedName&, Document&);
using AttributeOwnerProxy = SVGAttributeOwnerProxyImpl<SVGAltGlyphElement, SVGTextPositioningElement, SVGURIReference>;
const SVGAttributeOwnerProxy& attributeOwnerProxy() const final { return m_attributeOwnerProxy; }
RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override;
bool childShouldCreateRenderer(const Node&) const override;
AttributeOwnerProxy m_attributeOwnerProxy { *this };
};
}
#endif