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/SVGClipPathElement.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/svg/SVGClipPathElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGClipPathElement.h | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/Source/WebCore/svg/SVGClipPathElement.h b/Source/WebCore/svg/SVGClipPathElement.h index d163097d4..8bb257b6c 100644 --- a/Source/WebCore/svg/SVGClipPathElement.h +++ b/Source/WebCore/svg/SVGClipPathElement.h @@ -18,10 +18,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGClipPathElement_h -#define SVGClipPathElement_h +#pragma once -#if ENABLE(SVG) #include "SVGAnimatedBoolean.h" #include "SVGAnimatedEnumeration.h" #include "SVGExternalResourcesRequired.h" @@ -35,30 +33,26 @@ class RenderObject; class SVGClipPathElement final : public SVGGraphicsElement, public SVGExternalResourcesRequired { public: - static PassRefPtr<SVGClipPathElement> create(const QualifiedName&, Document&); + static Ref<SVGClipPathElement> create(const QualifiedName&, Document&); private: SVGClipPathElement(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 supportsFocus() const final { return false; } + 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; BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGClipPathElement) DECLARE_ANIMATED_ENUMERATION(ClipPathUnits, clipPathUnits, SVGUnitTypes::SVGUnitType) - DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired) + DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired) END_DECLARE_ANIMATED_PROPERTIES }; -NODE_TYPE_CASTS(SVGClipPathElement) - -} - -#endif -#endif +} // namespace WebCore |