| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 return composite->setOperation(m_svgOperator->currentValue()->enumValue(
)); | 86 return composite->setOperation(m_svgOperator->currentValue()->enumValue(
)); |
| 87 if (attrName == SVGNames::k1Attr) | 87 if (attrName == SVGNames::k1Attr) |
| 88 return composite->setK1(m_k1->currentValue()->value()); | 88 return composite->setK1(m_k1->currentValue()->value()); |
| 89 if (attrName == SVGNames::k2Attr) | 89 if (attrName == SVGNames::k2Attr) |
| 90 return composite->setK2(m_k2->currentValue()->value()); | 90 return composite->setK2(m_k2->currentValue()->value()); |
| 91 if (attrName == SVGNames::k3Attr) | 91 if (attrName == SVGNames::k3Attr) |
| 92 return composite->setK3(m_k3->currentValue()->value()); | 92 return composite->setK3(m_k3->currentValue()->value()); |
| 93 if (attrName == SVGNames::k4Attr) | 93 if (attrName == SVGNames::k4Attr) |
| 94 return composite->setK4(m_k4->currentValue()->value()); | 94 return composite->setK4(m_k4->currentValue()->value()); |
| 95 | 95 |
| 96 ASSERT_NOT_REACHED(); | 96 return SVGFilterPrimitiveStandardAttributes::setFilterEffectAttribute(effect
, attrName); |
| 97 return false; | |
| 98 } | 97 } |
| 99 | 98 |
| 100 | 99 |
| 101 void SVGFECompositeElement::svgAttributeChanged(const QualifiedName& attrName) | 100 void SVGFECompositeElement::svgAttributeChanged(const QualifiedName& attrName) |
| 102 { | 101 { |
| 103 if (attrName == SVGNames::operatorAttr | 102 if (attrName == SVGNames::operatorAttr |
| 104 || attrName == SVGNames::k1Attr | 103 || attrName == SVGNames::k1Attr |
| 105 || attrName == SVGNames::k2Attr | 104 || attrName == SVGNames::k2Attr |
| 106 || attrName == SVGNames::k3Attr | 105 || attrName == SVGNames::k3Attr |
| 107 || attrName == SVGNames::k4Attr) { | 106 || attrName == SVGNames::k4Attr) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 127 | 126 |
| 128 FilterEffect* effect = FEComposite::create(filter, m_svgOperator->currentVal
ue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->value(),
m_k3->currentValue()->value(), m_k4->currentValue()->value()); | 127 FilterEffect* effect = FEComposite::create(filter, m_svgOperator->currentVal
ue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->value(),
m_k3->currentValue()->value(), m_k4->currentValue()->value()); |
| 129 FilterEffectVector& inputEffects = effect->inputEffects(); | 128 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 130 inputEffects.reserveCapacity(2); | 129 inputEffects.reserveCapacity(2); |
| 131 inputEffects.append(input1); | 130 inputEffects.append(input1); |
| 132 inputEffects.append(input2); | 131 inputEffects.append(input2); |
| 133 return effect; | 132 return effect; |
| 134 } | 133 } |
| 135 | 134 |
| 136 } // namespace blink | 135 } // namespace blink |
| OLD | NEW |