| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 2 * Copyright (C) 2005 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 REGISTER_LOCAL_ANIMATED_PROPERTY(kernelUnitLengthY) | 50 REGISTER_LOCAL_ANIMATED_PROPERTY(kernelUnitLengthY) |
| 51 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 51 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
| 52 END_REGISTER_ANIMATED_PROPERTIES | 52 END_REGISTER_ANIMATED_PROPERTIES |
| 53 | 53 |
| 54 inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const QualifiedN
ame& tagName, Document* document) | 54 inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const QualifiedN
ame& tagName, Document* document) |
| 55 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 55 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
| 56 , m_diffuseConstant(1) | 56 , m_diffuseConstant(1) |
| 57 , m_surfaceScale(1) | 57 , m_surfaceScale(1) |
| 58 { | 58 { |
| 59 ASSERT(hasTagName(SVGNames::feDiffuseLightingTag)); | 59 ASSERT(hasTagName(SVGNames::feDiffuseLightingTag)); |
| 60 ScriptWrappable::init(this); |
| 60 registerAnimatedPropertiesForSVGFEDiffuseLightingElement(); | 61 registerAnimatedPropertiesForSVGFEDiffuseLightingElement(); |
| 61 } | 62 } |
| 62 | 63 |
| 63 PassRefPtr<SVGFEDiffuseLightingElement> SVGFEDiffuseLightingElement::create(cons
t QualifiedName& tagName, Document* document) | 64 PassRefPtr<SVGFEDiffuseLightingElement> SVGFEDiffuseLightingElement::create(cons
t QualifiedName& tagName, Document* document) |
| 64 { | 65 { |
| 65 return adoptRef(new SVGFEDiffuseLightingElement(tagName, document)); | 66 return adoptRef(new SVGFEDiffuseLightingElement(tagName, document)); |
| 66 } | 67 } |
| 67 | 68 |
| 68 const AtomicString& SVGFEDiffuseLightingElement::kernelUnitLengthXIdentifier() | 69 const AtomicString& SVGFEDiffuseLightingElement::kernelUnitLengthXIdentifier() |
| 69 { | 70 { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 224 |
| 224 RefPtr<FilterEffect> effect = FEDiffuseLighting::create(filter, color, surfa
ceScale(), diffuseConstant(), | 225 RefPtr<FilterEffect> effect = FEDiffuseLighting::create(filter, color, surfa
ceScale(), diffuseConstant(), |
| 225 kernelUnitLength
X(), kernelUnitLengthY(), lightSource.release()); | 226 kernelUnitLength
X(), kernelUnitLengthY(), lightSource.release()); |
| 226 effect->inputEffects().append(input1); | 227 effect->inputEffects().append(input1); |
| 227 return effect.release(); | 228 return effect.release(); |
| 228 } | 229 } |
| 229 | 230 |
| 230 } | 231 } |
| 231 | 232 |
| 232 #endif // ENABLE(SVG) | 233 #endif // ENABLE(SVG) |
| OLD | NEW |