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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 return false; | 138 return false; |
139 } | 139 } |
140 | 140 |
141 void SVGFESpecularLightingElement::svgAttributeChanged(const QualifiedName& attr
Name) | 141 void SVGFESpecularLightingElement::svgAttributeChanged(const QualifiedName& attr
Name) |
142 { | 142 { |
143 if (!isSupportedAttribute(attrName)) { | 143 if (!isSupportedAttribute(attrName)) { |
144 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 144 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
145 return; | 145 return; |
146 } | 146 } |
147 | 147 |
148 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 148 SVGElement::InvalidationGuard invalidationGuard(this); |
149 | 149 |
150 if (attrName == SVGNames::surfaceScaleAttr | 150 if (attrName == SVGNames::surfaceScaleAttr |
151 || attrName == SVGNames::specularConstantAttr | 151 || attrName == SVGNames::specularConstantAttr |
152 || attrName == SVGNames::specularExponentAttr | 152 || attrName == SVGNames::specularExponentAttr |
153 || attrName == SVGNames::kernelUnitLengthAttr) { | 153 || attrName == SVGNames::kernelUnitLengthAttr) { |
154 primitiveAttributeChanged(attrName); | 154 primitiveAttributeChanged(attrName); |
155 return; | 155 return; |
156 } | 156 } |
157 | 157 |
158 if (attrName == SVGNames::inAttr) { | 158 if (attrName == SVGNames::inAttr) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 ASSERT(renderer->style()); | 190 ASSERT(renderer->style()); |
191 Color color = renderer->style()->svgStyle()->lightingColor(); | 191 Color color = renderer->style()->svgStyle()->lightingColor(); |
192 | 192 |
193 RefPtr<FilterEffect> effect = FESpecularLighting::create(filter, color, m_su
rfaceScale->currentValue()->value(), m_specularConstant->currentValue()->value()
, | 193 RefPtr<FilterEffect> effect = FESpecularLighting::create(filter, color, m_su
rfaceScale->currentValue()->value(), m_specularConstant->currentValue()->value()
, |
194 m_specularExponent->currentValue()->value(), kernelUnitLengthX()->curren
tValue()->value(), kernelUnitLengthY()->currentValue()->value(), lightSource.rel
ease()); | 194 m_specularExponent->currentValue()->value(), kernelUnitLengthX()->curren
tValue()->value(), kernelUnitLengthY()->currentValue()->value(), lightSource.rel
ease()); |
195 effect->inputEffects().append(input1); | 195 effect->inputEffects().append(input1); |
196 return effect.release(); | 196 return effect.release(); |
197 } | 197 } |
198 | 198 |
199 } | 199 } |
OLD | NEW |