| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 , m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create(this, SVGNames:
:surfaceScaleAttr)) | 45 , m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create(this, SVGNames:
:surfaceScaleAttr)) |
| 46 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 46 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
| 47 { | 47 { |
| 48 ScriptWrappable::init(this); | 48 ScriptWrappable::init(this); |
| 49 | 49 |
| 50 addToPropertyMap(m_specularConstant); | 50 addToPropertyMap(m_specularConstant); |
| 51 addToPropertyMap(m_specularExponent); | 51 addToPropertyMap(m_specularExponent); |
| 52 addToPropertyMap(m_surfaceScale); | 52 addToPropertyMap(m_surfaceScale); |
| 53 addToPropertyMap(m_kernelUnitLength); | 53 addToPropertyMap(m_kernelUnitLength); |
| 54 addToPropertyMap(m_in1); | 54 addToPropertyMap(m_in1); |
| 55 registerAnimatedPropertiesForSVGFESpecularLightingElement(); | |
| 56 } | 55 } |
| 57 | 56 |
| 58 PassRefPtr<SVGFESpecularLightingElement> SVGFESpecularLightingElement::create(Do
cument& document) | 57 PassRefPtr<SVGFESpecularLightingElement> SVGFESpecularLightingElement::create(Do
cument& document) |
| 59 { | 58 { |
| 60 return adoptRef(new SVGFESpecularLightingElement(document)); | 59 return adoptRef(new SVGFESpecularLightingElement(document)); |
| 61 } | 60 } |
| 62 | 61 |
| 63 bool SVGFESpecularLightingElement::isSupportedAttribute(const QualifiedName& att
rName) | 62 bool SVGFESpecularLightingElement::isSupportedAttribute(const QualifiedName& att
rName) |
| 64 { | 63 { |
| 65 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 64 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 ASSERT(renderer->style()); | 196 ASSERT(renderer->style()); |
| 198 Color color = renderer->style()->svgStyle()->lightingColor(); | 197 Color color = renderer->style()->svgStyle()->lightingColor(); |
| 199 | 198 |
| 200 RefPtr<FilterEffect> effect = FESpecularLighting::create(filter, color, m_su
rfaceScale->currentValue()->value(), m_specularConstant->currentValue()->value()
, | 199 RefPtr<FilterEffect> effect = FESpecularLighting::create(filter, color, m_su
rfaceScale->currentValue()->value(), m_specularConstant->currentValue()->value()
, |
| 201 m_specularExponent->currentValue()->value(), kernelUnitLengthX()->curren
tValue()->value(), kernelUnitLengthY()->currentValue()->value(), lightSource.rel
ease()); | 200 m_specularExponent->currentValue()->value(), kernelUnitLengthX()->curren
tValue()->value(), kernelUnitLengthY()->currentValue()->value(), lightSource.rel
ease()); |
| 202 effect->inputEffects().append(input1); | 201 effect->inputEffects().append(input1); |
| 203 return effect.release(); | 202 return effect.release(); |
| 204 } | 203 } |
| 205 | 204 |
| 206 } | 205 } |
| OLD | NEW |