| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 addToPropertyMap(m_preserveAlpha); | 68 addToPropertyMap(m_preserveAlpha); |
| 69 addToPropertyMap(m_divisor); | 69 addToPropertyMap(m_divisor); |
| 70 addToPropertyMap(m_bias); | 70 addToPropertyMap(m_bias); |
| 71 addToPropertyMap(m_kernelUnitLength); | 71 addToPropertyMap(m_kernelUnitLength); |
| 72 addToPropertyMap(m_kernelMatrix); | 72 addToPropertyMap(m_kernelMatrix); |
| 73 addToPropertyMap(m_in1); | 73 addToPropertyMap(m_in1); |
| 74 addToPropertyMap(m_edgeMode); | 74 addToPropertyMap(m_edgeMode); |
| 75 addToPropertyMap(m_order); | 75 addToPropertyMap(m_order); |
| 76 addToPropertyMap(m_targetX); | 76 addToPropertyMap(m_targetX); |
| 77 addToPropertyMap(m_targetY); | 77 addToPropertyMap(m_targetY); |
| 78 registerAnimatedPropertiesForSVGFEConvolveMatrixElement(); | |
| 79 } | 78 } |
| 80 | 79 |
| 81 PassRefPtr<SVGFEConvolveMatrixElement> SVGFEConvolveMatrixElement::create(Docume
nt& document) | 80 PassRefPtr<SVGFEConvolveMatrixElement> SVGFEConvolveMatrixElement::create(Docume
nt& document) |
| 82 { | 81 { |
| 83 return adoptRef(new SVGFEConvolveMatrixElement(document)); | 82 return adoptRef(new SVGFEConvolveMatrixElement(document)); |
| 84 } | 83 } |
| 85 | 84 |
| 86 bool SVGFEConvolveMatrixElement::isSupportedAttribute(const QualifiedName& attrN
ame) | 85 bool SVGFEConvolveMatrixElement::isSupportedAttribute(const QualifiedName& attrN
ame) |
| 87 { | 86 { |
| 88 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 87 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 250 |
| 252 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, | 251 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, |
| 253 IntSize(orderXValue, orderYValue), divisorValue, | 252 IntSize(orderXValue, orderYValue), divisorValue, |
| 254 m_bias->currentValue()->value(), IntPoint(targetXValue, targ
etYValue), m_edgeMode->currentValue()->enumValue(), | 253 m_bias->currentValue()->value(), IntPoint(targetXValue, targ
etYValue), m_edgeMode->currentValue()->enumValue(), |
| 255 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa
tVector()); | 254 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa
tVector()); |
| 256 effect->inputEffects().append(input1); | 255 effect->inputEffects().append(input1); |
| 257 return effect.release(); | 256 return effect.release(); |
| 258 } | 257 } |
| 259 | 258 |
| 260 } // namespace WebCore | 259 } // namespace WebCore |
| OLD | NEW |