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

Side by Side Diff: Source/core/svg/SVGTextContentElement.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/SVGTRefElement.cpp ('k') | Source/core/svg/SVGTextElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 bool SVGTextContentElement::isSupportedAttribute(const QualifiedName& attrName) 214 bool SVGTextContentElement::isSupportedAttribute(const QualifiedName& attrName)
215 { 215 {
216 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 216 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
217 if (supportedAttributes.isEmpty()) { 217 if (supportedAttributes.isEmpty()) {
218 SVGTests::addSupportedAttributes(supportedAttributes); 218 SVGTests::addSupportedAttributes(supportedAttributes);
219 SVGLangSpace::addSupportedAttributes(supportedAttributes); 219 SVGLangSpace::addSupportedAttributes(supportedAttributes);
220 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes ); 220 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes );
221 supportedAttributes.add(SVGNames::lengthAdjustAttr); 221 supportedAttributes.add(SVGNames::lengthAdjustAttr);
222 supportedAttributes.add(SVGNames::textLengthAttr); 222 supportedAttributes.add(SVGNames::textLengthAttr);
223 } 223 }
224 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 224 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
225 } 225 }
226 226
227 bool SVGTextContentElement::isPresentationAttribute(const QualifiedName& name) c onst 227 bool SVGTextContentElement::isPresentationAttribute(const QualifiedName& name) c onst
228 { 228 {
229 if (name.matches(XMLNames::spaceAttr)) 229 if (name.matches(XMLNames::spaceAttr))
230 return true; 230 return true;
231 return SVGStyledElement::isPresentationAttribute(name); 231 return SVGStyledElement::isPresentationAttribute(name);
232 } 232 }
233 233
234 void SVGTextContentElement::collectStyleForPresentationAttribute(const Qualified Name& name, const AtomicString& value, MutableStylePropertySet* style) 234 void SVGTextContentElement::collectStyleForPresentationAttribute(const Qualified Name& name, const AtomicString& value, MutableStylePropertySet* style)
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 && !node->hasTagName(SVGNames::altGlyphTag) 311 && !node->hasTagName(SVGNames::altGlyphTag)
312 #endif 312 #endif
313 && !node->hasTagName(SVGNames::trefTag) 313 && !node->hasTagName(SVGNames::trefTag)
314 && !node->hasTagName(SVGNames::textPathTag)) 314 && !node->hasTagName(SVGNames::textPathTag))
315 return 0; 315 return 0;
316 316
317 return static_cast<SVGTextContentElement*>(node); 317 return static_cast<SVGTextContentElement*>(node);
318 } 318 }
319 319
320 } 320 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTRefElement.cpp ('k') | Source/core/svg/SVGTextElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698