diff options
Diffstat (limited to 'Source/WebCore/svg/SVGComponentTransferFunctionElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGComponentTransferFunctionElement.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/Source/WebCore/svg/SVGComponentTransferFunctionElement.h b/Source/WebCore/svg/SVGComponentTransferFunctionElement.h index d1910c737..5a2c0b7c6 100644 --- a/Source/WebCore/svg/SVGComponentTransferFunctionElement.h +++ b/Source/WebCore/svg/SVGComponentTransferFunctionElement.h @@ -18,14 +18,13 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGComponentTransferFunctionElement_h -#define SVGComponentTransferFunctionElement_h +#pragma once -#if ENABLE(SVG) && ENABLE(FILTERS) #include "FEComponentTransfer.h" #include "SVGAnimatedEnumeration.h" #include "SVGAnimatedNumber.h" #include "SVGAnimatedNumberList.h" +#include "SVGElement.h" namespace WebCore { @@ -39,15 +38,15 @@ struct SVGPropertyTraits<ComponentTransferType> { case FECOMPONENTTRANSFER_TYPE_UNKNOWN: return emptyString(); case FECOMPONENTTRANSFER_TYPE_IDENTITY: - return "identity"; + return ASCIILiteral("identity"); case FECOMPONENTTRANSFER_TYPE_TABLE: - return "table"; + return ASCIILiteral("table"); case FECOMPONENTTRANSFER_TYPE_DISCRETE: - return "discrete"; + return ASCIILiteral("discrete"); case FECOMPONENTTRANSFER_TYPE_LINEAR: - return "linear"; + return ASCIILiteral("linear"); case FECOMPONENTTRANSFER_TYPE_GAMMA: - return "gamma"; + return ASCIILiteral("gamma"); } ASSERT_NOT_REACHED(); @@ -77,13 +76,14 @@ public: protected: SVGComponentTransferFunctionElement(const QualifiedName&, Document&); - bool isSupportedAttribute(const QualifiedName&); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - virtual void svgAttributeChanged(const QualifiedName&) override; + void parseAttribute(const QualifiedName&, const AtomicString&) override; + void svgAttributeChanged(const QualifiedName&) override; - virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } + bool rendererIsNeeded(const RenderStyle&) override { return false; } private: + static bool isSupportedAttribute(const QualifiedName&); + BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGComponentTransferFunctionElement) DECLARE_ANIMATED_ENUMERATION(Type, type, ComponentTransferType) DECLARE_ANIMATED_NUMBER_LIST(TableValues, tableValues) @@ -96,6 +96,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(SVG) && ENABLE(FILTERS) -#endif |