OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> | 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 bool SVGFEImageElement::isSupportedAttribute(const QualifiedName& attrName) | 112 bool SVGFEImageElement::isSupportedAttribute(const QualifiedName& attrName) |
113 { | 113 { |
114 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 114 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
115 if (supportedAttributes.isEmpty()) { | 115 if (supportedAttributes.isEmpty()) { |
116 SVGURIReference::addSupportedAttributes(supportedAttributes); | 116 SVGURIReference::addSupportedAttributes(supportedAttributes); |
117 SVGLangSpace::addSupportedAttributes(supportedAttributes); | 117 SVGLangSpace::addSupportedAttributes(supportedAttributes); |
118 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); | 118 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); |
119 supportedAttributes.add(SVGNames::preserveAspectRatioAttr); | 119 supportedAttributes.add(SVGNames::preserveAspectRatioAttr); |
120 } | 120 } |
121 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 121 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
122 } | 122 } |
123 | 123 |
124 void SVGFEImageElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) | 124 void SVGFEImageElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) |
125 { | 125 { |
126 if (!isSupportedAttribute(name)) { | 126 if (!isSupportedAttribute(name)) { |
127 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); | 127 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); |
128 return; | 128 return; |
129 } | 129 } |
130 | 130 |
131 if (name == SVGNames::preserveAspectRatioAttr) { | 131 if (name == SVGNames::preserveAspectRatioAttr) { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } | 206 } |
207 | 207 |
208 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st | 208 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st |
209 { | 209 { |
210 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); | 210 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); |
211 | 211 |
212 addSubresourceURL(urls, document()->completeURL(href())); | 212 addSubresourceURL(urls, document()->completeURL(href())); |
213 } | 213 } |
214 | 214 |
215 } | 215 } |
OLD | NEW |