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

Side by Side Diff: Source/core/svg/SVGScriptElement.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/SVGRectElement.cpp ('k') | Source/core/svg/SVGStopElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 bool SVGScriptElement::isSupportedAttribute(const QualifiedName& attrName) 59 bool SVGScriptElement::isSupportedAttribute(const QualifiedName& attrName)
60 { 60 {
61 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 61 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
62 if (supportedAttributes.isEmpty()) { 62 if (supportedAttributes.isEmpty()) {
63 SVGURIReference::addSupportedAttributes(supportedAttributes); 63 SVGURIReference::addSupportedAttributes(supportedAttributes);
64 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes ); 64 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes );
65 supportedAttributes.add(SVGNames::typeAttr); 65 supportedAttributes.add(SVGNames::typeAttr);
66 supportedAttributes.add(HTMLNames::onerrorAttr); 66 supportedAttributes.add(HTMLNames::onerrorAttr);
67 } 67 }
68 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 68 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
69 } 69 }
70 70
71 void SVGScriptElement::parseAttribute(const QualifiedName& name, const AtomicStr ing& value) 71 void SVGScriptElement::parseAttribute(const QualifiedName& name, const AtomicStr ing& value)
72 { 72 {
73 if (!isSupportedAttribute(name)) { 73 if (!isSupportedAttribute(name)) {
74 SVGElement::parseAttribute(name, value); 74 SVGElement::parseAttribute(name, value);
75 return; 75 return;
76 } 76 }
77 77
78 if (name == SVGNames::typeAttr) { 78 if (name == SVGNames::typeAttr) {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 { 203 {
204 return hasAttribute(XLinkNames::hrefAttr); 204 return hasAttribute(XLinkNames::hrefAttr);
205 } 205 }
206 206
207 PassRefPtr<Element> SVGScriptElement::cloneElementWithoutAttributesAndChildren() 207 PassRefPtr<Element> SVGScriptElement::cloneElementWithoutAttributesAndChildren()
208 { 208 {
209 return adoptRef(new SVGScriptElement(tagQName(), document(), false, alreadyS tarted())); 209 return adoptRef(new SVGScriptElement(tagQName(), document(), false, alreadyS tarted()));
210 } 210 }
211 211
212 } 212 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRectElement.cpp ('k') | Source/core/svg/SVGStopElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698