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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 return false; | 101 return false; |
102 } | 102 } |
103 | 103 |
104 void SVGFEBlendElement::svgAttributeChanged(const QualifiedName& attrName) | 104 void SVGFEBlendElement::svgAttributeChanged(const QualifiedName& attrName) |
105 { | 105 { |
106 if (!isSupportedAttribute(attrName)) { | 106 if (!isSupportedAttribute(attrName)) { |
107 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 107 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
108 return; | 108 return; |
109 } | 109 } |
110 | 110 |
111 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 111 SVGElement::InvalidationGuard invalidationGuard(this); |
112 | 112 |
113 if (attrName == SVGNames::modeAttr) { | 113 if (attrName == SVGNames::modeAttr) { |
114 primitiveAttributeChanged(attrName); | 114 primitiveAttributeChanged(attrName); |
115 return; | 115 return; |
116 } | 116 } |
117 | 117 |
118 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { | 118 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { |
119 invalidate(); | 119 invalidate(); |
120 return; | 120 return; |
121 } | 121 } |
(...skipping 11 matching lines...) Expand all Loading... |
133 | 133 |
134 RefPtr<FilterEffect> effect = FEBlend::create(filter, m_mode->currentValue()
->enumValue()); | 134 RefPtr<FilterEffect> effect = FEBlend::create(filter, m_mode->currentValue()
->enumValue()); |
135 FilterEffectVector& inputEffects = effect->inputEffects(); | 135 FilterEffectVector& inputEffects = effect->inputEffects(); |
136 inputEffects.reserveCapacity(2); | 136 inputEffects.reserveCapacity(2); |
137 inputEffects.append(input1); | 137 inputEffects.append(input1); |
138 inputEffects.append(input2); | 138 inputEffects.append(input2); |
139 return effect.release(); | 139 return effect.release(); |
140 } | 140 } |
141 | 141 |
142 } | 142 } |
OLD | NEW |