summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGFEMorphologyElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGFEMorphologyElement.h')
-rw-r--r--Source/WebCore/svg/SVGFEMorphologyElement.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/Source/WebCore/svg/SVGFEMorphologyElement.h b/Source/WebCore/svg/SVGFEMorphologyElement.h
index 1d5d752f0..814d6d5a5 100644
--- a/Source/WebCore/svg/SVGFEMorphologyElement.h
+++ b/Source/WebCore/svg/SVGFEMorphologyElement.h
@@ -17,10 +17,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGFEMorphologyElement_h
-#define SVGFEMorphologyElement_h
+#pragma once
-#if ENABLE(SVG) && ENABLE(FILTERS)
#include "FEMorphology.h"
#include "SVGAnimatedEnumeration.h"
#include "SVGAnimatedNumber.h"
@@ -38,9 +36,9 @@ struct SVGPropertyTraits<MorphologyOperatorType> {
case FEMORPHOLOGY_OPERATOR_UNKNOWN:
return emptyString();
case FEMORPHOLOGY_OPERATOR_ERODE:
- return "erode";
+ return ASCIILiteral("erode");
case FEMORPHOLOGY_OPERATOR_DILATE:
- return "dilate";
+ return ASCIILiteral("dilate");
}
ASSERT_NOT_REACHED();
@@ -59,18 +57,17 @@ struct SVGPropertyTraits<MorphologyOperatorType> {
class SVGFEMorphologyElement final : public SVGFilterPrimitiveStandardAttributes {
public:
- static PassRefPtr<SVGFEMorphologyElement> create(const QualifiedName&, Document&);
+ static Ref<SVGFEMorphologyElement> create(const QualifiedName&, Document&);
void setRadius(float radiusX, float radiusY);
private:
SVGFEMorphologyElement(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& radiusXIdentifier();
static const AtomicString& radiusYIdentifier();
@@ -84,6 +81,3 @@ private:
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif