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 26 matching lines...) Expand all Loading... |
37 return entries; | 37 return entries; |
38 } | 38 } |
39 | 39 |
40 inline SVGFEDisplacementMapElement::SVGFEDisplacementMapElement( | 40 inline SVGFEDisplacementMapElement::SVGFEDisplacementMapElement( |
41 Document& document) | 41 Document& document) |
42 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDisplacementMapTag, | 42 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDisplacementMapTag, |
43 document), | 43 document), |
44 m_scale(SVGAnimatedNumber::create(this, | 44 m_scale(SVGAnimatedNumber::create(this, |
45 SVGNames::scaleAttr, | 45 SVGNames::scaleAttr, |
46 SVGNumber::create(0))), | 46 SVGNumber::create(0))), |
47 m_in1(SVGAnimatedString::create(this, | 47 m_in1(SVGAnimatedString::create(this, SVGNames::inAttr)), |
48 SVGNames::inAttr, | 48 m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr)), |
49 SVGString::create())), | |
50 m_in2(SVGAnimatedString::create(this, | |
51 SVGNames::in2Attr, | |
52 SVGString::create())), | |
53 m_xChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create( | 49 m_xChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create( |
54 this, | 50 this, |
55 SVGNames::xChannelSelectorAttr, | 51 SVGNames::xChannelSelectorAttr, |
56 CHANNEL_A)), | 52 CHANNEL_A)), |
57 m_yChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create( | 53 m_yChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create( |
58 this, | 54 this, |
59 SVGNames::yChannelSelectorAttr, | 55 SVGNames::yChannelSelectorAttr, |
60 CHANNEL_A)) { | 56 CHANNEL_A)) { |
61 addToPropertyMap(m_scale); | 57 addToPropertyMap(m_scale); |
62 addToPropertyMap(m_in1); | 58 addToPropertyMap(m_in1); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 m_yChannelSelector->currentValue()->enumValue(), | 122 m_yChannelSelector->currentValue()->enumValue(), |
127 m_scale->currentValue()->value()); | 123 m_scale->currentValue()->value()); |
128 FilterEffectVector& inputEffects = effect->inputEffects(); | 124 FilterEffectVector& inputEffects = effect->inputEffects(); |
129 inputEffects.reserveCapacity(2); | 125 inputEffects.reserveCapacity(2); |
130 inputEffects.append(input1); | 126 inputEffects.append(input1); |
131 inputEffects.append(input2); | 127 inputEffects.append(input2); |
132 return effect; | 128 return effect; |
133 } | 129 } |
134 | 130 |
135 } // namespace blink | 131 } // namespace blink |
OLD | NEW |