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

Side by Side Diff: Source/core/svg/SVGMaskElement.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/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGPathElement.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) 2005 Alexander Kellett <lypanov@kde.org> 4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009-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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 SVGTests::addSupportedAttributes(supportedAttributes); 81 SVGTests::addSupportedAttributes(supportedAttributes);
82 SVGLangSpace::addSupportedAttributes(supportedAttributes); 82 SVGLangSpace::addSupportedAttributes(supportedAttributes);
83 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes ); 83 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes );
84 supportedAttributes.add(SVGNames::maskUnitsAttr); 84 supportedAttributes.add(SVGNames::maskUnitsAttr);
85 supportedAttributes.add(SVGNames::maskContentUnitsAttr); 85 supportedAttributes.add(SVGNames::maskContentUnitsAttr);
86 supportedAttributes.add(SVGNames::xAttr); 86 supportedAttributes.add(SVGNames::xAttr);
87 supportedAttributes.add(SVGNames::yAttr); 87 supportedAttributes.add(SVGNames::yAttr);
88 supportedAttributes.add(SVGNames::widthAttr); 88 supportedAttributes.add(SVGNames::widthAttr);
89 supportedAttributes.add(SVGNames::heightAttr); 89 supportedAttributes.add(SVGNames::heightAttr);
90 } 90 }
91 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 91 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
92 } 92 }
93 93
94 void SVGMaskElement::parseAttribute(const QualifiedName& name, const AtomicStrin g& value) 94 void SVGMaskElement::parseAttribute(const QualifiedName& name, const AtomicStrin g& value)
95 { 95 {
96 SVGParsingError parseError = NoError; 96 SVGParsingError parseError = NoError;
97 97
98 if (!isSupportedAttribute(name)) 98 if (!isSupportedAttribute(name))
99 SVGStyledElement::parseAttribute(name, value); 99 SVGStyledElement::parseAttribute(name, value);
100 else if (name == SVGNames::maskUnitsAttr) { 100 else if (name == SVGNames::maskUnitsAttr) {
101 SVGUnitTypes::SVGUnitType propertyValue = SVGPropertyTraits<SVGUnitTypes ::SVGUnitType>::fromString(value); 101 SVGUnitTypes::SVGUnitType propertyValue = SVGPropertyTraits<SVGUnitTypes ::SVGUnitType>::fromString(value);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 bool SVGMaskElement::selfHasRelativeLengths() const 162 bool SVGMaskElement::selfHasRelativeLengths() const
163 { 163 {
164 return x().isRelative() 164 return x().isRelative()
165 || y().isRelative() 165 || y().isRelative()
166 || width().isRelative() 166 || width().isRelative()
167 || height().isRelative(); 167 || height().isRelative();
168 } 168 }
169 169
170 } 170 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698