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

Side by Side Diff: Source/core/svg/SVGMPathElement.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/SVGLinearGradientElement.cpp ('k') | Source/core/svg/SVGMarkerElement.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 clearResourceReferences(); 103 clearResourceReferences();
104 } 104 }
105 105
106 bool SVGMPathElement::isSupportedAttribute(const QualifiedName& attrName) 106 bool SVGMPathElement::isSupportedAttribute(const QualifiedName& attrName)
107 { 107 {
108 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 108 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
109 if (supportedAttributes.isEmpty()) { 109 if (supportedAttributes.isEmpty()) {
110 SVGURIReference::addSupportedAttributes(supportedAttributes); 110 SVGURIReference::addSupportedAttributes(supportedAttributes);
111 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes ); 111 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes );
112 } 112 }
113 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 113 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
114 } 114 }
115 115
116 void SVGMPathElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value) 116 void SVGMPathElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value)
117 { 117 {
118 if (!isSupportedAttribute(name)) { 118 if (!isSupportedAttribute(name)) {
119 SVGElement::parseAttribute(name, value); 119 SVGElement::parseAttribute(name, value);
120 return; 120 return;
121 } 121 }
122 122
123 if (SVGURIReference::parseAttribute(name, value)) 123 if (SVGURIReference::parseAttribute(name, value))
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 notifyParentOfPathChange(parentNode()); 161 notifyParentOfPathChange(parentNode());
162 } 162 }
163 163
164 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) 164 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent)
165 { 165 {
166 if (parent && parent->hasTagName(SVGNames::animateMotionTag)) 166 if (parent && parent->hasTagName(SVGNames::animateMotionTag))
167 static_cast<SVGAnimateMotionElement*>(parent)->updateAnimationPath(); 167 static_cast<SVGAnimateMotionElement*>(parent)->updateAnimationPath();
168 } 168 }
169 169
170 } // namespace WebCore 170 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLinearGradientElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698