summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGForeignObjectElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGForeignObjectElement.h')
-rw-r--r--Source/WebCore/svg/SVGForeignObjectElement.h29
1 files changed, 11 insertions, 18 deletions
diff --git a/Source/WebCore/svg/SVGForeignObjectElement.h b/Source/WebCore/svg/SVGForeignObjectElement.h
index eb7284438..e48128838 100644
--- a/Source/WebCore/svg/SVGForeignObjectElement.h
+++ b/Source/WebCore/svg/SVGForeignObjectElement.h
@@ -17,10 +17,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGForeignObjectElement_h
-#define SVGForeignObjectElement_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedLength.h"
#include "SVGExternalResourcesRequired.h"
@@ -33,21 +31,21 @@ namespace WebCore {
class SVGForeignObjectElement final : public SVGGraphicsElement,
public SVGExternalResourcesRequired {
public:
- static PassRefPtr<SVGForeignObjectElement> create(const QualifiedName&, Document&);
+ static Ref<SVGForeignObjectElement> create(const QualifiedName&, Document&);
private:
SVGForeignObjectElement(const QualifiedName&, Document&);
- virtual bool isValid() const override { return SVGTests::isValid(); }
- bool isSupportedAttribute(const QualifiedName&);
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
- virtual void svgAttributeChanged(const QualifiedName&) override;
+ bool isValid() const final { return SVGTests::isValid(); }
+ static bool isSupportedAttribute(const QualifiedName&);
+ void parseAttribute(const QualifiedName&, const AtomicString&) final;
+ void svgAttributeChanged(const QualifiedName&) final;
- virtual bool rendererIsNeeded(const RenderStyle&) override;
- virtual bool childShouldCreateRenderer(const Node&) const override;
- virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
+ bool rendererIsNeeded(const RenderStyle&) final;
+ bool childShouldCreateRenderer(const Node&) const final;
+ RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final;
- virtual bool selfHasRelativeLengths() const override;
+ bool selfHasRelativeLengths() const final { return true; }
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGForeignObjectElement)
DECLARE_ANIMATED_LENGTH(X, x)
@@ -55,13 +53,8 @@ private:
DECLARE_ANIMATED_LENGTH(Width, width)
DECLARE_ANIMATED_LENGTH(Height, height)
DECLARE_ANIMATED_STRING(Href, href)
- DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
+ DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
-NODE_TYPE_CASTS(SVGForeignObjectElement)
-
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif