| 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 24 matching lines...) Expand all Loading... |
| 35 , m_requiredExtensions(SVGStaticStringList::create(contextElement, SVGNames:
:requiredExtensionsAttr)) | 35 , m_requiredExtensions(SVGStaticStringList::create(contextElement, SVGNames:
:requiredExtensionsAttr)) |
| 36 , m_systemLanguage(SVGStaticStringList::create(contextElement, SVGNames::sys
temLanguageAttr)) | 36 , m_systemLanguage(SVGStaticStringList::create(contextElement, SVGNames::sys
temLanguageAttr)) |
| 37 { | 37 { |
| 38 ASSERT(contextElement); | 38 ASSERT(contextElement); |
| 39 | 39 |
| 40 contextElement->addToPropertyMap(m_requiredFeatures); | 40 contextElement->addToPropertyMap(m_requiredFeatures); |
| 41 contextElement->addToPropertyMap(m_requiredExtensions); | 41 contextElement->addToPropertyMap(m_requiredExtensions); |
| 42 contextElement->addToPropertyMap(m_systemLanguage); | 42 contextElement->addToPropertyMap(m_systemLanguage); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void SVGTests::trace(Visitor* visitor) |
| 46 { |
| 47 visitor->trace(m_requiredFeatures); |
| 48 visitor->trace(m_requiredExtensions); |
| 49 visitor->trace(m_systemLanguage); |
| 50 } |
| 51 |
| 45 bool SVGTests::hasExtension(const String&) | 52 bool SVGTests::hasExtension(const String&) |
| 46 { | 53 { |
| 47 // FIXME: Implement me! | 54 // FIXME: Implement me! |
| 48 return false; | 55 return false; |
| 49 } | 56 } |
| 50 | 57 |
| 51 bool SVGTests::isValid(Document& document) const | 58 bool SVGTests::isValid(Document& document) const |
| 52 { | 59 { |
| 53 if (m_requiredFeatures->isSpecified()) { | 60 if (m_requiredFeatures->isSpecified()) { |
| 54 const Vector<String>& requiredFeatures = m_requiredFeatures->value()->va
lues(); | 61 const Vector<String>& requiredFeatures = m_requiredFeatures->value()->va
lues(); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 122 } |
| 116 | 123 |
| 117 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute
s) | 124 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute
s) |
| 118 { | 125 { |
| 119 supportedAttributes.add(SVGNames::requiredFeaturesAttr); | 126 supportedAttributes.add(SVGNames::requiredFeaturesAttr); |
| 120 supportedAttributes.add(SVGNames::requiredExtensionsAttr); | 127 supportedAttributes.add(SVGNames::requiredExtensionsAttr); |
| 121 supportedAttributes.add(SVGNames::systemLanguageAttr); | 128 supportedAttributes.add(SVGNames::systemLanguageAttr); |
| 122 } | 129 } |
| 123 | 130 |
| 124 } | 131 } |
| OLD | NEW |