| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 { | 62 { |
| 63 ScriptWrappable::init(this); | 63 ScriptWrappable::init(this); |
| 64 | 64 |
| 65 addToPropertyMap(m_k1); | 65 addToPropertyMap(m_k1); |
| 66 addToPropertyMap(m_k2); | 66 addToPropertyMap(m_k2); |
| 67 addToPropertyMap(m_k3); | 67 addToPropertyMap(m_k3); |
| 68 addToPropertyMap(m_k4); | 68 addToPropertyMap(m_k4); |
| 69 addToPropertyMap(m_in1); | 69 addToPropertyMap(m_in1); |
| 70 addToPropertyMap(m_in2); | 70 addToPropertyMap(m_in2); |
| 71 addToPropertyMap(m_svgOperator); | 71 addToPropertyMap(m_svgOperator); |
| 72 registerAnimatedPropertiesForSVGFECompositeElement(); | |
| 73 } | 72 } |
| 74 | 73 |
| 75 PassRefPtr<SVGFECompositeElement> SVGFECompositeElement::create(Document& docume
nt) | 74 PassRefPtr<SVGFECompositeElement> SVGFECompositeElement::create(Document& docume
nt) |
| 76 { | 75 { |
| 77 return adoptRef(new SVGFECompositeElement(document)); | 76 return adoptRef(new SVGFECompositeElement(document)); |
| 78 } | 77 } |
| 79 | 78 |
| 80 bool SVGFECompositeElement::isSupportedAttribute(const QualifiedName& attrName) | 79 bool SVGFECompositeElement::isSupportedAttribute(const QualifiedName& attrName) |
| 81 { | 80 { |
| 82 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 81 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 175 |
| 177 RefPtr<FilterEffect> effect = FEComposite::create(filter, m_svgOperator->cur
rentValue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->v
alue(), m_k3->currentValue()->value(), m_k4->currentValue()->value()); | 176 RefPtr<FilterEffect> effect = FEComposite::create(filter, m_svgOperator->cur
rentValue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->v
alue(), m_k3->currentValue()->value(), m_k4->currentValue()->value()); |
| 178 FilterEffectVector& inputEffects = effect->inputEffects(); | 177 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 179 inputEffects.reserveCapacity(2); | 178 inputEffects.reserveCapacity(2); |
| 180 inputEffects.append(input1); | 179 inputEffects.append(input1); |
| 181 inputEffects.append(input2); | 180 inputEffects.append(input2); |
| 182 return effect.release(); | 181 return effect.release(); |
| 183 } | 182 } |
| 184 | 183 |
| 185 } | 184 } |
| OLD | NEW |