diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/svg/SVGMaskElement.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/svg/SVGMaskElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGMaskElement.h | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/Source/WebCore/svg/SVGMaskElement.h b/Source/WebCore/svg/SVGMaskElement.h index fc051841d..34f45b527 100644 --- a/Source/WebCore/svg/SVGMaskElement.h +++ b/Source/WebCore/svg/SVGMaskElement.h @@ -17,10 +17,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGMaskElement_h -#define SVGMaskElement_h +#pragma once -#if ENABLE(SVG) #include "SVGAnimatedBoolean.h" #include "SVGAnimatedEnumeration.h" #include "SVGAnimatedLength.h" @@ -32,26 +30,29 @@ namespace WebCore { -class SVGMaskElement final : public SVGElement, - public SVGTests, - public SVGExternalResourcesRequired { +class SVGMaskElement final : public SVGElement, public SVGTests, public SVGExternalResourcesRequired { public: - static PassRefPtr<SVGMaskElement> create(const QualifiedName&, Document&); + static Ref<SVGMaskElement> create(const QualifiedName&, Document&); + + // SVGTests + Ref<SVGStringList> requiredFeatures(); + Ref<SVGStringList> requiredExtensions(); + Ref<SVGStringList> systemLanguage(); private: SVGMaskElement(const QualifiedName&, Document&); - virtual bool isValid() const override { return SVGTests::isValid(); } - virtual bool needsPendingResourceHandling() const override { return false; } + bool isValid() const final { return SVGTests::isValid(); } + bool needsPendingResourceHandling() const final { return false; } - bool isSupportedAttribute(const QualifiedName&); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - virtual void svgAttributeChanged(const QualifiedName&) override; - virtual void childrenChanged(const ChildChange&) override; + static bool isSupportedAttribute(const QualifiedName&); + void parseAttribute(const QualifiedName&, const AtomicString&) final; + void svgAttributeChanged(const QualifiedName&) final; + void childrenChanged(const ChildChange&) final; - virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; + RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; - virtual bool selfHasRelativeLengths() const override; + bool selfHasRelativeLengths() const final { return true; } BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMaskElement) DECLARE_ANIMATED_ENUMERATION(MaskUnits, maskUnits, SVGUnitTypes::SVGUnitType) @@ -60,18 +61,13 @@ private: DECLARE_ANIMATED_LENGTH(Y, y) DECLARE_ANIMATED_LENGTH(Width, width) DECLARE_ANIMATED_LENGTH(Height, height) - DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired) + DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired) END_DECLARE_ANIMATED_PROPERTIES // SVGTests - virtual void synchronizeRequiredFeatures() override { SVGTests::synchronizeRequiredFeatures(this); } - virtual void synchronizeRequiredExtensions() override { SVGTests::synchronizeRequiredExtensions(this); } - virtual void synchronizeSystemLanguage() override { SVGTests::synchronizeSystemLanguage(this); } + void synchronizeRequiredFeatures() final { SVGTests::synchronizeRequiredFeatures(*this); } + void synchronizeRequiredExtensions() final { SVGTests::synchronizeRequiredExtensions(*this); } + void synchronizeSystemLanguage() final { SVGTests::synchronizeSystemLanguage(*this); } }; -NODE_TYPE_CASTS(SVGMaskElement) - -} - -#endif -#endif +} // namespace WebCore |