| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 REGISTER_LOCAL_ANIMATED_PROPERTY(k3) | 49 REGISTER_LOCAL_ANIMATED_PROPERTY(k3) |
| 50 REGISTER_LOCAL_ANIMATED_PROPERTY(k4) | 50 REGISTER_LOCAL_ANIMATED_PROPERTY(k4) |
| 51 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 51 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
| 52 END_REGISTER_ANIMATED_PROPERTIES | 52 END_REGISTER_ANIMATED_PROPERTIES |
| 53 | 53 |
| 54 inline SVGFECompositeElement::SVGFECompositeElement(const QualifiedName& tagName
, Document* document) | 54 inline SVGFECompositeElement::SVGFECompositeElement(const QualifiedName& tagName
, Document* document) |
| 55 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 55 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
| 56 , m__operator(FECOMPOSITE_OPERATOR_OVER) | 56 , m__operator(FECOMPOSITE_OPERATOR_OVER) |
| 57 { | 57 { |
| 58 ASSERT(hasTagName(SVGNames::feCompositeTag)); | 58 ASSERT(hasTagName(SVGNames::feCompositeTag)); |
| 59 ScriptWrappable::init(this); |
| 59 registerAnimatedPropertiesForSVGFECompositeElement(); | 60 registerAnimatedPropertiesForSVGFECompositeElement(); |
| 60 } | 61 } |
| 61 | 62 |
| 62 PassRefPtr<SVGFECompositeElement> SVGFECompositeElement::create(const QualifiedN
ame& tagName, Document* document) | 63 PassRefPtr<SVGFECompositeElement> SVGFECompositeElement::create(const QualifiedN
ame& tagName, Document* document) |
| 63 { | 64 { |
| 64 return adoptRef(new SVGFECompositeElement(tagName, document)); | 65 return adoptRef(new SVGFECompositeElement(tagName, document)); |
| 65 } | 66 } |
| 66 | 67 |
| 67 bool SVGFECompositeElement::isSupportedAttribute(const QualifiedName& attrName) | 68 bool SVGFECompositeElement::isSupportedAttribute(const QualifiedName& attrName) |
| 68 { | 69 { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 FilterEffectVector& inputEffects = effect->inputEffects(); | 184 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 184 inputEffects.reserveCapacity(2); | 185 inputEffects.reserveCapacity(2); |
| 185 inputEffects.append(input1); | 186 inputEffects.append(input1); |
| 186 inputEffects.append(input2); | 187 inputEffects.append(input2); |
| 187 return effect.release(); | 188 return effect.release(); |
| 188 } | 189 } |
| 189 | 190 |
| 190 } | 191 } |
| 191 | 192 |
| 192 #endif // ENABLE(SVG) | 193 #endif // ENABLE(SVG) |
| OLD | NEW |