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

Side by Side Diff: Source/core/svg/SVGClipPathElement.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 bool SVGClipPathElement::isSupportedAttribute(const QualifiedName& attrName) 57 bool SVGClipPathElement::isSupportedAttribute(const QualifiedName& attrName)
58 { 58 {
59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
60 if (supportedAttributes.isEmpty()) { 60 if (supportedAttributes.isEmpty()) {
61 SVGTests::addSupportedAttributes(supportedAttributes); 61 SVGTests::addSupportedAttributes(supportedAttributes);
62 SVGLangSpace::addSupportedAttributes(supportedAttributes); 62 SVGLangSpace::addSupportedAttributes(supportedAttributes);
63 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes ); 63 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes );
64 supportedAttributes.add(SVGNames::clipPathUnitsAttr); 64 supportedAttributes.add(SVGNames::clipPathUnitsAttr);
65 } 65 }
66 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 66 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
67 } 67 }
68 68
69 void SVGClipPathElement::parseAttribute(const QualifiedName& name, const AtomicS tring& value) 69 void SVGClipPathElement::parseAttribute(const QualifiedName& name, const AtomicS tring& value)
70 { 70 {
71 if (!isSupportedAttribute(name)) { 71 if (!isSupportedAttribute(name)) {
72 SVGStyledTransformableElement::parseAttribute(name, value); 72 SVGStyledTransformableElement::parseAttribute(name, value);
73 return; 73 return;
74 } 74 }
75 75
76 if (name == SVGNames::clipPathUnitsAttr) { 76 if (name == SVGNames::clipPathUnitsAttr) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 if (RenderObject* object = renderer()) 113 if (RenderObject* object = renderer())
114 object->setNeedsLayout(true); 114 object->setNeedsLayout(true);
115 } 115 }
116 116
117 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) 117 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*)
118 { 118 {
119 return new (document()->renderArena()) RenderSVGResourceClipper(this); 119 return new (document()->renderArena()) RenderSVGResourceClipper(this);
120 } 120 }
121 121
122 } 122 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGCircleElement.cpp ('k') | Source/core/svg/SVGComponentTransferFunctionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698