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