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 bool SVGTests::hasExtension(const String&) const | 44 bool SVGTests::hasExtension(SVGTests*, const String&) |
45 { | 45 { |
46 // FIXME: Implement me! | 46 // FIXME: Implement me! |
47 return false; | 47 return false; |
48 } | 48 } |
49 | 49 |
50 bool SVGTests::isValid() const | 50 bool SVGTests::isValid() const |
51 { | 51 { |
52 if (m_requiredFeatures->isSpecified()) { | 52 if (m_requiredFeatures->isSpecified()) { |
53 const Vector<String>& requiredFeatures = m_requiredFeatures->value()->va
lues(); | 53 const Vector<String>& requiredFeatures = m_requiredFeatures->value()->va
lues(); |
54 Vector<String>::const_iterator it = requiredFeatures.begin(); | 54 Vector<String>::const_iterator it = requiredFeatures.begin(); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 | 111 |
112 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute
s) | 112 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute
s) |
113 { | 113 { |
114 supportedAttributes.add(SVGNames::requiredFeaturesAttr); | 114 supportedAttributes.add(SVGNames::requiredFeaturesAttr); |
115 supportedAttributes.add(SVGNames::requiredExtensionsAttr); | 115 supportedAttributes.add(SVGNames::requiredExtensionsAttr); |
116 supportedAttributes.add(SVGNames::systemLanguageAttr); | 116 supportedAttributes.add(SVGNames::systemLanguageAttr); |
117 } | 117 } |
118 | 118 |
119 } | 119 } |
OLD | NEW |