OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 12 matching lines...) Expand all Loading... |
23 #include "core/svg/SVGFEMergeNodeElement.h" | 23 #include "core/svg/SVGFEMergeNodeElement.h" |
24 | 24 |
25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
26 | 26 |
27 namespace blink { | 27 namespace blink { |
28 | 28 |
29 inline SVGFEMergeNodeElement::SVGFEMergeNodeElement(Document& document) | 29 inline SVGFEMergeNodeElement::SVGFEMergeNodeElement(Document& document) |
30 : SVGElement(SVGNames::feMergeNodeTag, document) | 30 : SVGElement(SVGNames::feMergeNodeTag, document) |
31 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 31 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
32 { | 32 { |
33 ScriptWrappable::init(this); | |
34 addToPropertyMap(m_in1); | 33 addToPropertyMap(m_in1); |
35 } | 34 } |
36 | 35 |
37 DEFINE_NODE_FACTORY(SVGFEMergeNodeElement) | 36 DEFINE_NODE_FACTORY(SVGFEMergeNodeElement) |
38 | 37 |
39 void SVGFEMergeNodeElement::parseAttribute(const QualifiedName& name, const Atom
icString& value) | 38 void SVGFEMergeNodeElement::parseAttribute(const QualifiedName& name, const Atom
icString& value) |
40 { | 39 { |
41 parseAttributeNew(name, value); | 40 parseAttributeNew(name, value); |
42 } | 41 } |
43 | 42 |
44 void SVGFEMergeNodeElement::svgAttributeChanged(const QualifiedName& attrName) | 43 void SVGFEMergeNodeElement::svgAttributeChanged(const QualifiedName& attrName) |
45 { | 44 { |
46 if (attrName == SVGNames::inAttr) { | 45 if (attrName == SVGNames::inAttr) { |
47 SVGElement::InvalidationGuard invalidationGuard(this); | 46 SVGElement::InvalidationGuard invalidationGuard(this); |
48 invalidateFilterPrimitiveParent(this); | 47 invalidateFilterPrimitiveParent(this); |
49 return; | 48 return; |
50 } | 49 } |
51 | 50 |
52 SVGElement::svgAttributeChanged(attrName); | 51 SVGElement::svgAttributeChanged(attrName); |
53 } | 52 } |
54 | 53 |
55 } | 54 } |
OLD | NEW |