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

Side by Side Diff: Source/core/svg/SVGRadialGradientElement.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/SVGPolyElement.cpp ('k') | Source/core/svg/SVGRectElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 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) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 { 75 {
76 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 76 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
77 if (supportedAttributes.isEmpty()) { 77 if (supportedAttributes.isEmpty()) {
78 supportedAttributes.add(SVGNames::cxAttr); 78 supportedAttributes.add(SVGNames::cxAttr);
79 supportedAttributes.add(SVGNames::cyAttr); 79 supportedAttributes.add(SVGNames::cyAttr);
80 supportedAttributes.add(SVGNames::fxAttr); 80 supportedAttributes.add(SVGNames::fxAttr);
81 supportedAttributes.add(SVGNames::fyAttr); 81 supportedAttributes.add(SVGNames::fyAttr);
82 supportedAttributes.add(SVGNames::rAttr); 82 supportedAttributes.add(SVGNames::rAttr);
83 supportedAttributes.add(SVGNames::frAttr); 83 supportedAttributes.add(SVGNames::frAttr);
84 } 84 }
85 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 85 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
86 } 86 }
87 87
88 void SVGRadialGradientElement::parseAttribute(const QualifiedName& name, const A tomicString& value) 88 void SVGRadialGradientElement::parseAttribute(const QualifiedName& name, const A tomicString& value)
89 { 89 {
90 SVGParsingError parseError = NoError; 90 SVGParsingError parseError = NoError;
91 91
92 if (!isSupportedAttribute(name)) 92 if (!isSupportedAttribute(name))
93 SVGGradientElement::parseAttribute(name, value); 93 SVGGradientElement::parseAttribute(name, value);
94 else if (name == SVGNames::cxAttr) 94 else if (name == SVGNames::cxAttr)
95 setCxBaseValue(SVGLength::construct(LengthModeWidth, value, parseError)) ; 95 setCxBaseValue(SVGLength::construct(LengthModeWidth, value, parseError)) ;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 { 211 {
212 return cx().isRelative() 212 return cx().isRelative()
213 || cy().isRelative() 213 || cy().isRelative()
214 || r().isRelative() 214 || r().isRelative()
215 || fx().isRelative() 215 || fx().isRelative()
216 || fy().isRelative() 216 || fy().isRelative()
217 || fr().isRelative(); 217 || fr().isRelative();
218 } 218 }
219 219
220 } 220 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPolyElement.cpp ('k') | Source/core/svg/SVGRectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698