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/SVGUnknownElement.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/svg/SVGUnknownElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGUnknownElement.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Source/WebCore/svg/SVGUnknownElement.h b/Source/WebCore/svg/SVGUnknownElement.h index cb6b65a5f..713f83d59 100644 --- a/Source/WebCore/svg/SVGUnknownElement.h +++ b/Source/WebCore/svg/SVGUnknownElement.h @@ -23,10 +23,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SVGUnknownElement_h -#define SVGUnknownElement_h - -#if ENABLE(SVG) +#pragma once #include "SVGElement.h" @@ -40,9 +37,9 @@ namespace WebCore { // false to make sure we don't attempt to render such elements. class SVGUnknownElement final : public SVGElement { public: - static PassRefPtr<SVGUnknownElement> create(const QualifiedName& tagName, Document& document) + static Ref<SVGUnknownElement> create(const QualifiedName& tagName, Document& document) { - return adoptRef(new SVGUnknownElement(tagName, document)); + return adoptRef(*new SVGUnknownElement(tagName, document)); } private: @@ -51,11 +48,7 @@ private: { } - virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } + bool rendererIsNeeded(const RenderStyle&) final { return false; } }; } // namespace WebCore - -#endif // ENABLE(SVG) - -#endif // SVGUnknownElement_h |