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 28 matching lines...) Expand all Loading... |
39 entries.append(std::make_pair(EDGEMODE_UNKNOWN, emptyString())); | 39 entries.append(std::make_pair(EDGEMODE_UNKNOWN, emptyString())); |
40 entries.append(std::make_pair(EDGEMODE_DUPLICATE, "duplicate")); | 40 entries.append(std::make_pair(EDGEMODE_DUPLICATE, "duplicate")); |
41 entries.append(std::make_pair(EDGEMODE_WRAP, "wrap")); | 41 entries.append(std::make_pair(EDGEMODE_WRAP, "wrap")); |
42 entries.append(std::make_pair(EDGEMODE_NONE, "none")); | 42 entries.append(std::make_pair(EDGEMODE_NONE, "none")); |
43 } | 43 } |
44 return entries; | 44 return entries; |
45 } | 45 } |
46 | 46 |
47 // Animated property definitions | 47 // Animated property definitions |
48 | 48 |
49 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEConvolveMatrixElement) | |
50 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | |
51 END_REGISTER_ANIMATED_PROPERTIES | |
52 | 49 |
53 inline SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(Document& document
) | 50 inline SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(Document& document
) |
54 : SVGFilterPrimitiveStandardAttributes(SVGNames::feConvolveMatrixTag, docume
nt) | 51 : SVGFilterPrimitiveStandardAttributes(SVGNames::feConvolveMatrixTag, docume
nt) |
55 , m_bias(SVGAnimatedNumber::create(this, SVGNames::biasAttr, SVGNumber::crea
te())) | 52 , m_bias(SVGAnimatedNumber::create(this, SVGNames::biasAttr, SVGNumber::crea
te())) |
56 , m_divisor(SVGAnimatedNumber::create(this, SVGNames::divisorAttr, SVGNumber
::create())) | 53 , m_divisor(SVGAnimatedNumber::create(this, SVGNames::divisorAttr, SVGNumber
::create())) |
57 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 54 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
58 , m_edgeMode(SVGAnimatedEnumeration<EdgeModeType>::create(this, SVGNames::ed
geModeAttr, EDGEMODE_DUPLICATE)) | 55 , m_edgeMode(SVGAnimatedEnumeration<EdgeModeType>::create(this, SVGNames::ed
geModeAttr, EDGEMODE_DUPLICATE)) |
59 , m_kernelMatrix(SVGAnimatedNumberList::create(this, SVGNames::kernelMatrixA
ttr, SVGNumberList::create())) | 56 , m_kernelMatrix(SVGAnimatedNumberList::create(this, SVGNames::kernelMatrixA
ttr, SVGNumberList::create())) |
60 , m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create(this, SVGNames:
:kernelUnitLengthAttr)) | 57 , m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create(this, SVGNames:
:kernelUnitLengthAttr)) |
61 , m_order(SVGAnimatedIntegerOptionalInteger::create(this, SVGNames::orderAtt
r)) | 58 , m_order(SVGAnimatedIntegerOptionalInteger::create(this, SVGNames::orderAtt
r)) |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 247 |
251 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, | 248 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, |
252 IntSize(orderXValue, orderYValue), divisorValue, | 249 IntSize(orderXValue, orderYValue), divisorValue, |
253 m_bias->currentValue()->value(), IntPoint(targetXValue, targ
etYValue), m_edgeMode->currentValue()->enumValue(), | 250 m_bias->currentValue()->value(), IntPoint(targetXValue, targ
etYValue), m_edgeMode->currentValue()->enumValue(), |
254 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa
tVector()); | 251 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue),
m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa
tVector()); |
255 effect->inputEffects().append(input1); | 252 effect->inputEffects().append(input1); |
256 return effect.release(); | 253 return effect.release(); |
257 } | 254 } |
258 | 255 |
259 } // namespace WebCore | 256 } // namespace WebCore |
OLD | NEW |