summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGGElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGGElement.h')
-rw-r--r--Source/WebCore/svg/SVGGElement.h25
1 files changed, 10 insertions, 15 deletions
diff --git a/Source/WebCore/svg/SVGGElement.h b/Source/WebCore/svg/SVGGElement.h
index 50b69b530..47c29cdc0 100644
--- a/Source/WebCore/svg/SVGGElement.h
+++ b/Source/WebCore/svg/SVGGElement.h
@@ -18,10 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGGElement_h
-#define SVGGElement_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGGraphicsElement.h"
@@ -31,28 +29,25 @@ namespace WebCore {
class SVGGElement final : public SVGGraphicsElement,
public SVGExternalResourcesRequired {
public:
- static PassRefPtr<SVGGElement> create(const QualifiedName&, Document&);
+ static Ref<SVGGElement> create(const QualifiedName&, Document&);
+ static Ref<SVGGElement> create(Document&);
private:
SVGGElement(const QualifiedName&, Document&);
- virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
+ RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final;
- virtual bool isValid() const override { return SVGTests::isValid(); }
- virtual bool supportsFocus() const override { return true; }
+ bool isValid() const final { return SVGTests::isValid(); }
- bool isSupportedAttribute(const QualifiedName&);
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
- virtual void svgAttributeChanged(const QualifiedName&) override;
+ static bool isSupportedAttribute(const QualifiedName&);
+ void parseAttribute(const QualifiedName&, const AtomicString&) final;
+ void svgAttributeChanged(const QualifiedName&) final;
- virtual bool rendererIsNeeded(const RenderStyle&) override;
+ bool rendererIsNeeded(const RenderStyle&) final;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGElement)
- DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
+ DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif