diff options
Diffstat (limited to 'Source/WebCore/svg/SVGGlyphRefElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGGlyphRefElement.h | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/Source/WebCore/svg/SVGGlyphRefElement.h b/Source/WebCore/svg/SVGGlyphRefElement.h index 542e95218..24fcc2475 100644 --- a/Source/WebCore/svg/SVGGlyphRefElement.h +++ b/Source/WebCore/svg/SVGGlyphRefElement.h @@ -17,53 +17,46 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGGlyphRefElement_h -#define SVGGlyphRefElement_h +#pragma once + +#if ENABLE(SVG_FONTS) -#if ENABLE(SVG) && ENABLE(SVG_FONTS) #include "SVGElement.h" #include "SVGURIReference.h" namespace WebCore { -class SVGGlyphRefElement final : public SVGElement, - public SVGURIReference { +class SVGGlyphRefElement final : public SVGElement, public SVGURIReference { public: - static PassRefPtr<SVGGlyphRefElement> create(const QualifiedName&, Document&); + static Ref<SVGGlyphRefElement> create(const QualifiedName&, Document&); bool hasValidGlyphElement(String& glyphName) const; - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - // DOM interface - const AtomicString& glyphRef() const; - void setGlyphRef(const AtomicString&, ExceptionCode&); float x() const { return m_x; } - void setX(float, ExceptionCode&); + void setX(float); float y() const { return m_y; } - void setY(float, ExceptionCode&); + void setY(float); float dx() const { return m_dx; } - void setDx(float, ExceptionCode&); + void setDx(float); float dy() const { return m_dy; } - void setDy(float, ExceptionCode&); + void setDy(float); private: SVGGlyphRefElement(const QualifiedName&, Document&); - virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } + void parseAttribute(const QualifiedName&, const AtomicString&) final; + bool rendererIsNeeded(const RenderStyle&) final { return false; } BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGlyphRefElement) - DECLARE_ANIMATED_STRING(Href, href) + DECLARE_ANIMATED_STRING_OVERRIDE(Href, href) END_DECLARE_ANIMATED_PROPERTIES - float m_x; - float m_y; - float m_dx; - float m_dy; + float m_x { 0 }; + float m_y { 0 }; + float m_dx { 0 }; + float m_dy { 0 }; }; -NODE_TYPE_CASTS(SVGGlyphRefElement) - } #endif -#endif |