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 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 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 16 matching lines...) Expand all Loading... |
27 namespace blink { | 27 namespace blink { |
28 | 28 |
29 inline SVGFEOffsetElement::SVGFEOffsetElement(Document& document) | 29 inline SVGFEOffsetElement::SVGFEOffsetElement(Document& document) |
30 : SVGFilterPrimitiveStandardAttributes(SVGNames::feOffsetTag, document), | 30 : SVGFilterPrimitiveStandardAttributes(SVGNames::feOffsetTag, document), |
31 m_dx(SVGAnimatedNumber::create(this, | 31 m_dx(SVGAnimatedNumber::create(this, |
32 SVGNames::dxAttr, | 32 SVGNames::dxAttr, |
33 SVGNumber::create())), | 33 SVGNumber::create())), |
34 m_dy(SVGAnimatedNumber::create(this, | 34 m_dy(SVGAnimatedNumber::create(this, |
35 SVGNames::dyAttr, | 35 SVGNames::dyAttr, |
36 SVGNumber::create())), | 36 SVGNumber::create())), |
37 m_in1(SVGAnimatedString::create(this, | 37 m_in1(SVGAnimatedString::create(this, SVGNames::inAttr)) { |
38 SVGNames::inAttr, | |
39 SVGString::create())) { | |
40 addToPropertyMap(m_dx); | 38 addToPropertyMap(m_dx); |
41 addToPropertyMap(m_dy); | 39 addToPropertyMap(m_dy); |
42 addToPropertyMap(m_in1); | 40 addToPropertyMap(m_in1); |
43 } | 41 } |
44 | 42 |
45 DEFINE_TRACE(SVGFEOffsetElement) { | 43 DEFINE_TRACE(SVGFEOffsetElement) { |
46 visitor->trace(m_dx); | 44 visitor->trace(m_dx); |
47 visitor->trace(m_dy); | 45 visitor->trace(m_dy); |
48 visitor->trace(m_in1); | 46 visitor->trace(m_in1); |
49 SVGFilterPrimitiveStandardAttributes::trace(visitor); | 47 SVGFilterPrimitiveStandardAttributes::trace(visitor); |
(...skipping 18 matching lines...) Expand all Loading... |
68 AtomicString(m_in1->currentValue()->value())); | 66 AtomicString(m_in1->currentValue()->value())); |
69 ASSERT(input1); | 67 ASSERT(input1); |
70 | 68 |
71 FilterEffect* effect = FEOffset::create(filter, m_dx->currentValue()->value(), | 69 FilterEffect* effect = FEOffset::create(filter, m_dx->currentValue()->value(), |
72 m_dy->currentValue()->value()); | 70 m_dy->currentValue()->value()); |
73 effect->inputEffects().append(input1); | 71 effect->inputEffects().append(input1); |
74 return effect; | 72 return effect; |
75 } | 73 } |
76 | 74 |
77 } // namespace blink | 75 } // namespace blink |
OLD | NEW |