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

Side by Side Diff: Source/core/svg/SVGPatternElement.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/SVGPathElement.cpp ('k') | Source/core/svg/SVGPolyElement.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, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes ); 90 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes );
91 SVGFitToViewBox::addSupportedAttributes(supportedAttributes); 91 SVGFitToViewBox::addSupportedAttributes(supportedAttributes);
92 supportedAttributes.add(SVGNames::patternUnitsAttr); 92 supportedAttributes.add(SVGNames::patternUnitsAttr);
93 supportedAttributes.add(SVGNames::patternContentUnitsAttr); 93 supportedAttributes.add(SVGNames::patternContentUnitsAttr);
94 supportedAttributes.add(SVGNames::patternTransformAttr); 94 supportedAttributes.add(SVGNames::patternTransformAttr);
95 supportedAttributes.add(SVGNames::xAttr); 95 supportedAttributes.add(SVGNames::xAttr);
96 supportedAttributes.add(SVGNames::yAttr); 96 supportedAttributes.add(SVGNames::yAttr);
97 supportedAttributes.add(SVGNames::widthAttr); 97 supportedAttributes.add(SVGNames::widthAttr);
98 supportedAttributes.add(SVGNames::heightAttr); 98 supportedAttributes.add(SVGNames::heightAttr);
99 } 99 }
100 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 100 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
101 } 101 }
102 102
103 void SVGPatternElement::parseAttribute(const QualifiedName& name, const AtomicSt ring& value) 103 void SVGPatternElement::parseAttribute(const QualifiedName& name, const AtomicSt ring& value)
104 { 104 {
105 SVGParsingError parseError = NoError; 105 SVGParsingError parseError = NoError;
106 106
107 if (!isSupportedAttribute(name)) 107 if (!isSupportedAttribute(name))
108 SVGStyledElement::parseAttribute(name, value); 108 SVGStyledElement::parseAttribute(name, value);
109 else if (name == SVGNames::patternUnitsAttr) { 109 else if (name == SVGNames::patternUnitsAttr) {
110 SVGUnitTypes::SVGUnitType propertyValue = SVGPropertyTraits<SVGUnitTypes ::SVGUnitType>::fromString(value); 110 SVGUnitTypes::SVGUnitType propertyValue = SVGPropertyTraits<SVGUnitTypes ::SVGUnitType>::fromString(value);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 bool SVGPatternElement::selfHasRelativeLengths() const 242 bool SVGPatternElement::selfHasRelativeLengths() const
243 { 243 {
244 return x().isRelative() 244 return x().isRelative()
245 || y().isRelative() 245 || y().isRelative()
246 || width().isRelative() 246 || width().isRelative()
247 || height().isRelative(); 247 || height().isRelative();
248 } 248 }
249 249
250 } 250 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathElement.cpp ('k') | Source/core/svg/SVGPolyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698