| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { | 128 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { |
| 129 SVGElement::InvalidationGuard invalidationGuard(this); | 129 SVGElement::InvalidationGuard invalidationGuard(this); |
| 130 invalidate(); | 130 invalidate(); |
| 131 return; | 131 return; |
| 132 } | 132 } |
| 133 | 133 |
| 134 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 134 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
| 135 } | 135 } |
| 136 | 136 |
| 137 PassRefPtrWillBeRawPtr<FilterEffect> SVGFEBlendElement::build(SVGFilterBuilder*
filterBuilder, Filter* filter) | 137 RawPtr<FilterEffect> SVGFEBlendElement::build(SVGFilterBuilder* filterBuilder, F
ilter* filter) |
| 138 { | 138 { |
| 139 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); | 139 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); |
| 140 FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->curr
entValue()->value())); | 140 FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->curr
entValue()->value())); |
| 141 ASSERT(input1 && input2); | 141 ASSERT(input1 && input2); |
| 142 | 142 |
| 143 RefPtrWillBeRawPtr<FilterEffect> effect = FEBlend::create(filter, toWebBlend
Mode(m_mode->currentValue()->enumValue())); | 143 RawPtr<FilterEffect> effect = FEBlend::create(filter, toWebBlendMode(m_mode-
>currentValue()->enumValue())); |
| 144 FilterEffectVector& inputEffects = effect->inputEffects(); | 144 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 145 inputEffects.reserveCapacity(2); | 145 inputEffects.reserveCapacity(2); |
| 146 inputEffects.append(input1); | 146 inputEffects.append(input1); |
| 147 inputEffects.append(input2); | 147 inputEffects.append(input2); |
| 148 return effect.release(); | 148 return effect.release(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| OLD | NEW |