OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 REGISTER_LOCAL_ANIMATED_PROPERTY(radiusX) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(radiusX) |
44 REGISTER_LOCAL_ANIMATED_PROPERTY(radiusY) | 44 REGISTER_LOCAL_ANIMATED_PROPERTY(radiusY) |
45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
46 END_REGISTER_ANIMATED_PROPERTIES | 46 END_REGISTER_ANIMATED_PROPERTIES |
47 | 47 |
48 inline SVGFEMorphologyElement::SVGFEMorphologyElement(const QualifiedName& tagNa
me, Document* document) | 48 inline SVGFEMorphologyElement::SVGFEMorphologyElement(const QualifiedName& tagNa
me, Document* document) |
49 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 49 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
50 , m__operator(FEMORPHOLOGY_OPERATOR_ERODE) | 50 , m__operator(FEMORPHOLOGY_OPERATOR_ERODE) |
51 { | 51 { |
52 ASSERT(hasTagName(SVGNames::feMorphologyTag)); | 52 ASSERT(hasTagName(SVGNames::feMorphologyTag)); |
| 53 ScriptWrappable::init(this); |
53 registerAnimatedPropertiesForSVGFEMorphologyElement(); | 54 registerAnimatedPropertiesForSVGFEMorphologyElement(); |
54 } | 55 } |
55 | 56 |
56 PassRefPtr<SVGFEMorphologyElement> SVGFEMorphologyElement::create(const Qualifie
dName& tagName, Document* document) | 57 PassRefPtr<SVGFEMorphologyElement> SVGFEMorphologyElement::create(const Qualifie
dName& tagName, Document* document) |
57 { | 58 { |
58 return adoptRef(new SVGFEMorphologyElement(tagName, document)); | 59 return adoptRef(new SVGFEMorphologyElement(tagName, document)); |
59 } | 60 } |
60 | 61 |
61 const AtomicString& SVGFEMorphologyElement::radiusXIdentifier() | 62 const AtomicString& SVGFEMorphologyElement::radiusXIdentifier() |
62 { | 63 { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 return 0; | 171 return 0; |
171 | 172 |
172 RefPtr<FilterEffect> effect = FEMorphology::create(filter, _operator(), xRad
ius, yRadius); | 173 RefPtr<FilterEffect> effect = FEMorphology::create(filter, _operator(), xRad
ius, yRadius); |
173 effect->inputEffects().append(input1); | 174 effect->inputEffects().append(input1); |
174 return effect.release(); | 175 return effect.release(); |
175 } | 176 } |
176 | 177 |
177 } // namespace WebCore | 178 } // namespace WebCore |
178 | 179 |
179 #endif // ENABLE(SVG) | 180 #endif // ENABLE(SVG) |
OLD | NEW |