OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Oliver Hunt <oliver@nerget.com> | 2 * Copyright (C) 2006 Oliver Hunt <oliver@nerget.com> |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 , m_xChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create(thi
s, SVGNames::xChannelSelectorAttr, CHANNEL_A)) | 55 , m_xChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create(thi
s, SVGNames::xChannelSelectorAttr, CHANNEL_A)) |
56 , m_yChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create(thi
s, SVGNames::yChannelSelectorAttr, CHANNEL_A)) | 56 , m_yChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create(thi
s, SVGNames::yChannelSelectorAttr, CHANNEL_A)) |
57 { | 57 { |
58 ScriptWrappable::init(this); | 58 ScriptWrappable::init(this); |
59 | 59 |
60 addToPropertyMap(m_scale); | 60 addToPropertyMap(m_scale); |
61 addToPropertyMap(m_in1); | 61 addToPropertyMap(m_in1); |
62 addToPropertyMap(m_in2); | 62 addToPropertyMap(m_in2); |
63 addToPropertyMap(m_xChannelSelector); | 63 addToPropertyMap(m_xChannelSelector); |
64 addToPropertyMap(m_yChannelSelector); | 64 addToPropertyMap(m_yChannelSelector); |
65 registerAnimatedPropertiesForSVGFEDisplacementMapElement(); | |
66 } | 65 } |
67 | 66 |
68 PassRefPtr<SVGFEDisplacementMapElement> SVGFEDisplacementMapElement::create(Docu
ment& document) | 67 PassRefPtr<SVGFEDisplacementMapElement> SVGFEDisplacementMapElement::create(Docu
ment& document) |
69 { | 68 { |
70 return adoptRef(new SVGFEDisplacementMapElement(document)); | 69 return adoptRef(new SVGFEDisplacementMapElement(document)); |
71 } | 70 } |
72 | 71 |
73 bool SVGFEDisplacementMapElement::isSupportedAttribute(const QualifiedName& attr
Name) | 72 bool SVGFEDisplacementMapElement::isSupportedAttribute(const QualifiedName& attr
Name) |
74 { | 73 { |
75 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 74 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 153 |
155 RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSe
lector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumVal
ue(), m_scale->currentValue()->value()); | 154 RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSe
lector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumVal
ue(), m_scale->currentValue()->value()); |
156 FilterEffectVector& inputEffects = effect->inputEffects(); | 155 FilterEffectVector& inputEffects = effect->inputEffects(); |
157 inputEffects.reserveCapacity(2); | 156 inputEffects.reserveCapacity(2); |
158 inputEffects.append(input1); | 157 inputEffects.append(input1); |
159 inputEffects.append(input2); | 158 inputEffects.append(input2); |
160 return effect.release(); | 159 return effect.release(); |
161 } | 160 } |
162 | 161 |
163 } | 162 } |
OLD | NEW |