| 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, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 class SVGFESpecularLightingElement FINAL : public SVGFilterPrimitiveStandardAttr
ibutes { | 34 class SVGFESpecularLightingElement FINAL : public SVGFilterPrimitiveStandardAttr
ibutes { |
| 35 public: | 35 public: |
| 36 static PassRefPtr<SVGFESpecularLightingElement> create(Document&); | 36 static PassRefPtr<SVGFESpecularLightingElement> create(Document&); |
| 37 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); | 37 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); |
| 38 | 38 |
| 39 SVGAnimatedNumber* specularConstant() { return m_specularConstant.get(); } | 39 SVGAnimatedNumber* specularConstant() { return m_specularConstant.get(); } |
| 40 SVGAnimatedNumber* specularExponent() { return m_specularExponent.get(); } | 40 SVGAnimatedNumber* specularExponent() { return m_specularExponent.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 private: | 45 private: |
| 45 explicit SVGFESpecularLightingElement(Document&); | 46 explicit SVGFESpecularLightingElement(Document&); |
| 46 | 47 |
| 47 bool isSupportedAttribute(const QualifiedName&); | 48 bool isSupportedAttribute(const QualifiedName&); |
| 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 49 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 49 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; | 50 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; |
| 50 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 51 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 51 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 52 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
| 52 | 53 |
| 53 static const AtomicString& kernelUnitLengthXIdentifier(); | 54 static const AtomicString& kernelUnitLengthXIdentifier(); |
| 54 static const AtomicString& kernelUnitLengthYIdentifier(); | 55 static const AtomicString& kernelUnitLengthYIdentifier(); |
| 55 | 56 |
| 56 RefPtr<SVGAnimatedNumber> m_specularConstant; | 57 RefPtr<SVGAnimatedNumber> m_specularConstant; |
| 57 RefPtr<SVGAnimatedNumber> m_specularExponent; | 58 RefPtr<SVGAnimatedNumber> m_specularExponent; |
| 58 RefPtr<SVGAnimatedNumber> m_surfaceScale; | 59 RefPtr<SVGAnimatedNumber> m_surfaceScale; |
| 59 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; | 60 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; |
| 61 RefPtr<SVGAnimatedString> m_in1; |
| 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFESpecularLightingElement) | 62 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFESpecularLightingElement) |
| 61 DECLARE_ANIMATED_STRING(In1, in1) | |
| 62 END_DECLARE_ANIMATED_PROPERTIES | 63 END_DECLARE_ANIMATED_PROPERTIES |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 DEFINE_NODE_TYPE_CASTS(SVGFESpecularLightingElement, hasTagName(SVGNames::feSpec
ularLightingTag)); | 66 DEFINE_NODE_TYPE_CASTS(SVGFESpecularLightingElement, hasTagName(SVGNames::feSpec
ularLightingTag)); |
| 66 | 67 |
| 67 } // namespace WebCore | 68 } // namespace WebCore |
| 68 | 69 |
| 69 #endif | 70 #endif |
| OLD | NEW |