Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: Source/core/svg/SVGFEMorphologyElement.cpp

Issue 17045008: HashSet: reverse the order of the template arguments at alternate 'find', 'contains' and 'add' meth… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/svg/SVGFEMergeNodeElement.cpp ('k') | Source/core/svg/SVGFEOffsetElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEMergeNodeElement.cpp ('k') | Source/core/svg/SVGFEOffsetElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698