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

Side by Side Diff: Source/core/svg/SVGFEImageElement.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/SVGFEGaussianBlurElement.cpp ('k') | Source/core/svg/SVGFELightElement.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) 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 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 bool SVGFEImageElement::isSupportedAttribute(const QualifiedName& attrName) 112 bool SVGFEImageElement::isSupportedAttribute(const QualifiedName& attrName)
113 { 113 {
114 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 114 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
115 if (supportedAttributes.isEmpty()) { 115 if (supportedAttributes.isEmpty()) {
116 SVGURIReference::addSupportedAttributes(supportedAttributes); 116 SVGURIReference::addSupportedAttributes(supportedAttributes);
117 SVGLangSpace::addSupportedAttributes(supportedAttributes); 117 SVGLangSpace::addSupportedAttributes(supportedAttributes);
118 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes ); 118 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes );
119 supportedAttributes.add(SVGNames::preserveAspectRatioAttr); 119 supportedAttributes.add(SVGNames::preserveAspectRatioAttr);
120 } 120 }
121 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 121 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
122 } 122 }
123 123
124 void SVGFEImageElement::parseAttribute(const QualifiedName& name, const AtomicSt ring& value) 124 void SVGFEImageElement::parseAttribute(const QualifiedName& name, const AtomicSt ring& value)
125 { 125 {
126 if (!isSupportedAttribute(name)) { 126 if (!isSupportedAttribute(name)) {
127 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); 127 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value);
128 return; 128 return;
129 } 129 }
130 130
131 if (name == SVGNames::preserveAspectRatioAttr) { 131 if (name == SVGNames::preserveAspectRatioAttr) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con st 208 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con st
209 { 209 {
210 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); 210 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls);
211 211
212 addSubresourceURL(urls, document()->completeURL(href())); 212 addSubresourceURL(urls, document()->completeURL(href()));
213 } 213 }
214 214
215 } 215 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEGaussianBlurElement.cpp ('k') | Source/core/svg/SVGFELightElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698