OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 77 } |
78 | 78 |
79 bool SVGFEMorphologyElement::isSupportedAttribute(const QualifiedName& attrName) | 79 bool SVGFEMorphologyElement::isSupportedAttribute(const QualifiedName& attrName) |
80 { | 80 { |
81 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 81 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
82 if (supportedAttributes.isEmpty()) { | 82 if (supportedAttributes.isEmpty()) { |
83 supportedAttributes.add(SVGNames::inAttr); | 83 supportedAttributes.add(SVGNames::inAttr); |
84 supportedAttributes.add(SVGNames::operatorAttr); | 84 supportedAttributes.add(SVGNames::operatorAttr); |
85 supportedAttributes.add(SVGNames::radiusAttr); | 85 supportedAttributes.add(SVGNames::radiusAttr); |
86 } | 86 } |
87 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 87 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
88 } | 88 } |
89 | 89 |
90 void SVGFEMorphologyElement::parseAttribute(const QualifiedName& name, const Ato
micString& value) | 90 void SVGFEMorphologyElement::parseAttribute(const QualifiedName& name, const Ato
micString& value) |
91 { | 91 { |
92 if (!isSupportedAttribute(name)) { | 92 if (!isSupportedAttribute(name)) { |
93 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); | 93 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); |
94 return; | 94 return; |
95 } | 95 } |
96 | 96 |
97 if (name == SVGNames::operatorAttr) { | 97 if (name == SVGNames::operatorAttr) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 if (xRadius < 0 || yRadius < 0) | 168 if (xRadius < 0 || yRadius < 0) |
169 return 0; | 169 return 0; |
170 | 170 |
171 RefPtr<FilterEffect> effect = FEMorphology::create(filter, _operator(), xRad
ius, yRadius); | 171 RefPtr<FilterEffect> effect = FEMorphology::create(filter, _operator(), xRad
ius, yRadius); |
172 effect->inputEffects().append(input1); | 172 effect->inputEffects().append(input1); |
173 return effect.release(); | 173 return effect.release(); |
174 } | 174 } |
175 | 175 |
176 } // namespace WebCore | 176 } // namespace WebCore |
OLD | NEW |