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 29 matching lines...) Expand all Loading... |
40 m_specularExponent( | 40 m_specularExponent( |
41 SVGAnimatedNumber::create(this, | 41 SVGAnimatedNumber::create(this, |
42 SVGNames::specularExponentAttr, | 42 SVGNames::specularExponentAttr, |
43 SVGNumber::create(1))), | 43 SVGNumber::create(1))), |
44 m_surfaceScale(SVGAnimatedNumber::create(this, | 44 m_surfaceScale(SVGAnimatedNumber::create(this, |
45 SVGNames::surfaceScaleAttr, | 45 SVGNames::surfaceScaleAttr, |
46 SVGNumber::create(1))), | 46 SVGNumber::create(1))), |
47 m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create( | 47 m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create( |
48 this, | 48 this, |
49 SVGNames::kernelUnitLengthAttr)), | 49 SVGNames::kernelUnitLengthAttr)), |
50 m_in1(SVGAnimatedString::create(this, | 50 m_in1(SVGAnimatedString::create(this, SVGNames::inAttr)) { |
51 SVGNames::inAttr, | |
52 SVGString::create())) { | |
53 addToPropertyMap(m_specularConstant); | 51 addToPropertyMap(m_specularConstant); |
54 addToPropertyMap(m_specularExponent); | 52 addToPropertyMap(m_specularExponent); |
55 addToPropertyMap(m_surfaceScale); | 53 addToPropertyMap(m_surfaceScale); |
56 addToPropertyMap(m_kernelUnitLength); | 54 addToPropertyMap(m_kernelUnitLength); |
57 addToPropertyMap(m_in1); | 55 addToPropertyMap(m_in1); |
58 } | 56 } |
59 | 57 |
60 DEFINE_TRACE(SVGFESpecularLightingElement) { | 58 DEFINE_TRACE(SVGFESpecularLightingElement) { |
61 visitor->trace(m_specularConstant); | 59 visitor->trace(m_specularConstant); |
62 visitor->trace(m_specularExponent); | 60 visitor->trace(m_specularExponent); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 173 |
176 FilterEffect* effect = FESpecularLighting::create( | 174 FilterEffect* effect = FESpecularLighting::create( |
177 filter, color, m_surfaceScale->currentValue()->value(), | 175 filter, color, m_surfaceScale->currentValue()->value(), |
178 m_specularConstant->currentValue()->value(), | 176 m_specularConstant->currentValue()->value(), |
179 m_specularExponent->currentValue()->value(), lightSource.release()); | 177 m_specularExponent->currentValue()->value(), lightSource.release()); |
180 effect->inputEffects().append(input1); | 178 effect->inputEffects().append(input1); |
181 return effect; | 179 return effect; |
182 } | 180 } |
183 | 181 |
184 } // namespace blink | 182 } // namespace blink |
OLD | NEW |