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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 REGISTER_LOCAL_ANIMATED_PROPERTY(kernelUnitLengthY) | 62 REGISTER_LOCAL_ANIMATED_PROPERTY(kernelUnitLengthY) |
63 REGISTER_LOCAL_ANIMATED_PROPERTY(preserveAlpha) | 63 REGISTER_LOCAL_ANIMATED_PROPERTY(preserveAlpha) |
64 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 64 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
65 END_REGISTER_ANIMATED_PROPERTIES | 65 END_REGISTER_ANIMATED_PROPERTIES |
66 | 66 |
67 inline SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(const QualifiedNam
e& tagName, Document* document) | 67 inline SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(const QualifiedNam
e& tagName, Document* document) |
68 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 68 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
69 , m_edgeMode(EDGEMODE_DUPLICATE) | 69 , m_edgeMode(EDGEMODE_DUPLICATE) |
70 { | 70 { |
71 ASSERT(hasTagName(SVGNames::feConvolveMatrixTag)); | 71 ASSERT(hasTagName(SVGNames::feConvolveMatrixTag)); |
| 72 ScriptWrappable::init(this); |
72 registerAnimatedPropertiesForSVGFEConvolveMatrixElement(); | 73 registerAnimatedPropertiesForSVGFEConvolveMatrixElement(); |
73 } | 74 } |
74 | 75 |
75 PassRefPtr<SVGFEConvolveMatrixElement> SVGFEConvolveMatrixElement::create(const
QualifiedName& tagName, Document* document) | 76 PassRefPtr<SVGFEConvolveMatrixElement> SVGFEConvolveMatrixElement::create(const
QualifiedName& tagName, Document* document) |
76 { | 77 { |
77 return adoptRef(new SVGFEConvolveMatrixElement(tagName, document)); | 78 return adoptRef(new SVGFEConvolveMatrixElement(tagName, document)); |
78 } | 79 } |
79 | 80 |
80 const AtomicString& SVGFEConvolveMatrixElement::kernelUnitLengthXIdentifier() | 81 const AtomicString& SVGFEConvolveMatrixElement::kernelUnitLengthXIdentifier() |
81 { | 82 { |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 IntSize(orderXValue, orderYValue), divisorValue, | 341 IntSize(orderXValue, orderYValue), divisorValue, |
341 bias(), IntPoint(targetXValue, targetYValue), edgeMode(), | 342 bias(), IntPoint(targetXValue, targetYValue), edgeMode(), |
342 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
preserveAlpha(), kernelMatrix); | 343 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
preserveAlpha(), kernelMatrix); |
343 effect->inputEffects().append(input1); | 344 effect->inputEffects().append(input1); |
344 return effect.release(); | 345 return effect.release(); |
345 } | 346 } |
346 | 347 |
347 } // namespace WebCore | 348 } // namespace WebCore |
348 | 349 |
349 #endif // ENABLE(SVG) | 350 #endif // ENABLE(SVG) |
OLD | NEW |