OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 const SVGAnimatedNumber* specularExponent() const { return m_specularExponen
t.get(); } | 60 const SVGAnimatedNumber* specularExponent() const { return m_specularExponen
t.get(); } |
61 SVGAnimatedNumber* limitingConeAngle() { return m_limitingConeAngle.get(); } | 61 SVGAnimatedNumber* limitingConeAngle() { return m_limitingConeAngle.get(); } |
62 const SVGAnimatedNumber* limitingConeAngle() const { return m_limitingConeAn
gle.get(); } | 62 const SVGAnimatedNumber* limitingConeAngle() const { return m_limitingConeAn
gle.get(); } |
63 | 63 |
64 DECLARE_VIRTUAL_TRACE(); | 64 DECLARE_VIRTUAL_TRACE(); |
65 | 65 |
66 protected: | 66 protected: |
67 SVGFELightElement(const QualifiedName&, Document&); | 67 SVGFELightElement(const QualifiedName&, Document&); |
68 | 68 |
69 private: | 69 private: |
70 bool isSupportedAttribute(const QualifiedName&); | |
71 virtual void svgAttributeChanged(const QualifiedName&) override final; | 70 virtual void svgAttributeChanged(const QualifiedName&) override final; |
72 virtual void childrenChanged(const ChildrenChange&) override final; | 71 virtual void childrenChanged(const ChildrenChange&) override final; |
73 | 72 |
74 virtual bool layoutObjectIsNeeded(const ComputedStyle&) override { return fa
lse; } | 73 virtual bool layoutObjectIsNeeded(const ComputedStyle&) override { return fa
lse; } |
75 | 74 |
76 RefPtrWillBeMember<SVGAnimatedNumber> m_azimuth; | 75 RefPtrWillBeMember<SVGAnimatedNumber> m_azimuth; |
77 RefPtrWillBeMember<SVGAnimatedNumber> m_elevation; | 76 RefPtrWillBeMember<SVGAnimatedNumber> m_elevation; |
78 RefPtrWillBeMember<SVGAnimatedNumber> m_x; | 77 RefPtrWillBeMember<SVGAnimatedNumber> m_x; |
79 RefPtrWillBeMember<SVGAnimatedNumber> m_y; | 78 RefPtrWillBeMember<SVGAnimatedNumber> m_y; |
80 RefPtrWillBeMember<SVGAnimatedNumber> m_z; | 79 RefPtrWillBeMember<SVGAnimatedNumber> m_z; |
81 RefPtrWillBeMember<SVGAnimatedNumber> m_pointsAtX; | 80 RefPtrWillBeMember<SVGAnimatedNumber> m_pointsAtX; |
82 RefPtrWillBeMember<SVGAnimatedNumber> m_pointsAtY; | 81 RefPtrWillBeMember<SVGAnimatedNumber> m_pointsAtY; |
83 RefPtrWillBeMember<SVGAnimatedNumber> m_pointsAtZ; | 82 RefPtrWillBeMember<SVGAnimatedNumber> m_pointsAtZ; |
84 RefPtrWillBeMember<SVGAnimatedNumber> m_specularExponent; | 83 RefPtrWillBeMember<SVGAnimatedNumber> m_specularExponent; |
85 RefPtrWillBeMember<SVGAnimatedNumber> m_limitingConeAngle; | 84 RefPtrWillBeMember<SVGAnimatedNumber> m_limitingConeAngle; |
86 }; | 85 }; |
87 | 86 |
88 inline bool isSVGFELightElement(const SVGElement& element) | 87 inline bool isSVGFELightElement(const SVGElement& element) |
89 { | 88 { |
90 return element.hasTagName(SVGNames::feDistantLightTag) || element.hasTagName
(SVGNames::fePointLightTag) || element.hasTagName(SVGNames::feSpotLightTag); | 89 return element.hasTagName(SVGNames::feDistantLightTag) || element.hasTagName
(SVGNames::fePointLightTag) || element.hasTagName(SVGNames::feSpotLightTag); |
91 } | 90 } |
92 | 91 |
93 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGFELightElement); | 92 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGFELightElement); |
94 | 93 |
95 } // namespace blink | 94 } // namespace blink |
96 | 95 |
97 #endif | 96 #endif |
OLD | NEW |