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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 | 56 |
57 bool SVGFEOffsetElement::isSupportedAttribute(const QualifiedName& attrName) | 57 bool SVGFEOffsetElement::isSupportedAttribute(const QualifiedName& attrName) |
58 { | 58 { |
59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
60 if (supportedAttributes.isEmpty()) { | 60 if (supportedAttributes.isEmpty()) { |
61 supportedAttributes.add(SVGNames::inAttr); | 61 supportedAttributes.add(SVGNames::inAttr); |
62 supportedAttributes.add(SVGNames::dxAttr); | 62 supportedAttributes.add(SVGNames::dxAttr); |
63 supportedAttributes.add(SVGNames::dyAttr); | 63 supportedAttributes.add(SVGNames::dyAttr); |
64 } | 64 } |
65 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 65 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
66 } | 66 } |
67 | 67 |
68 void SVGFEOffsetElement::parseAttribute(const QualifiedName& name, const AtomicS
tring& value) | 68 void SVGFEOffsetElement::parseAttribute(const QualifiedName& name, const AtomicS
tring& value) |
69 { | 69 { |
70 if (!isSupportedAttribute(name)) { | 70 if (!isSupportedAttribute(name)) { |
71 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); | 71 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); |
72 return; | 72 return; |
73 } | 73 } |
74 | 74 |
75 if (name == SVGNames::dxAttr) { | 75 if (name == SVGNames::dxAttr) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 if (!input1) | 114 if (!input1) |
115 return 0; | 115 return 0; |
116 | 116 |
117 RefPtr<FilterEffect> effect = FEOffset::create(filter, dx(), dy()); | 117 RefPtr<FilterEffect> effect = FEOffset::create(filter, dx(), dy()); |
118 effect->inputEffects().append(input1); | 118 effect->inputEffects().append(input1); |
119 return effect.release(); | 119 return effect.release(); |
120 } | 120 } |
121 | 121 |
122 } | 122 } |
OLD | NEW |