| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> | 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { | 35 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { |
| 36 public: | 36 public: |
| 37 static PassRefPtr<SVGFEDiffuseLightingElement> create(Document&); | 37 static PassRefPtr<SVGFEDiffuseLightingElement> create(Document&); |
| 38 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); | 38 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); |
| 39 | 39 |
| 40 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); } | 40 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); } |
| 41 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } | 41 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } |
| 42 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum
ber(); } | 42 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum
ber(); } |
| 43 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu
mber(); } | 43 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu
mber(); } |
| 44 SVGAnimatedString* in1() { return m_in1.get(); } |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 explicit SVGFEDiffuseLightingElement(Document&); | 47 explicit SVGFEDiffuseLightingElement(Document&); |
| 47 | 48 |
| 48 bool isSupportedAttribute(const QualifiedName&); | 49 bool isSupportedAttribute(const QualifiedName&); |
| 49 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 50 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 50 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; | 51 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; |
| 51 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 52 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 52 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 53 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
| 53 | 54 |
| 54 RefPtr<SVGAnimatedNumber> m_diffuseConstant; | 55 RefPtr<SVGAnimatedNumber> m_diffuseConstant; |
| 55 RefPtr<SVGAnimatedNumber> m_surfaceScale; | 56 RefPtr<SVGAnimatedNumber> m_surfaceScale; |
| 56 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; | 57 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; |
| 58 RefPtr<SVGAnimatedString> m_in1; |
| 57 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEDiffuseLightingElement) | 59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEDiffuseLightingElement) |
| 58 DECLARE_ANIMATED_STRING(In1, in1) | |
| 59 END_DECLARE_ANIMATED_PROPERTIES | 60 END_DECLARE_ANIMATED_PROPERTIES |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 DEFINE_NODE_TYPE_CASTS(SVGFEDiffuseLightingElement, hasTagName(SVGNames::feDiffu
seLightingTag)); | 63 DEFINE_NODE_TYPE_CASTS(SVGFEDiffuseLightingElement, hasTagName(SVGNames::feDiffu
seLightingTag)); |
| 63 | 64 |
| 64 } // namespace WebCore | 65 } // namespace WebCore |
| 65 | 66 |
| 66 #endif | 67 #endif |
| OLD | NEW |