| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 inline SVGFEBlendElement::SVGFEBlendElement(Document& document) | 52 inline SVGFEBlendElement::SVGFEBlendElement(Document& document) |
| 53 : SVGFilterPrimitiveStandardAttributes(SVGNames::feBlendTag, document) | 53 : SVGFilterPrimitiveStandardAttributes(SVGNames::feBlendTag, document) |
| 54 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 54 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
| 55 , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create
())) | 55 , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create
())) |
| 56 , m_mode(SVGAnimatedEnumeration<BlendModeType>::create(this, SVGNames::modeA
ttr, FEBLEND_MODE_NORMAL)) | 56 , m_mode(SVGAnimatedEnumeration<BlendModeType>::create(this, SVGNames::modeA
ttr, FEBLEND_MODE_NORMAL)) |
| 57 { | 57 { |
| 58 ScriptWrappable::init(this); | 58 ScriptWrappable::init(this); |
| 59 addToPropertyMap(m_in1); | 59 addToPropertyMap(m_in1); |
| 60 addToPropertyMap(m_in2); | 60 addToPropertyMap(m_in2); |
| 61 addToPropertyMap(m_mode); | 61 addToPropertyMap(m_mode); |
| 62 registerAnimatedPropertiesForSVGFEBlendElement(); | |
| 63 } | 62 } |
| 64 | 63 |
| 65 PassRefPtr<SVGFEBlendElement> SVGFEBlendElement::create(Document& document) | 64 PassRefPtr<SVGFEBlendElement> SVGFEBlendElement::create(Document& document) |
| 66 { | 65 { |
| 67 return adoptRef(new SVGFEBlendElement(document)); | 66 return adoptRef(new SVGFEBlendElement(document)); |
| 68 } | 67 } |
| 69 | 68 |
| 70 bool SVGFEBlendElement::isSupportedAttribute(const QualifiedName& attrName) | 69 bool SVGFEBlendElement::isSupportedAttribute(const QualifiedName& attrName) |
| 71 { | 70 { |
| 72 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 71 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 140 |
| 142 RefPtr<FilterEffect> effect = FEBlend::create(filter, m_mode->currentValue()
->enumValue()); | 141 RefPtr<FilterEffect> effect = FEBlend::create(filter, m_mode->currentValue()
->enumValue()); |
| 143 FilterEffectVector& inputEffects = effect->inputEffects(); | 142 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 144 inputEffects.reserveCapacity(2); | 143 inputEffects.reserveCapacity(2); |
| 145 inputEffects.append(input1); | 144 inputEffects.append(input1); |
| 146 inputEffects.append(input2); | 145 inputEffects.append(input2); |
| 147 return effect.release(); | 146 return effect.release(); |
| 148 } | 147 } |
| 149 | 148 |
| 150 } | 149 } |
| OLD | NEW |