OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 return false; | 155 return false; |
156 } | 156 } |
157 | 157 |
158 void SVGFEConvolveMatrixElement::svgAttributeChanged(const QualifiedName& attrNa
me) | 158 void SVGFEConvolveMatrixElement::svgAttributeChanged(const QualifiedName& attrNa
me) |
159 { | 159 { |
160 if (!isSupportedAttribute(attrName)) { | 160 if (!isSupportedAttribute(attrName)) { |
161 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 161 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
162 return; | 162 return; |
163 } | 163 } |
164 | 164 |
165 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 165 SVGElement::InvalidationGuard invalidationGuard(this); |
166 | 166 |
167 if (attrName == SVGNames::edgeModeAttr | 167 if (attrName == SVGNames::edgeModeAttr |
168 || attrName == SVGNames::divisorAttr | 168 || attrName == SVGNames::divisorAttr |
169 || attrName == SVGNames::biasAttr | 169 || attrName == SVGNames::biasAttr |
170 || attrName == SVGNames::targetXAttr | 170 || attrName == SVGNames::targetXAttr |
171 || attrName == SVGNames::targetYAttr | 171 || attrName == SVGNames::targetYAttr |
172 || attrName == SVGNames::kernelUnitLengthAttr | 172 || attrName == SVGNames::kernelUnitLengthAttr |
173 || attrName == SVGNames::preserveAlphaAttr) { | 173 || attrName == SVGNames::preserveAlphaAttr) { |
174 primitiveAttributeChanged(attrName); | 174 primitiveAttributeChanged(attrName); |
175 return; | 175 return; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, | 244 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, |
245 IntSize(orderXValue, orderYValue), divisorValue, | 245 IntSize(orderXValue, orderYValue), divisorValue, |
246 m_bias->currentValue()->value(), IntPoint(targetXValue, targ
etYValue), m_edgeMode->currentValue()->enumValue(), | 246 m_bias->currentValue()->value(), IntPoint(targetXValue, targ
etYValue), m_edgeMode->currentValue()->enumValue(), |
247 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa
tVector()); | 247 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa
tVector()); |
248 effect->inputEffects().append(input1); | 248 effect->inputEffects().append(input1); |
249 return effect.release(); | 249 return effect.release(); |
250 } | 250 } |
251 | 251 |
252 } // namespace WebCore | 252 } // namespace WebCore |
OLD | NEW |