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 {
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&);
RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override;
bool childShouldCreateRenderer(const Node&) const override;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAltGlyphElement)
DECLARE_ANIMATED_STRING_OVERRIDE(Href, href)
END_DECLARE_ANIMATED_PROPERTIES
};
}
#endif