OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 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 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 23 matching lines...) Expand all Loading... |
34 , m_requiredExtensions(SVGStaticStringList::create(contextElement, SVGNames:
:requiredExtensionsAttr)) | 34 , m_requiredExtensions(SVGStaticStringList::create(contextElement, SVGNames:
:requiredExtensionsAttr)) |
35 , m_systemLanguage(SVGStaticStringList::create(contextElement, SVGNames::sys
temLanguageAttr)) | 35 , m_systemLanguage(SVGStaticStringList::create(contextElement, SVGNames::sys
temLanguageAttr)) |
36 { | 36 { |
37 ASSERT(contextElement); | 37 ASSERT(contextElement); |
38 | 38 |
39 contextElement->addToPropertyMap(m_requiredFeatures); | 39 contextElement->addToPropertyMap(m_requiredFeatures); |
40 contextElement->addToPropertyMap(m_requiredExtensions); | 40 contextElement->addToPropertyMap(m_requiredExtensions); |
41 contextElement->addToPropertyMap(m_systemLanguage); | 41 contextElement->addToPropertyMap(m_systemLanguage); |
42 } | 42 } |
43 | 43 |
| 44 void SVGTests::trace(Visitor* visitor) |
| 45 { |
| 46 visitor->trace(m_requiredFeatures); |
| 47 visitor->trace(m_requiredExtensions); |
| 48 visitor->trace(m_systemLanguage); |
| 49 } |
| 50 |
44 bool SVGTests::hasExtension(const String&) | 51 bool SVGTests::hasExtension(const String&) |
45 { | 52 { |
46 // FIXME: Implement me! | 53 // FIXME: Implement me! |
47 return false; | 54 return false; |
48 } | 55 } |
49 | 56 |
50 bool SVGTests::isValid() const | 57 bool SVGTests::isValid() const |
51 { | 58 { |
52 if (m_requiredFeatures->isSpecified()) { | 59 if (m_requiredFeatures->isSpecified()) { |
53 const Vector<String>& requiredFeatures = m_requiredFeatures->value()->va
lues(); | 60 const Vector<String>& requiredFeatures = m_requiredFeatures->value()->va
lues(); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 117 } |
111 | 118 |
112 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute
s) | 119 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute
s) |
113 { | 120 { |
114 supportedAttributes.add(SVGNames::requiredFeaturesAttr); | 121 supportedAttributes.add(SVGNames::requiredFeaturesAttr); |
115 supportedAttributes.add(SVGNames::requiredExtensionsAttr); | 122 supportedAttributes.add(SVGNames::requiredExtensionsAttr); |
116 supportedAttributes.add(SVGNames::systemLanguageAttr); | 123 supportedAttributes.add(SVGNames::systemLanguageAttr); |
117 } | 124 } |
118 | 125 |
119 } | 126 } |
OLD | NEW |