diff options
Diffstat (limited to 'Source/WebCore/svg/SVGAltGlyphElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGAltGlyphElement.h | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/Source/WebCore/svg/SVGAltGlyphElement.h b/Source/WebCore/svg/SVGAltGlyphElement.h index b99afda5c..93f490885 100644 --- a/Source/WebCore/svg/SVGAltGlyphElement.h +++ b/Source/WebCore/svg/SVGAltGlyphElement.h @@ -19,44 +19,39 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGAltGlyphElement_h -#define SVGAltGlyphElement_h +#pragma once #if ENABLE(SVG_FONTS) + #include "SVGTextPositioningElement.h" #include "SVGURIReference.h" -#include <wtf/Vector.h> namespace WebCore { class SVGGlyphElement; -class SVGAltGlyphElement final : public SVGTextPositioningElement, - public SVGURIReference { +class SVGAltGlyphElement final : public SVGTextPositioningElement, public SVGURIReference { public: - static PassRefPtr<SVGAltGlyphElement> create(const QualifiedName&, Document&); + static Ref<SVGAltGlyphElement> create(const QualifiedName&, Document&); const AtomicString& glyphRef() const; - void setGlyphRef(const AtomicString&, ExceptionCode&); + ExceptionOr<void> setGlyphRef(const AtomicString&); const AtomicString& format() const; - void setFormat(const AtomicString&, ExceptionCode&); + ExceptionOr<void> setFormat(const AtomicString&); bool hasValidGlyphElements(Vector<String>& glyphNames) const; private: SVGAltGlyphElement(const QualifiedName&, Document&); - virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; - virtual bool childShouldCreateRenderer(const Node&) const override; + RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override; + bool childShouldCreateRenderer(const Node&) const override; BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAltGlyphElement) - DECLARE_ANIMATED_STRING(Href, href) + DECLARE_ANIMATED_STRING_OVERRIDE(Href, href) END_DECLARE_ANIMATED_PROPERTIES }; -NODE_TYPE_CASTS(SVGAltGlyphElement) - } // namespace WebCore -#endif // ENABLE(SVG) #endif |