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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 supportedAttributes.add(SVGNames::orderAttr); | 108 supportedAttributes.add(SVGNames::orderAttr); |
109 supportedAttributes.add(SVGNames::kernelMatrixAttr); | 109 supportedAttributes.add(SVGNames::kernelMatrixAttr); |
110 supportedAttributes.add(SVGNames::edgeModeAttr); | 110 supportedAttributes.add(SVGNames::edgeModeAttr); |
111 supportedAttributes.add(SVGNames::divisorAttr); | 111 supportedAttributes.add(SVGNames::divisorAttr); |
112 supportedAttributes.add(SVGNames::biasAttr); | 112 supportedAttributes.add(SVGNames::biasAttr); |
113 supportedAttributes.add(SVGNames::targetXAttr); | 113 supportedAttributes.add(SVGNames::targetXAttr); |
114 supportedAttributes.add(SVGNames::targetYAttr); | 114 supportedAttributes.add(SVGNames::targetYAttr); |
115 supportedAttributes.add(SVGNames::kernelUnitLengthAttr); | 115 supportedAttributes.add(SVGNames::kernelUnitLengthAttr); |
116 supportedAttributes.add(SVGNames::preserveAlphaAttr); | 116 supportedAttributes.add(SVGNames::preserveAlphaAttr); |
117 } | 117 } |
118 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 118 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
119 } | 119 } |
120 | 120 |
121 void SVGFEConvolveMatrixElement::parseAttribute(const QualifiedName& name, const
AtomicString& value) | 121 void SVGFEConvolveMatrixElement::parseAttribute(const QualifiedName& name, const
AtomicString& value) |
122 { | 122 { |
123 if (!isSupportedAttribute(name)) { | 123 if (!isSupportedAttribute(name)) { |
124 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); | 124 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); |
125 return; | 125 return; |
126 } | 126 } |
127 | 127 |
128 if (name == SVGNames::inAttr) { | 128 if (name == SVGNames::inAttr) { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 337 |
338 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, | 338 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, |
339 IntSize(orderXValue, orderYValue), divisorValue, | 339 IntSize(orderXValue, orderYValue), divisorValue, |
340 bias(), IntPoint(targetXValue, targetYValue), edgeMode(), | 340 bias(), IntPoint(targetXValue, targetYValue), edgeMode(), |
341 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
preserveAlpha(), kernelMatrix); | 341 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
preserveAlpha(), kernelMatrix); |
342 effect->inputEffects().append(input1); | 342 effect->inputEffects().append(input1); |
343 return effect.release(); | 343 return effect.release(); |
344 } | 344 } |
345 | 345 |
346 } // namespace WebCore | 346 } // namespace WebCore |
OLD | NEW |