diff options
Diffstat (limited to 'Source/WebCore/svg/SVGAElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGAElement.h | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/Source/WebCore/svg/SVGAElement.h b/Source/WebCore/svg/SVGAElement.h index 00f0a7f35..f6202f95b 100644 --- a/Source/WebCore/svg/SVGAElement.h +++ b/Source/WebCore/svg/SVGAElement.h @@ -19,10 +19,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGAElement_h -#define SVGAElement_h +#pragma once -#if ENABLE(SVG) #include "SVGAnimatedBoolean.h" #include "SVGExternalResourcesRequired.h" #include "SVGGraphicsElement.h" @@ -34,43 +32,41 @@ class SVGAElement final : public SVGGraphicsElement, public SVGURIReference, public SVGExternalResourcesRequired { public: - static PassRefPtr<SVGAElement> create(const QualifiedName&, Document&); + static Ref<SVGAElement> create(const QualifiedName&, Document&); private: SVGAElement(const QualifiedName&, Document&); - virtual bool isValid() const override { return SVGTests::isValid(); } + bool isValid() const final { return SVGTests::isValid(); } - virtual String title() const override; - virtual String target() const override { return svgTarget(); } + String title() const final; + String target() const final { return svgTarget(); } - bool isSupportedAttribute(const QualifiedName&); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - virtual void svgAttributeChanged(const QualifiedName&) override; + void parseAttribute(const QualifiedName&, const AtomicString&) final; + void svgAttributeChanged(const QualifiedName&) final; - virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; - virtual bool childShouldCreateRenderer(const Node&) const override; + RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; + bool childShouldCreateRenderer(const Node&) const final; - virtual void defaultEventHandler(Event*) override; + void defaultEventHandler(Event&) final; - virtual bool supportsFocus() const override; - virtual bool isMouseFocusable() const override; - virtual bool isKeyboardFocusable(KeyboardEvent*) const override; - virtual bool isFocusable() const override; - virtual bool isURLAttribute(const Attribute&) const override; + bool supportsFocus() const final; + bool isMouseFocusable() const final; + bool isKeyboardFocusable(KeyboardEvent&) const final; + bool isFocusable() const final; + bool isURLAttribute(const Attribute&) const final; + bool canStartSelection() const final; + int tabIndex() const final; - virtual bool willRespondToMouseClickEvents() override; + bool willRespondToMouseClickEvents() final; BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAElement) // This declaration used to define a non-virtual "String& target() const" method, that clashes with "virtual String Element::target() const". // That's why it has been renamed to "svgTarget", the CodeGenerators take care of calling svgTargetAnimated() instead of targetAnimated(), see CodeGenerator.pm. DECLARE_ANIMATED_STRING(SVGTarget, svgTarget) - DECLARE_ANIMATED_STRING(Href, href) - DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired) + DECLARE_ANIMATED_STRING_OVERRIDE(Href, href) + DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired) END_DECLARE_ANIMATED_PROPERTIES }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif // SVGAElement_h |