| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 if (value == "gamma") | 67 if (value == "gamma") |
| 68 return FECOMPONENTTRANSFER_TYPE_GAMMA; | 68 return FECOMPONENTTRANSFER_TYPE_GAMMA; |
| 69 return FECOMPONENTTRANSFER_TYPE_UNKNOWN; | 69 return FECOMPONENTTRANSFER_TYPE_UNKNOWN; |
| 70 } | 70 } |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 class SVGComponentTransferFunctionElement : public SVGElement { | 73 class SVGComponentTransferFunctionElement : public SVGElement { |
| 74 public: | 74 public: |
| 75 ComponentTransferFunction transferFunction() const; | 75 ComponentTransferFunction transferFunction() const; |
| 76 | 76 |
| 77 virtual void accept(Visitor* visitor) const OVERRIDE { SVGElement::accept(vi
sitor); } |
| 78 |
| 77 protected: | 79 protected: |
| 78 SVGComponentTransferFunctionElement(const QualifiedName&, const Handle<Docum
ent>&); | 80 SVGComponentTransferFunctionElement(const QualifiedName&, const Handle<Docum
ent>&); |
| 79 | 81 |
| 80 bool isSupportedAttribute(const QualifiedName&); | 82 bool isSupportedAttribute(const QualifiedName&); |
| 81 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 83 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 82 virtual void svgAttributeChanged(const QualifiedName&); | 84 virtual void svgAttributeChanged(const QualifiedName&); |
| 83 | 85 |
| 84 private: | 86 private: |
| 85 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGComponentTransferFunctionElement) | 87 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGComponentTransferFunctionElement) |
| 86 DECLARE_ANIMATED_ENUMERATION(Type, type, ComponentTransferType) | 88 DECLARE_ANIMATED_ENUMERATION(Type, type, ComponentTransferType) |
| 87 DECLARE_ANIMATED_NUMBER_LIST(TableValues, tableValues) | 89 DECLARE_ANIMATED_NUMBER_LIST(TableValues, tableValues) |
| 88 DECLARE_ANIMATED_NUMBER(Slope, slope) | 90 DECLARE_ANIMATED_NUMBER(Slope, slope) |
| 89 DECLARE_ANIMATED_NUMBER(Intercept, intercept) | 91 DECLARE_ANIMATED_NUMBER(Intercept, intercept) |
| 90 DECLARE_ANIMATED_NUMBER(Amplitude, amplitude) | 92 DECLARE_ANIMATED_NUMBER(Amplitude, amplitude) |
| 91 DECLARE_ANIMATED_NUMBER(Exponent, exponent) | 93 DECLARE_ANIMATED_NUMBER(Exponent, exponent) |
| 92 DECLARE_ANIMATED_NUMBER(Offset, offset) | 94 DECLARE_ANIMATED_NUMBER(Offset, offset) |
| 93 END_DECLARE_ANIMATED_PROPERTIES | 95 END_DECLARE_ANIMATED_PROPERTIES |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 } // namespace WebCore | 98 } // namespace WebCore |
| 97 | 99 |
| 98 #endif // ENABLE(SVG) | 100 #endif // ENABLE(SVG) |
| 99 #endif | 101 #endif |
| OLD | NEW |