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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 , m_divisor(SVGAnimatedNumber::create(this, SVGNames::divisorAttr, SVGNumber
::create())) | 48 , m_divisor(SVGAnimatedNumber::create(this, SVGNames::divisorAttr, SVGNumber
::create())) |
49 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 49 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
50 , m_edgeMode(SVGAnimatedEnumeration<EdgeModeType>::create(this, SVGNames::ed
geModeAttr, EDGEMODE_DUPLICATE)) | 50 , m_edgeMode(SVGAnimatedEnumeration<EdgeModeType>::create(this, SVGNames::ed
geModeAttr, EDGEMODE_DUPLICATE)) |
51 , m_kernelMatrix(SVGAnimatedNumberList::create(this, SVGNames::kernelMatrixA
ttr, SVGNumberList::create())) | 51 , m_kernelMatrix(SVGAnimatedNumberList::create(this, SVGNames::kernelMatrixA
ttr, SVGNumberList::create())) |
52 , m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create(this, SVGNames:
:kernelUnitLengthAttr)) | 52 , m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create(this, SVGNames:
:kernelUnitLengthAttr)) |
53 , m_order(SVGAnimatedIntegerOptionalInteger::create(this, SVGNames::orderAtt
r)) | 53 , m_order(SVGAnimatedIntegerOptionalInteger::create(this, SVGNames::orderAtt
r)) |
54 , m_preserveAlpha(SVGAnimatedBoolean::create(this, SVGNames::preserveAlphaAt
tr, SVGBoolean::create())) | 54 , m_preserveAlpha(SVGAnimatedBoolean::create(this, SVGNames::preserveAlphaAt
tr, SVGBoolean::create())) |
55 , m_targetX(SVGAnimatedInteger::create(this, SVGNames::targetXAttr, SVGInteg
er::create())) | 55 , m_targetX(SVGAnimatedInteger::create(this, SVGNames::targetXAttr, SVGInteg
er::create())) |
56 , m_targetY(SVGAnimatedInteger::create(this, SVGNames::targetYAttr, SVGInteg
er::create())) | 56 , m_targetY(SVGAnimatedInteger::create(this, SVGNames::targetYAttr, SVGInteg
er::create())) |
57 { | 57 { |
58 ScriptWrappable::init(this); | |
59 | |
60 addToPropertyMap(m_preserveAlpha); | 58 addToPropertyMap(m_preserveAlpha); |
61 addToPropertyMap(m_divisor); | 59 addToPropertyMap(m_divisor); |
62 addToPropertyMap(m_bias); | 60 addToPropertyMap(m_bias); |
63 addToPropertyMap(m_kernelUnitLength); | 61 addToPropertyMap(m_kernelUnitLength); |
64 addToPropertyMap(m_kernelMatrix); | 62 addToPropertyMap(m_kernelMatrix); |
65 addToPropertyMap(m_in1); | 63 addToPropertyMap(m_in1); |
66 addToPropertyMap(m_edgeMode); | 64 addToPropertyMap(m_edgeMode); |
67 addToPropertyMap(m_order); | 65 addToPropertyMap(m_order); |
68 addToPropertyMap(m_targetX); | 66 addToPropertyMap(m_targetX); |
69 addToPropertyMap(m_targetY); | 67 addToPropertyMap(m_targetY); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 237 |
240 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, | 238 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, |
241 IntSize(orderXValue, orderYValue), divisorValue, | 239 IntSize(orderXValue, orderYValue), divisorValue, |
242 m_bias->currentValue()->value(), IntPoint(targetXValue, targ
etYValue), m_edgeMode->currentValue()->enumValue(), | 240 m_bias->currentValue()->value(), IntPoint(targetXValue, targ
etYValue), m_edgeMode->currentValue()->enumValue(), |
243 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa
tVector()); | 241 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa
tVector()); |
244 effect->inputEffects().append(input1); | 242 effect->inputEffects().append(input1); |
245 return effect.release(); | 243 return effect.release(); |
246 } | 244 } |
247 | 245 |
248 } // namespace blink | 246 } // namespace blink |
OLD | NEW |