OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 26 matching lines...) Expand all Loading... |
37 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_OVER, "over")); | 37 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_OVER, "over")); |
38 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_IN, "in")); | 38 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_IN, "in")); |
39 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_OUT, "out")); | 39 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_OUT, "out")); |
40 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_ATOP, "atop")); | 40 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_ATOP, "atop")); |
41 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_XOR, "xor")); | 41 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_XOR, "xor")); |
42 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_ARITHMETIC, "arithmet
ic")); | 42 entries.append(std::make_pair(FECOMPOSITE_OPERATOR_ARITHMETIC, "arithmet
ic")); |
43 } | 43 } |
44 return entries; | 44 return entries; |
45 } | 45 } |
46 | 46 |
47 // Animated property definitions | |
48 | |
49 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFECompositeElement) | |
50 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | |
51 END_REGISTER_ANIMATED_PROPERTIES | |
52 | |
53 inline SVGFECompositeElement::SVGFECompositeElement(Document& document) | 47 inline SVGFECompositeElement::SVGFECompositeElement(Document& document) |
54 : SVGFilterPrimitiveStandardAttributes(SVGNames::feCompositeTag, document) | 48 : SVGFilterPrimitiveStandardAttributes(SVGNames::feCompositeTag, document) |
55 , m_k1(SVGAnimatedNumber::create(this, SVGNames::k1Attr, SVGNumber::create()
)) | 49 , m_k1(SVGAnimatedNumber::create(this, SVGNames::k1Attr, SVGNumber::create()
)) |
56 , m_k2(SVGAnimatedNumber::create(this, SVGNames::k2Attr, SVGNumber::create()
)) | 50 , m_k2(SVGAnimatedNumber::create(this, SVGNames::k2Attr, SVGNumber::create()
)) |
57 , m_k3(SVGAnimatedNumber::create(this, SVGNames::k3Attr, SVGNumber::create()
)) | 51 , m_k3(SVGAnimatedNumber::create(this, SVGNames::k3Attr, SVGNumber::create()
)) |
58 , m_k4(SVGAnimatedNumber::create(this, SVGNames::k4Attr, SVGNumber::create()
)) | 52 , m_k4(SVGAnimatedNumber::create(this, SVGNames::k4Attr, SVGNumber::create()
)) |
59 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 53 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
60 , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create
())) | 54 , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create
())) |
61 , m_svgOperator(SVGAnimatedEnumeration<CompositeOperationType>::create(this,
SVGNames::operatorAttr, FECOMPOSITE_OPERATOR_OVER)) | 55 , m_svgOperator(SVGAnimatedEnumeration<CompositeOperationType>::create(this,
SVGNames::operatorAttr, FECOMPOSITE_OPERATOR_OVER)) |
62 { | 56 { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 169 |
176 RefPtr<FilterEffect> effect = FEComposite::create(filter, m_svgOperator->cur
rentValue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->v
alue(), m_k3->currentValue()->value(), m_k4->currentValue()->value()); | 170 RefPtr<FilterEffect> effect = FEComposite::create(filter, m_svgOperator->cur
rentValue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->v
alue(), m_k3->currentValue()->value(), m_k4->currentValue()->value()); |
177 FilterEffectVector& inputEffects = effect->inputEffects(); | 171 FilterEffectVector& inputEffects = effect->inputEffects(); |
178 inputEffects.reserveCapacity(2); | 172 inputEffects.reserveCapacity(2); |
179 inputEffects.append(input1); | 173 inputEffects.append(input1); |
180 inputEffects.append(input2); | 174 inputEffects.append(input2); |
181 return effect.release(); | 175 return effect.release(); |
182 } | 176 } |
183 | 177 |
184 } | 178 } |
OLD | NEW |