diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFETurbulenceElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGFETurbulenceElement.h | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/Source/WebCore/svg/SVGFETurbulenceElement.h b/Source/WebCore/svg/SVGFETurbulenceElement.h index b13f72712..4a9cbef01 100644 --- a/Source/WebCore/svg/SVGFETurbulenceElement.h +++ b/Source/WebCore/svg/SVGFETurbulenceElement.h @@ -18,10 +18,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGFETurbulenceElement_h -#define SVGFETurbulenceElement_h +#pragma once -#if ENABLE(SVG) && ENABLE(FILTERS) #include "FETurbulence.h" #include "SVGAnimatedEnumeration.h" #include "SVGAnimatedInteger.h" @@ -46,9 +44,9 @@ struct SVGPropertyTraits<SVGStitchOptions> { case SVG_STITCHTYPE_UNKNOWN: return emptyString(); case SVG_STITCHTYPE_STITCH: - return "stitch"; + return ASCIILiteral("stitch"); case SVG_STITCHTYPE_NOSTITCH: - return "noStitch"; + return ASCIILiteral("noStitch"); } ASSERT_NOT_REACHED(); @@ -75,9 +73,9 @@ struct SVGPropertyTraits<TurbulenceType> { case FETURBULENCE_TYPE_UNKNOWN: return emptyString(); case FETURBULENCE_TYPE_FRACTALNOISE: - return "fractalNoise"; + return ASCIILiteral("fractalNoise"); case FETURBULENCE_TYPE_TURBULENCE: - return "turbulence"; + return ASCIILiteral("turbulence"); } ASSERT_NOT_REACHED(); @@ -96,16 +94,15 @@ struct SVGPropertyTraits<TurbulenceType> { class SVGFETurbulenceElement final : public SVGFilterPrimitiveStandardAttributes { public: - static PassRefPtr<SVGFETurbulenceElement> create(const QualifiedName&, Document&); + static Ref<SVGFETurbulenceElement> create(const QualifiedName&, Document&); private: SVGFETurbulenceElement(const QualifiedName&, Document&); - bool isSupportedAttribute(const QualifiedName&); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& attrName) 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& attrName) override; + void svgAttributeChanged(const QualifiedName&) override; + RefPtr<FilterEffect> build(SVGFilterBuilder*, Filter&) override; static const AtomicString& baseFrequencyXIdentifier(); static const AtomicString& baseFrequencyYIdentifier(); @@ -121,6 +118,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif |