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 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 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 29 matching lines...) Expand all Loading... |
40 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) | 40 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) |
41 REGISTER_LOCAL_ANIMATED_PROPERTY(dx) | 41 REGISTER_LOCAL_ANIMATED_PROPERTY(dx) |
42 REGISTER_LOCAL_ANIMATED_PROPERTY(dy) | 42 REGISTER_LOCAL_ANIMATED_PROPERTY(dy) |
43 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 43 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
44 END_REGISTER_ANIMATED_PROPERTIES | 44 END_REGISTER_ANIMATED_PROPERTIES |
45 | 45 |
46 inline SVGFEOffsetElement::SVGFEOffsetElement(const QualifiedName& tagName, Docu
ment* document) | 46 inline SVGFEOffsetElement::SVGFEOffsetElement(const QualifiedName& tagName, Docu
ment* document) |
47 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 47 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
48 { | 48 { |
49 ASSERT(hasTagName(SVGNames::feOffsetTag)); | 49 ASSERT(hasTagName(SVGNames::feOffsetTag)); |
| 50 ScriptWrappable::init(this); |
50 registerAnimatedPropertiesForSVGFEOffsetElement(); | 51 registerAnimatedPropertiesForSVGFEOffsetElement(); |
51 } | 52 } |
52 | 53 |
53 PassRefPtr<SVGFEOffsetElement> SVGFEOffsetElement::create(const QualifiedName& t
agName, Document* document) | 54 PassRefPtr<SVGFEOffsetElement> SVGFEOffsetElement::create(const QualifiedName& t
agName, Document* document) |
54 { | 55 { |
55 return adoptRef(new SVGFEOffsetElement(tagName, document)); | 56 return adoptRef(new SVGFEOffsetElement(tagName, document)); |
56 } | 57 } |
57 | 58 |
58 bool SVGFEOffsetElement::isSupportedAttribute(const QualifiedName& attrName) | 59 bool SVGFEOffsetElement::isSupportedAttribute(const QualifiedName& attrName) |
59 { | 60 { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 return 0; | 117 return 0; |
117 | 118 |
118 RefPtr<FilterEffect> effect = FEOffset::create(filter, dx(), dy()); | 119 RefPtr<FilterEffect> effect = FEOffset::create(filter, dx(), dy()); |
119 effect->inputEffects().append(input1); | 120 effect->inputEffects().append(input1); |
120 return effect.release(); | 121 return effect.release(); |
121 } | 122 } |
122 | 123 |
123 } | 124 } |
124 | 125 |
125 #endif // ENABLE(SVG) | 126 #endif // ENABLE(SVG) |
OLD | NEW |