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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #ifndef SVGFESpecularLightingElement_h | 22 #ifndef SVGFESpecularLightingElement_h |
23 #define SVGFESpecularLightingElement_h | 23 #define SVGFESpecularLightingElement_h |
24 | 24 |
25 #include "core/SVGNames.h" | 25 #include "core/SVGNames.h" |
26 #include "core/svg/SVGAnimatedNumber.h" | 26 #include "core/svg/SVGAnimatedNumber.h" |
27 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" | 27 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" |
28 #include "core/svg/SVGFELightElement.h" | 28 #include "core/svg/SVGFELightElement.h" |
29 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 29 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
30 #include "platform/graphics/filters/FESpecularLighting.h" | 30 #include "platform/graphics/filters/FESpecularLighting.h" |
| 31 #include "platform/heap/Handle.h" |
31 | 32 |
32 namespace blink { | 33 namespace blink { |
33 | 34 |
34 class SVGFESpecularLightingElement final : public SVGFilterPrimitiveStandardAttr
ibutes { | 35 class SVGFESpecularLightingElement final : public SVGFilterPrimitiveStandardAttr
ibutes { |
35 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
36 public: | 37 public: |
37 DECLARE_NODE_FACTORY(SVGFESpecularLightingElement); | 38 DECLARE_NODE_FACTORY(SVGFESpecularLightingElement); |
38 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); | 39 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); |
39 | 40 |
40 SVGAnimatedNumber* specularConstant() { return m_specularConstant.get(); } | 41 SVGAnimatedNumber* specularConstant() { return m_specularConstant.get(); } |
41 SVGAnimatedNumber* specularExponent() { return m_specularExponent.get(); } | 42 SVGAnimatedNumber* specularExponent() { return m_specularExponent.get(); } |
42 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } | 43 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } |
43 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum
ber(); } | 44 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum
ber(); } |
44 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu
mber(); } | 45 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu
mber(); } |
45 SVGAnimatedString* in1() { return m_in1.get(); } | 46 SVGAnimatedString* in1() { return m_in1.get(); } |
| 47 |
| 48 virtual void trace(Visitor*) override; |
| 49 |
46 private: | 50 private: |
47 explicit SVGFESpecularLightingElement(Document&); | 51 explicit SVGFESpecularLightingElement(Document&); |
48 | 52 |
49 bool isSupportedAttribute(const QualifiedName&); | 53 bool isSupportedAttribute(const QualifiedName&); |
50 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
51 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) o
verride; | 55 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) o
verride; |
52 virtual void svgAttributeChanged(const QualifiedName&) override; | 56 virtual void svgAttributeChanged(const QualifiedName&) override; |
53 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) override; | 57 virtual PassRefPtrWillBeRawPtr<FilterEffect> build(SVGFilterBuilder*, Filter
*) override; |
54 | 58 |
55 static const AtomicString& kernelUnitLengthXIdentifier(); | 59 static const AtomicString& kernelUnitLengthXIdentifier(); |
56 static const AtomicString& kernelUnitLengthYIdentifier(); | 60 static const AtomicString& kernelUnitLengthYIdentifier(); |
57 | 61 |
58 RefPtr<SVGAnimatedNumber> m_specularConstant; | 62 RefPtrWillBeMember<SVGAnimatedNumber> m_specularConstant; |
59 RefPtr<SVGAnimatedNumber> m_specularExponent; | 63 RefPtrWillBeMember<SVGAnimatedNumber> m_specularExponent; |
60 RefPtr<SVGAnimatedNumber> m_surfaceScale; | 64 RefPtrWillBeMember<SVGAnimatedNumber> m_surfaceScale; |
61 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; | 65 RefPtrWillBeMember<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; |
62 RefPtr<SVGAnimatedString> m_in1; | 66 RefPtrWillBeMember<SVGAnimatedString> m_in1; |
63 }; | 67 }; |
64 | 68 |
65 } // namespace blink | 69 } // namespace blink |
66 | 70 |
67 #endif // SVGFESpecularLightingElement_h | 71 #endif // SVGFESpecularLightingElement_h |
OLD | NEW |