summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGLinearGradientElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGLinearGradientElement.h')
-rw-r--r--Source/WebCore/svg/SVGLinearGradientElement.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/Source/WebCore/svg/SVGLinearGradientElement.h b/Source/WebCore/svg/SVGLinearGradientElement.h
index 4b1bb6f9b..ef3dec084 100644
--- a/Source/WebCore/svg/SVGLinearGradientElement.h
+++ b/Source/WebCore/svg/SVGLinearGradientElement.h
@@ -18,10 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGLinearGradientElement_h
-#define SVGLinearGradientElement_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGAnimatedLength.h"
#include "SVGGradientElement.h"
#include "SVGNames.h"
@@ -32,20 +30,20 @@ struct LinearGradientAttributes;
class SVGLinearGradientElement final : public SVGGradientElement {
public:
- static PassRefPtr<SVGLinearGradientElement> create(const QualifiedName&, Document&);
+ static Ref<SVGLinearGradientElement> create(const QualifiedName&, Document&);
bool collectGradientAttributes(LinearGradientAttributes&);
private:
SVGLinearGradientElement(const QualifiedName&, Document&);
- 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&) override;
+ void svgAttributeChanged(const QualifiedName&) override;
- virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
+ RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override;
- virtual bool selfHasRelativeLengths() const override;
+ bool selfHasRelativeLengths() const override;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLinearGradientElement)
DECLARE_ANIMATED_LENGTH(X1, x1)
@@ -55,9 +53,4 @@ private:
END_DECLARE_ANIMATED_PROPERTIES
};
-NODE_TYPE_CASTS(SVGLinearGradientElement)
-
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif