diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFEDisplacementMapElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGFEDisplacementMapElement.h | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/Source/WebCore/svg/SVGFEDisplacementMapElement.h b/Source/WebCore/svg/SVGFEDisplacementMapElement.h index 0699511fd..e29cdc611 100644 --- a/Source/WebCore/svg/SVGFEDisplacementMapElement.h +++ b/Source/WebCore/svg/SVGFEDisplacementMapElement.h @@ -17,10 +17,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGFEDisplacementMapElement_h -#define SVGFEDisplacementMapElement_h +#pragma once -#if ENABLE(SVG) && ENABLE(FILTERS) #include "FEDisplacementMap.h" #include "SVGAnimatedEnumeration.h" #include "SVGAnimatedNumber.h" @@ -38,13 +36,13 @@ struct SVGPropertyTraits<ChannelSelectorType> { case CHANNEL_UNKNOWN: return emptyString(); case CHANNEL_R: - return "R"; + return ASCIILiteral("R"); case CHANNEL_G: - return "G"; + return ASCIILiteral("G"); case CHANNEL_B: - return "B"; + return ASCIILiteral("B"); case CHANNEL_A: - return "A"; + return ASCIILiteral("A"); } ASSERT_NOT_REACHED(); @@ -67,18 +65,17 @@ struct SVGPropertyTraits<ChannelSelectorType> { class SVGFEDisplacementMapElement final : public SVGFilterPrimitiveStandardAttributes { public: - static PassRefPtr<SVGFEDisplacementMapElement> create(const QualifiedName&, Document&); + static Ref<SVGFEDisplacementMapElement> create(const QualifiedName&, Document&); static ChannelSelectorType stringToChannel(const String&); private: SVGFEDisplacementMapElement(const QualifiedName& tagName, 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; BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEDisplacementMapElement) DECLARE_ANIMATED_STRING(In1, in1) @@ -90,6 +87,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif // SVGFEDisplacementMapElement_h |