| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 REGISTER_LOCAL_ANIMATED_PROPERTY(scale) | 45 REGISTER_LOCAL_ANIMATED_PROPERTY(scale) |
| 46 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 46 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
| 47 END_REGISTER_ANIMATED_PROPERTIES | 47 END_REGISTER_ANIMATED_PROPERTIES |
| 48 | 48 |
| 49 inline SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(const QualifiedN
ame& tagName, Document* document) | 49 inline SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(const QualifiedN
ame& tagName, Document* document) |
| 50 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 50 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
| 51 , m_xChannelSelector(CHANNEL_A) | 51 , m_xChannelSelector(CHANNEL_A) |
| 52 , m_yChannelSelector(CHANNEL_A) | 52 , m_yChannelSelector(CHANNEL_A) |
| 53 { | 53 { |
| 54 ASSERT(hasTagName(SVGNames::feDisplacementMapTag)); | 54 ASSERT(hasTagName(SVGNames::feDisplacementMapTag)); |
| 55 ScriptWrappable::init(this); |
| 55 registerAnimatedPropertiesForSVGFEDisplacementMapElement(); | 56 registerAnimatedPropertiesForSVGFEDisplacementMapElement(); |
| 56 } | 57 } |
| 57 | 58 |
| 58 PassRefPtr<SVGFEDisplacementMapElement> SVGFEDisplacementMapElement::create(cons
t QualifiedName& tagName, Document* document) | 59 PassRefPtr<SVGFEDisplacementMapElement> SVGFEDisplacementMapElement::create(cons
t QualifiedName& tagName, Document* document) |
| 59 { | 60 { |
| 60 return adoptRef(new SVGFEDisplacementMapElement(tagName, document)); | 61 return adoptRef(new SVGFEDisplacementMapElement(tagName, document)); |
| 61 } | 62 } |
| 62 | 63 |
| 63 bool SVGFEDisplacementMapElement::isSupportedAttribute(const QualifiedName& attr
Name) | 64 bool SVGFEDisplacementMapElement::isSupportedAttribute(const QualifiedName& attr
Name) |
| 64 { | 65 { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 FilterEffectVector& inputEffects = effect->inputEffects(); | 161 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 161 inputEffects.reserveCapacity(2); | 162 inputEffects.reserveCapacity(2); |
| 162 inputEffects.append(input1); | 163 inputEffects.append(input1); |
| 163 inputEffects.append(input2); | 164 inputEffects.append(input2); |
| 164 return effect.release(); | 165 return effect.release(); |
| 165 } | 166 } |
| 166 | 167 |
| 167 } | 168 } |
| 168 | 169 |
| 169 #endif // ENABLE(SVG) | 170 #endif // ENABLE(SVG) |
| OLD | NEW |