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 24 matching lines...) Expand all Loading... |
35 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::std
DeviationAttr, stdDeviationXIdentifier(), StdDeviationX, stdDeviationX) | 35 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::std
DeviationAttr, stdDeviationXIdentifier(), StdDeviationX, stdDeviationX) |
36 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::std
DeviationAttr, stdDeviationYIdentifier(), StdDeviationY, stdDeviationY) | 36 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::std
DeviationAttr, stdDeviationYIdentifier(), StdDeviationY, stdDeviationY) |
37 | 37 |
38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEGaussianBlurElement) | 38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEGaussianBlurElement) |
39 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) | 39 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) |
40 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationX) | 40 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationX) |
41 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationY) | 41 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationY) |
42 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 42 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
43 END_REGISTER_ANIMATED_PROPERTIES | 43 END_REGISTER_ANIMATED_PROPERTIES |
44 | 44 |
45 inline SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const QualifiedName& t
agName, Document* document) | 45 inline SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const QualifiedName& t
agName, Document& document) |
46 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 46 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
47 { | 47 { |
48 ASSERT(hasTagName(SVGNames::feGaussianBlurTag)); | 48 ASSERT(hasTagName(SVGNames::feGaussianBlurTag)); |
49 ScriptWrappable::init(this); | 49 ScriptWrappable::init(this); |
50 registerAnimatedPropertiesForSVGFEGaussianBlurElement(); | 50 registerAnimatedPropertiesForSVGFEGaussianBlurElement(); |
51 } | 51 } |
52 | 52 |
53 PassRefPtr<SVGFEGaussianBlurElement> SVGFEGaussianBlurElement::create(const Qual
ifiedName& tagName, Document* document) | 53 PassRefPtr<SVGFEGaussianBlurElement> SVGFEGaussianBlurElement::create(const Qual
ifiedName& tagName, Document& document) |
54 { | 54 { |
55 return adoptRef(new SVGFEGaussianBlurElement(tagName, document)); | 55 return adoptRef(new SVGFEGaussianBlurElement(tagName, document)); |
56 } | 56 } |
57 | 57 |
58 const AtomicString& SVGFEGaussianBlurElement::stdDeviationXIdentifier() | 58 const AtomicString& SVGFEGaussianBlurElement::stdDeviationXIdentifier() |
59 { | 59 { |
60 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationX", AtomicS
tring::ConstructFromLiteral)); | 60 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationX", AtomicS
tring::ConstructFromLiteral)); |
61 return s_identifier; | 61 return s_identifier; |
62 } | 62 } |
63 | 63 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 if (stdDeviationXCurrentValue() < 0 || stdDeviationYCurrentValue() < 0) | 135 if (stdDeviationXCurrentValue() < 0 || stdDeviationYCurrentValue() < 0) |
136 return 0; | 136 return 0; |
137 | 137 |
138 RefPtr<FilterEffect> effect = FEGaussianBlur::create(filter, stdDeviationXCu
rrentValue(), stdDeviationYCurrentValue()); | 138 RefPtr<FilterEffect> effect = FEGaussianBlur::create(filter, stdDeviationXCu
rrentValue(), stdDeviationYCurrentValue()); |
139 effect->inputEffects().append(input1); | 139 effect->inputEffects().append(input1); |
140 return effect.release(); | 140 return effect.release(); |
141 } | 141 } |
142 | 142 |
143 } | 143 } |
OLD | NEW |