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

Side by Side Diff: Source/core/svg/SVGTextPositioningElement.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/SVGTextPathElement.cpp ('k') | Source/core/svg/SVGUseElement.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, 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa me) 57 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa me)
58 { 58 {
59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
60 if (supportedAttributes.isEmpty()) { 60 if (supportedAttributes.isEmpty()) {
61 supportedAttributes.add(SVGNames::xAttr); 61 supportedAttributes.add(SVGNames::xAttr);
62 supportedAttributes.add(SVGNames::yAttr); 62 supportedAttributes.add(SVGNames::yAttr);
63 supportedAttributes.add(SVGNames::dxAttr); 63 supportedAttributes.add(SVGNames::dxAttr);
64 supportedAttributes.add(SVGNames::dyAttr); 64 supportedAttributes.add(SVGNames::dyAttr);
65 supportedAttributes.add(SVGNames::rotateAttr); 65 supportedAttributes.add(SVGNames::rotateAttr);
66 } 66 }
67 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 67 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
68 } 68 }
69 69
70 void SVGTextPositioningElement::parseAttribute(const QualifiedName& name, const AtomicString& value) 70 void SVGTextPositioningElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
71 { 71 {
72 if (!isSupportedAttribute(name)) { 72 if (!isSupportedAttribute(name)) {
73 SVGTextContentElement::parseAttribute(name, value); 73 SVGTextContentElement::parseAttribute(name, value);
74 return; 74 return;
75 } 75 }
76 76
77 if (name == SVGNames::xAttr) { 77 if (name == SVGNames::xAttr) {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 #if ENABLE(SVG_FONTS) 165 #if ENABLE(SVG_FONTS)
166 && !node->hasTagName(SVGNames::altGlyphTag) 166 && !node->hasTagName(SVGNames::altGlyphTag)
167 #endif 167 #endif
168 && !node->hasTagName(SVGNames::trefTag)) 168 && !node->hasTagName(SVGNames::trefTag))
169 return 0; 169 return 0;
170 170
171 return static_cast<SVGTextPositioningElement*>(node); 171 return static_cast<SVGTextPositioningElement*>(node);
172 } 172 }
173 173
174 } 174 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextPathElement.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698