| 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 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) | 41 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) |
| 42 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationX) | 42 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationX) |
| 43 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationY) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationY) |
| 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
| 45 END_REGISTER_ANIMATED_PROPERTIES | 45 END_REGISTER_ANIMATED_PROPERTIES |
| 46 | 46 |
| 47 inline SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const QualifiedName& t
agName, Document* document) | 47 inline SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const QualifiedName& t
agName, Document* document) |
| 48 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 48 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
| 49 { | 49 { |
| 50 ASSERT(hasTagName(SVGNames::feGaussianBlurTag)); | 50 ASSERT(hasTagName(SVGNames::feGaussianBlurTag)); |
| 51 ScriptWrappable::init(this); |
| 51 registerAnimatedPropertiesForSVGFEGaussianBlurElement(); | 52 registerAnimatedPropertiesForSVGFEGaussianBlurElement(); |
| 52 } | 53 } |
| 53 | 54 |
| 54 PassRefPtr<SVGFEGaussianBlurElement> SVGFEGaussianBlurElement::create(const Qual
ifiedName& tagName, Document* document) | 55 PassRefPtr<SVGFEGaussianBlurElement> SVGFEGaussianBlurElement::create(const Qual
ifiedName& tagName, Document* document) |
| 55 { | 56 { |
| 56 return adoptRef(new SVGFEGaussianBlurElement(tagName, document)); | 57 return adoptRef(new SVGFEGaussianBlurElement(tagName, document)); |
| 57 } | 58 } |
| 58 | 59 |
| 59 const AtomicString& SVGFEGaussianBlurElement::stdDeviationXIdentifier() | 60 const AtomicString& SVGFEGaussianBlurElement::stdDeviationXIdentifier() |
| 60 { | 61 { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 return 0; | 138 return 0; |
| 138 | 139 |
| 139 RefPtr<FilterEffect> effect = FEGaussianBlur::create(filter, stdDeviationX()
, stdDeviationY()); | 140 RefPtr<FilterEffect> effect = FEGaussianBlur::create(filter, stdDeviationX()
, stdDeviationY()); |
| 140 effect->inputEffects().append(input1); | 141 effect->inputEffects().append(input1); |
| 141 return effect.release(); | 142 return effect.release(); |
| 142 } | 143 } |
| 143 | 144 |
| 144 } | 145 } |
| 145 | 146 |
| 146 #endif // ENABLE(SVG) | 147 #endif // ENABLE(SVG) |
| OLD | NEW |