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

Side by Side Diff: Source/core/svg/SVGFilterPrimitiveStandardAttributes.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/SVGFilterElement.cpp ('k') | Source/core/svg/SVGForeignObjectElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 bool SVGFilterPrimitiveStandardAttributes::isSupportedAttribute(const QualifiedN ame& attrName) 63 bool SVGFilterPrimitiveStandardAttributes::isSupportedAttribute(const QualifiedN ame& attrName)
64 { 64 {
65 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 65 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
66 if (supportedAttributes.isEmpty()) { 66 if (supportedAttributes.isEmpty()) {
67 supportedAttributes.add(SVGNames::xAttr); 67 supportedAttributes.add(SVGNames::xAttr);
68 supportedAttributes.add(SVGNames::yAttr); 68 supportedAttributes.add(SVGNames::yAttr);
69 supportedAttributes.add(SVGNames::widthAttr); 69 supportedAttributes.add(SVGNames::widthAttr);
70 supportedAttributes.add(SVGNames::heightAttr); 70 supportedAttributes.add(SVGNames::heightAttr);
71 supportedAttributes.add(SVGNames::resultAttr); 71 supportedAttributes.add(SVGNames::resultAttr);
72 } 72 }
73 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 73 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
74 } 74 }
75 75
76 void SVGFilterPrimitiveStandardAttributes::parseAttribute(const QualifiedName& n ame, const AtomicString& value) 76 void SVGFilterPrimitiveStandardAttributes::parseAttribute(const QualifiedName& n ame, const AtomicString& value)
77 { 77 {
78 SVGParsingError parseError = NoError; 78 SVGParsingError parseError = NoError;
79 79
80 if (!isSupportedAttribute(name)) 80 if (!isSupportedAttribute(name))
81 SVGStyledElement::parseAttribute(name, value); 81 SVGStyledElement::parseAttribute(name, value);
82 else if (name == SVGNames::xAttr) 82 else if (name == SVGNames::xAttr)
83 setXBaseValue(SVGLength::construct(LengthModeWidth, value, parseError)); 83 setXBaseValue(SVGLength::construct(LengthModeWidth, value, parseError));
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 return; 161 return;
162 162
163 RenderObject* renderer = parent->renderer(); 163 RenderObject* renderer = parent->renderer();
164 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) 164 if (!renderer || !renderer->isSVGResourceFilterPrimitive())
165 return; 165 return;
166 166
167 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, fals e); 167 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, fals e);
168 } 168 }
169 169
170 } 170 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFilterElement.cpp ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698