OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |