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

Side by Side Diff: Source/core/svg/SVGAnimateMotionElement.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/SVGAElement.cpp ('k') | Source/core/svg/SVGAnimateTransformElement.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 * Copyright (C) 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. 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 { 90 {
91 // AnimateMotion does not use attributeName so it is always valid. 91 // AnimateMotion does not use attributeName so it is always valid.
92 return true; 92 return true;
93 } 93 }
94 94
95 bool SVGAnimateMotionElement::isSupportedAttribute(const QualifiedName& attrName ) 95 bool SVGAnimateMotionElement::isSupportedAttribute(const QualifiedName& attrName )
96 { 96 {
97 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 97 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
98 if (supportedAttributes.isEmpty()) 98 if (supportedAttributes.isEmpty())
99 supportedAttributes.add(SVGNames::pathAttr); 99 supportedAttributes.add(SVGNames::pathAttr);
100 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 100 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
101 } 101 }
102 102
103 void SVGAnimateMotionElement::parseAttribute(const QualifiedName& name, const At omicString& value) 103 void SVGAnimateMotionElement::parseAttribute(const QualifiedName& name, const At omicString& value)
104 { 104 {
105 if (!isSupportedAttribute(name)) { 105 if (!isSupportedAttribute(name)) {
106 SVGAnimationElement::parseAttribute(name, value); 106 SVGAnimationElement::parseAttribute(name, value);
107 return; 107 return;
108 } 108 }
109 109
110 if (name == SVGNames::pathAttr) { 110 if (name == SVGNames::pathAttr) {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 326
327 void SVGAnimateMotionElement::updateAnimationMode() 327 void SVGAnimateMotionElement::updateAnimationMode()
328 { 328 {
329 if (!m_animationPath.isEmpty()) 329 if (!m_animationPath.isEmpty())
330 setAnimationMode(PathAnimation); 330 setAnimationMode(PathAnimation);
331 else 331 else
332 SVGAnimationElement::updateAnimationMode(); 332 SVGAnimationElement::updateAnimationMode();
333 } 333 }
334 334
335 } 335 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAElement.cpp ('k') | Source/core/svg/SVGAnimateTransformElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698