| 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 28 matching lines...) Expand all Loading... |
| 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 | 47 // Animated property definitions |
| 48 | 48 |
| 49 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFECompositeElement) | |
| 50 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | |
| 51 END_REGISTER_ANIMATED_PROPERTIES | |
| 52 | 49 |
| 53 inline SVGFECompositeElement::SVGFECompositeElement(Document& document) | 50 inline SVGFECompositeElement::SVGFECompositeElement(Document& document) |
| 54 : SVGFilterPrimitiveStandardAttributes(SVGNames::feCompositeTag, document) | 51 : SVGFilterPrimitiveStandardAttributes(SVGNames::feCompositeTag, document) |
| 55 , m_k1(SVGAnimatedNumber::create(this, SVGNames::k1Attr, SVGNumber::create()
)) | 52 , m_k1(SVGAnimatedNumber::create(this, SVGNames::k1Attr, SVGNumber::create()
)) |
| 56 , m_k2(SVGAnimatedNumber::create(this, SVGNames::k2Attr, SVGNumber::create()
)) | 53 , m_k2(SVGAnimatedNumber::create(this, SVGNames::k2Attr, SVGNumber::create()
)) |
| 57 , m_k3(SVGAnimatedNumber::create(this, SVGNames::k3Attr, SVGNumber::create()
)) | 54 , m_k3(SVGAnimatedNumber::create(this, SVGNames::k3Attr, SVGNumber::create()
)) |
| 58 , m_k4(SVGAnimatedNumber::create(this, SVGNames::k4Attr, SVGNumber::create()
)) | 55 , m_k4(SVGAnimatedNumber::create(this, SVGNames::k4Attr, SVGNumber::create()
)) |
| 59 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 56 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
| 60 , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create
())) | 57 , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create
())) |
| 61 , m_svgOperator(SVGAnimatedEnumeration<CompositeOperationType>::create(this,
SVGNames::operatorAttr, FECOMPOSITE_OPERATOR_OVER)) | 58 , m_svgOperator(SVGAnimatedEnumeration<CompositeOperationType>::create(this,
SVGNames::operatorAttr, FECOMPOSITE_OPERATOR_OVER)) |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 172 |
| 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()); | 173 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(); | 174 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 178 inputEffects.reserveCapacity(2); | 175 inputEffects.reserveCapacity(2); |
| 179 inputEffects.append(input1); | 176 inputEffects.append(input1); |
| 180 inputEffects.append(input2); | 177 inputEffects.append(input2); |
| 181 return effect.release(); | 178 return effect.release(); |
| 182 } | 179 } |
| 183 | 180 |
| 184 } | 181 } |
| OLD | NEW |