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(in2) | 41 REGISTER_LOCAL_ANIMATED_PROPERTY(in2) |
42 REGISTER_LOCAL_ANIMATED_PROPERTY(mode) | 42 REGISTER_LOCAL_ANIMATED_PROPERTY(mode) |
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 SVGFEBlendElement::SVGFEBlendElement(const QualifiedName& tagName, Docume
nt* document) | 46 inline SVGFEBlendElement::SVGFEBlendElement(const QualifiedName& tagName, Docume
nt* document) |
47 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 47 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
48 , m_mode(FEBLEND_MODE_NORMAL) | 48 , m_mode(FEBLEND_MODE_NORMAL) |
49 { | 49 { |
50 ASSERT(hasTagName(SVGNames::feBlendTag)); | 50 ASSERT(hasTagName(SVGNames::feBlendTag)); |
| 51 ScriptWrappable::init(this); |
51 registerAnimatedPropertiesForSVGFEBlendElement(); | 52 registerAnimatedPropertiesForSVGFEBlendElement(); |
52 } | 53 } |
53 | 54 |
54 PassRefPtr<SVGFEBlendElement> SVGFEBlendElement::create(const QualifiedName& tag
Name, Document* document) | 55 PassRefPtr<SVGFEBlendElement> SVGFEBlendElement::create(const QualifiedName& tag
Name, Document* document) |
55 { | 56 { |
56 return adoptRef(new SVGFEBlendElement(tagName, document)); | 57 return adoptRef(new SVGFEBlendElement(tagName, document)); |
57 } | 58 } |
58 | 59 |
59 bool SVGFEBlendElement::isSupportedAttribute(const QualifiedName& attrName) | 60 bool SVGFEBlendElement::isSupportedAttribute(const QualifiedName& attrName) |
60 { | 61 { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 FilterEffectVector& inputEffects = effect->inputEffects(); | 139 FilterEffectVector& inputEffects = effect->inputEffects(); |
139 inputEffects.reserveCapacity(2); | 140 inputEffects.reserveCapacity(2); |
140 inputEffects.append(input1); | 141 inputEffects.append(input1); |
141 inputEffects.append(input2); | 142 inputEffects.append(input2); |
142 return effect.release(); | 143 return effect.release(); |
143 } | 144 } |
144 | 145 |
145 } | 146 } |
146 | 147 |
147 #endif // ENABLE(SVG) | 148 #endif // ENABLE(SVG) |
OLD | NEW |