OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 END_REGISTER_ANIMATED_PROPERTIES | 49 END_REGISTER_ANIMATED_PROPERTIES |
50 | 50 |
51 inline SVGFEDropShadowElement::SVGFEDropShadowElement(const QualifiedName& tagNa
me, Document* document) | 51 inline SVGFEDropShadowElement::SVGFEDropShadowElement(const QualifiedName& tagNa
me, Document* document) |
52 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 52 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
53 , m_dx(2) | 53 , m_dx(2) |
54 , m_dy(2) | 54 , m_dy(2) |
55 , m_stdDeviationX(2) | 55 , m_stdDeviationX(2) |
56 , m_stdDeviationY(2) | 56 , m_stdDeviationY(2) |
57 { | 57 { |
58 ASSERT(hasTagName(SVGNames::feDropShadowTag)); | 58 ASSERT(hasTagName(SVGNames::feDropShadowTag)); |
| 59 ScriptWrappable::init(this); |
59 registerAnimatedPropertiesForSVGFEDropShadowElement(); | 60 registerAnimatedPropertiesForSVGFEDropShadowElement(); |
60 } | 61 } |
61 | 62 |
62 PassRefPtr<SVGFEDropShadowElement> SVGFEDropShadowElement::create(const Qualifie
dName& tagName, Document* document) | 63 PassRefPtr<SVGFEDropShadowElement> SVGFEDropShadowElement::create(const Qualifie
dName& tagName, Document* document) |
63 { | 64 { |
64 return adoptRef(new SVGFEDropShadowElement(tagName, document)); | 65 return adoptRef(new SVGFEDropShadowElement(tagName, document)); |
65 } | 66 } |
66 | 67 |
67 const AtomicString& SVGFEDropShadowElement::stdDeviationXIdentifier() | 68 const AtomicString& SVGFEDropShadowElement::stdDeviationXIdentifier() |
68 { | 69 { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 return 0; | 170 return 0; |
170 | 171 |
171 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX(),
stdDeviationY(), dx(), dy(), color, opacity); | 172 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX(),
stdDeviationY(), dx(), dy(), color, opacity); |
172 effect->inputEffects().append(input1); | 173 effect->inputEffects().append(input1); |
173 return effect.release(); | 174 return effect.release(); |
174 } | 175 } |
175 | 176 |
176 } | 177 } |
177 | 178 |
178 #endif // ENABLE(SVG) | 179 #endif // ENABLE(SVG) |
OLD | NEW |