diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFEConvolveMatrixElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGFEConvolveMatrixElement.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/Source/WebCore/svg/SVGFEConvolveMatrixElement.h b/Source/WebCore/svg/SVGFEConvolveMatrixElement.h index 9024536d7..8198456bb 100644 --- a/Source/WebCore/svg/SVGFEConvolveMatrixElement.h +++ b/Source/WebCore/svg/SVGFEConvolveMatrixElement.h @@ -17,10 +17,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGFEConvolveMatrixElement_h -#define SVGFEConvolveMatrixElement_h +#pragma once -#if ENABLE(SVG) && ENABLE(FILTERS) #include "FEConvolveMatrix.h" #include "SVGAnimatedBoolean.h" #include "SVGAnimatedEnumeration.h" @@ -41,11 +39,11 @@ struct SVGPropertyTraits<EdgeModeType> { case EDGEMODE_UNKNOWN: return emptyString(); case EDGEMODE_DUPLICATE: - return "duplicate"; + return ASCIILiteral("duplicate"); case EDGEMODE_WRAP: - return "wrap"; + return ASCIILiteral("wrap"); case EDGEMODE_NONE: - return "none"; + return ASCIILiteral("none"); } ASSERT_NOT_REACHED(); @@ -66,7 +64,7 @@ struct SVGPropertyTraits<EdgeModeType> { class SVGFEConvolveMatrixElement final : public SVGFilterPrimitiveStandardAttributes { public: - static PassRefPtr<SVGFEConvolveMatrixElement> create(const QualifiedName&, Document&); + static Ref<SVGFEConvolveMatrixElement> create(const QualifiedName&, Document&); void setOrder(float orderX, float orderY); void setKernelUnitLength(float kernelUnitLengthX, float kernelUnitLengthY); @@ -74,11 +72,10 @@ public: private: SVGFEConvolveMatrixElement(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& orderXIdentifier(); static const AtomicString& orderYIdentifier(); @@ -102,6 +99,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif |