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

Side by Side Diff: Source/core/svg/SVGStyleElement.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/SVGStopElement.cpp ('k') | Source/core/svg/SVGStyledTransformableElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Apple Inc. All rights reserved. 4 * Copyright (C) 2006 Apple Inc. All rights reserved.
5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 setAttribute(SVGNames::titleAttr, title); 97 setAttribute(SVGNames::titleAttr, title);
98 } 98 }
99 99
100 bool SVGStyleElement::isSupportedAttribute(const QualifiedName& attrName) 100 bool SVGStyleElement::isSupportedAttribute(const QualifiedName& attrName)
101 { 101 {
102 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 102 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
103 if (supportedAttributes.isEmpty()) { 103 if (supportedAttributes.isEmpty()) {
104 SVGLangSpace::addSupportedAttributes(supportedAttributes); 104 SVGLangSpace::addSupportedAttributes(supportedAttributes);
105 supportedAttributes.add(SVGNames::titleAttr); 105 supportedAttributes.add(SVGNames::titleAttr);
106 } 106 }
107 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato r>(attrName); 107 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
108 } 108 }
109 109
110 void SVGStyleElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value) 110 void SVGStyleElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value)
111 { 111 {
112 if (!isSupportedAttribute(name)) { 112 if (!isSupportedAttribute(name)) {
113 SVGElement::parseAttribute(name, value); 113 SVGElement::parseAttribute(name, value);
114 return; 114 return;
115 } 115 }
116 116
117 if (name == SVGNames::titleAttr) { 117 if (name == SVGNames::titleAttr) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 StyleElement::removedFromDocument(document(), this); 152 StyleElement::removedFromDocument(document(), this);
153 } 153 }
154 154
155 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) 155 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
156 { 156 {
157 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 157 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta);
158 StyleElement::childrenChanged(this); 158 StyleElement::childrenChanged(this);
159 } 159 }
160 160
161 } 161 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGStopElement.cpp ('k') | Source/core/svg/SVGStyledTransformableElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698