| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { | 113 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { |
| 114 SVGElement::InvalidationGuard invalidationGuard(this); | 114 SVGElement::InvalidationGuard invalidationGuard(this); |
| 115 invalidate(); | 115 invalidate(); |
| 116 return; | 116 return; |
| 117 } | 117 } |
| 118 | 118 |
| 119 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 119 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
| 120 } | 120 } |
| 121 | 121 |
| 122 PassRefPtrWillBeRawPtr<FilterEffect> SVGFECompositeElement::build(SVGFilterBuild
er* filterBuilder, Filter* filter) | 122 RawPtr<FilterEffect> SVGFECompositeElement::build(SVGFilterBuilder* filterBuilde
r, Filter* filter) |
| 123 { | 123 { |
| 124 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); | 124 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); |
| 125 FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->curr
entValue()->value())); | 125 FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->curr
entValue()->value())); |
| 126 ASSERT(input1 && input2); | 126 ASSERT(input1 && input2); |
| 127 | 127 |
| 128 RefPtrWillBeRawPtr<FilterEffect> effect = FEComposite::create(filter, m_svgO
perator->currentValue()->enumValue(), m_k1->currentValue()->value(), m_k2->curre
ntValue()->value(), m_k3->currentValue()->value(), m_k4->currentValue()->value()
); | 128 RawPtr<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()); |
| 129 FilterEffectVector& inputEffects = effect->inputEffects(); | 129 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 130 inputEffects.reserveCapacity(2); | 130 inputEffects.reserveCapacity(2); |
| 131 inputEffects.append(input1); | 131 inputEffects.append(input1); |
| 132 inputEffects.append(input2); | 132 inputEffects.append(input2); |
| 133 return effect.release(); | 133 return effect.release(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace blink | 136 } // namespace blink |
| OLD | NEW |