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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 143 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
144 } | 144 } |
145 | 145 |
146 void SVGFESpecularLightingElement::lightElementAttributeChanged( | 146 void SVGFESpecularLightingElement::lightElementAttributeChanged( |
147 const SVGFELightElement* lightElement, | 147 const SVGFELightElement* lightElement, |
148 const QualifiedName& attrName) { | 148 const QualifiedName& attrName) { |
149 if (SVGFELightElement::findLightElement(*this) != lightElement) | 149 if (SVGFELightElement::findLightElement(*this) != lightElement) |
150 return; | 150 return; |
151 | 151 |
152 // The light element has different attribute names so attrName can identify th
e requested attribute. | 152 // The light element has different attribute names so attrName can identify |
| 153 // the requested attribute. |
153 primitiveAttributeChanged(attrName); | 154 primitiveAttributeChanged(attrName); |
154 } | 155 } |
155 | 156 |
156 FilterEffect* SVGFESpecularLightingElement::build( | 157 FilterEffect* SVGFESpecularLightingElement::build( |
157 SVGFilterBuilder* filterBuilder, | 158 SVGFilterBuilder* filterBuilder, |
158 Filter* filter) { | 159 Filter* filter) { |
159 FilterEffect* input1 = filterBuilder->getEffectById( | 160 FilterEffect* input1 = filterBuilder->getEffectById( |
160 AtomicString(m_in1->currentValue()->value())); | 161 AtomicString(m_in1->currentValue()->value())); |
161 ASSERT(input1); | 162 ASSERT(input1); |
162 | 163 |
(...skipping 11 matching lines...) Expand all Loading... |
174 | 175 |
175 FilterEffect* effect = FESpecularLighting::create( | 176 FilterEffect* effect = FESpecularLighting::create( |
176 filter, color, m_surfaceScale->currentValue()->value(), | 177 filter, color, m_surfaceScale->currentValue()->value(), |
177 m_specularConstant->currentValue()->value(), | 178 m_specularConstant->currentValue()->value(), |
178 m_specularExponent->currentValue()->value(), lightSource.release()); | 179 m_specularExponent->currentValue()->value(), lightSource.release()); |
179 effect->inputEffects().append(input1); | 180 effect->inputEffects().append(input1); |
180 return effect; | 181 return effect; |
181 } | 182 } |
182 | 183 |
183 } // namespace blink | 184 } // namespace blink |
OLD | NEW |