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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 } | 132 } |
133 | 133 |
134 | 134 |
135 void SVGFECompositeElement::svgAttributeChanged(const QualifiedName& attrName) | 135 void SVGFECompositeElement::svgAttributeChanged(const QualifiedName& attrName) |
136 { | 136 { |
137 if (!isSupportedAttribute(attrName)) { | 137 if (!isSupportedAttribute(attrName)) { |
138 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 138 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
139 return; | 139 return; |
140 } | 140 } |
141 | 141 |
142 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 142 SVGElement::InvalidationGuard invalidationGuard(this); |
143 | 143 |
144 if (attrName == SVGNames::operatorAttr | 144 if (attrName == SVGNames::operatorAttr |
145 || attrName == SVGNames::k1Attr | 145 || attrName == SVGNames::k1Attr |
146 || attrName == SVGNames::k2Attr | 146 || attrName == SVGNames::k2Attr |
147 || attrName == SVGNames::k3Attr | 147 || attrName == SVGNames::k3Attr |
148 || attrName == SVGNames::k4Attr) { | 148 || attrName == SVGNames::k4Attr) { |
149 primitiveAttributeChanged(attrName); | 149 primitiveAttributeChanged(attrName); |
150 return; | 150 return; |
151 } | 151 } |
152 | 152 |
(...skipping 15 matching lines...) Expand all Loading... |
168 | 168 |
169 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()); | 169 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()); |
170 FilterEffectVector& inputEffects = effect->inputEffects(); | 170 FilterEffectVector& inputEffects = effect->inputEffects(); |
171 inputEffects.reserveCapacity(2); | 171 inputEffects.reserveCapacity(2); |
172 inputEffects.append(input1); | 172 inputEffects.append(input1); |
173 inputEffects.append(input2); | 173 inputEffects.append(input2); |
174 return effect.release(); | 174 return effect.release(); |
175 } | 175 } |
176 | 176 |
177 } | 177 } |
OLD | NEW |