| 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 11 matching lines...) Expand all Loading... |
| 22 #ifndef SVGFEDiffuseLightingElement_h | 22 #ifndef SVGFEDiffuseLightingElement_h |
| 23 #define SVGFEDiffuseLightingElement_h | 23 #define SVGFEDiffuseLightingElement_h |
| 24 | 24 |
| 25 #include "core/SVGNames.h" | 25 #include "core/SVGNames.h" |
| 26 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" | 26 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" |
| 27 #include "core/svg/SVGFELightElement.h" | 27 #include "core/svg/SVGFELightElement.h" |
| 28 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 28 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 class FEDiffuseLighting; | |
| 33 | |
| 34 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { | 32 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { |
| 35 public: | 33 public: |
| 36 DECLARE_NODE_FACTORY(SVGFEDiffuseLightingElement); | 34 DECLARE_NODE_FACTORY(SVGFEDiffuseLightingElement); |
| 37 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); | 35 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); |
| 38 | 36 |
| 39 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); } | 37 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); } |
| 40 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } | 38 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } |
| 41 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum
ber(); } | 39 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum
ber(); } |
| 42 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu
mber(); } | 40 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu
mber(); } |
| 43 SVGAnimatedString* in1() { return m_in1.get(); } | 41 SVGAnimatedString* in1() { return m_in1.get(); } |
| 44 | 42 |
| 45 private: | 43 private: |
| 46 explicit SVGFEDiffuseLightingElement(Document&); | 44 explicit SVGFEDiffuseLightingElement(Document&); |
| 47 | 45 |
| 48 bool isSupportedAttribute(const QualifiedName&); | 46 bool isSupportedAttribute(const QualifiedName&); |
| 49 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 50 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; | 48 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; |
| 51 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 49 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 52 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 50 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
| 53 | 51 |
| 54 RefPtr<SVGAnimatedNumber> m_diffuseConstant; | 52 RefPtr<SVGAnimatedNumber> m_diffuseConstant; |
| 55 RefPtr<SVGAnimatedNumber> m_surfaceScale; | 53 RefPtr<SVGAnimatedNumber> m_surfaceScale; |
| 56 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; | 54 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; |
| 57 RefPtr<SVGAnimatedString> m_in1; | 55 RefPtr<SVGAnimatedString> m_in1; |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 } // namespace WebCore | 58 } // namespace WebCore |
| 61 | 59 |
| 62 #endif | 60 #endif |
| OLD | NEW |