| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 DEFINE_NODE_FACTORY(SVGFEColorMatrixElement) | 60 DEFINE_NODE_FACTORY(SVGFEColorMatrixElement) |
| 61 | 61 |
| 62 bool SVGFEColorMatrixElement::setFilterEffectAttribute(FilterEffect* effect, con
st QualifiedName& attrName) | 62 bool SVGFEColorMatrixElement::setFilterEffectAttribute(FilterEffect* effect, con
st QualifiedName& attrName) |
| 63 { | 63 { |
| 64 FEColorMatrix* colorMatrix = static_cast<FEColorMatrix*>(effect); | 64 FEColorMatrix* colorMatrix = static_cast<FEColorMatrix*>(effect); |
| 65 if (attrName == SVGNames::typeAttr) | 65 if (attrName == SVGNames::typeAttr) |
| 66 return colorMatrix->setType(m_type->currentValue()->enumValue()); | 66 return colorMatrix->setType(m_type->currentValue()->enumValue()); |
| 67 if (attrName == SVGNames::valuesAttr) | 67 if (attrName == SVGNames::valuesAttr) |
| 68 return colorMatrix->setValues(m_values->currentValue()->toFloatVector())
; | 68 return colorMatrix->setValues(m_values->currentValue()->toFloatVector())
; |
| 69 | 69 |
| 70 ASSERT_NOT_REACHED(); | 70 return SVGFilterPrimitiveStandardAttributes::setFilterEffectAttribute(effect
, attrName); |
| 71 return false; | |
| 72 } | 71 } |
| 73 | 72 |
| 74 void SVGFEColorMatrixElement::svgAttributeChanged(const QualifiedName& attrName) | 73 void SVGFEColorMatrixElement::svgAttributeChanged(const QualifiedName& attrName) |
| 75 { | 74 { |
| 76 if (attrName == SVGNames::typeAttr || attrName == SVGNames::valuesAttr) { | 75 if (attrName == SVGNames::typeAttr || attrName == SVGNames::valuesAttr) { |
| 77 SVGElement::InvalidationGuard invalidationGuard(this); | 76 SVGElement::InvalidationGuard invalidationGuard(this); |
| 78 primitiveAttributeChanged(attrName); | 77 primitiveAttributeChanged(attrName); |
| 79 return; | 78 return; |
| 80 } | 79 } |
| 81 | 80 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 99 effect->inputEffects().append(input1); | 98 effect->inputEffects().append(input1); |
| 100 return effect; | 99 return effect; |
| 101 } | 100 } |
| 102 | 101 |
| 103 bool SVGFEColorMatrixElement::taintsOrigin(bool inputsTaintOrigin) const | 102 bool SVGFEColorMatrixElement::taintsOrigin(bool inputsTaintOrigin) const |
| 104 { | 103 { |
| 105 return inputsTaintOrigin; | 104 return inputsTaintOrigin; |
| 106 } | 105 } |
| 107 | 106 |
| 108 } // namespace blink | 107 } // namespace blink |
| OLD | NEW |