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

Side by Side Diff: Source/core/svg/SVGImageElement.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/SVGGradientElement.cpp ('k') | Source/core/svg/SVGLineElement.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, 2008, 2009 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> 4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 SVGTests::addSupportedAttributes(supportedAttributes); 79 SVGTests::addSupportedAttributes(supportedAttributes);
80 SVGLangSpace::addSupportedAttributes(supportedAttributes); 80 SVGLangSpace::addSupportedAttributes(supportedAttributes);
81 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes ); 81 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes );
82 SVGURIReference::addSupportedAttributes(supportedAttributes); 82 SVGURIReference::addSupportedAttributes(supportedAttributes);
83 supportedAttributes.add(SVGNames::xAttr); 83 supportedAttributes.add(SVGNames::xAttr);
84 supportedAttributes.add(SVGNames::yAttr); 84 supportedAttributes.add(SVGNames::yAttr);
85 supportedAttributes.add(SVGNames::widthAttr); 85 supportedAttributes.add(SVGNames::widthAttr);
86 supportedAttributes.add(SVGNames::heightAttr); 86 supportedAttributes.add(SVGNames::heightAttr);
87 supportedAttributes.add(SVGNames::preserveAspectRatioAttr); 87 supportedAttributes.add(SVGNames::preserveAspectRatioAttr);
88 } 88 }
89 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 89 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
90 } 90 }
91 91
92 bool SVGImageElement::isPresentationAttribute(const QualifiedName& name) const 92 bool SVGImageElement::isPresentationAttribute(const QualifiedName& name) const
93 { 93 {
94 if (name == SVGNames::widthAttr || name == SVGNames::heightAttr) 94 if (name == SVGNames::widthAttr || name == SVGNames::heightAttr)
95 return true; 95 return true;
96 return SVGStyledTransformableElement::isPresentationAttribute(name); 96 return SVGStyledTransformableElement::isPresentationAttribute(name);
97 } 97 }
98 98
99 void SVGImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style) 99 void SVGImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style)
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 addSubresourceURL(urls, document()->completeURL(href())); 232 addSubresourceURL(urls, document()->completeURL(href()));
233 } 233 }
234 234
235 void SVGImageElement::didMoveToNewDocument(Document* oldDocument) 235 void SVGImageElement::didMoveToNewDocument(Document* oldDocument)
236 { 236 {
237 m_imageLoader.elementDidMoveToNewDocument(); 237 m_imageLoader.elementDidMoveToNewDocument();
238 SVGStyledTransformableElement::didMoveToNewDocument(oldDocument); 238 SVGStyledTransformableElement::didMoveToNewDocument(oldDocument);
239 } 239 }
240 240
241 } 241 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGradientElement.cpp ('k') | Source/core/svg/SVGLineElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698