summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGFEDiffuseLightingElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGFEDiffuseLightingElement.h')
-rw-r--r--Source/WebCore/svg/SVGFEDiffuseLightingElement.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/Source/WebCore/svg/SVGFEDiffuseLightingElement.h b/Source/WebCore/svg/SVGFEDiffuseLightingElement.h
index 29cfd4f13..3b3733b05 100644
--- a/Source/WebCore/svg/SVGFEDiffuseLightingElement.h
+++ b/Source/WebCore/svg/SVGFEDiffuseLightingElement.h
@@ -19,10 +19,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGFEDiffuseLightingElement_h
-#define SVGFEDiffuseLightingElement_h
+#pragma once
-#if ENABLE(SVG) && ENABLE(FILTERS)
#include "SVGFELightElement.h"
#include "SVGFilterPrimitiveStandardAttributes.h"
@@ -33,17 +31,16 @@ class SVGColor;
class SVGFEDiffuseLightingElement final : public SVGFilterPrimitiveStandardAttributes {
public:
- static PassRefPtr<SVGFEDiffuseLightingElement> create(const QualifiedName&, Document&);
+ static Ref<SVGFEDiffuseLightingElement> create(const QualifiedName&, Document&);
void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedName&);
private:
SVGFEDiffuseLightingElement(const QualifiedName&, Document&);
- bool isSupportedAttribute(const QualifiedName&);
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
- virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) override;
- virtual void svgAttributeChanged(const QualifiedName&) override;
- virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) override;
+ void parseAttribute(const QualifiedName&, const AtomicString&) override;
+ bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) override;
+ void svgAttributeChanged(const QualifiedName&) override;
+ RefPtr<FilterEffect> build(SVGFilterBuilder*, Filter&) override;
static const AtomicString& kernelUnitLengthXIdentifier();
static const AtomicString& kernelUnitLengthYIdentifier();
@@ -58,6 +55,3 @@ private:
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif