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 28 matching lines...) Expand all Loading... |
39 contextElement->addToPropertyMap(m_systemLanguage); | 39 contextElement->addToPropertyMap(m_systemLanguage); |
40 } | 40 } |
41 | 41 |
42 DEFINE_TRACE(SVGTests) | 42 DEFINE_TRACE(SVGTests) |
43 { | 43 { |
44 visitor->trace(m_requiredFeatures); | 44 visitor->trace(m_requiredFeatures); |
45 visitor->trace(m_requiredExtensions); | 45 visitor->trace(m_requiredExtensions); |
46 visitor->trace(m_systemLanguage); | 46 visitor->trace(m_systemLanguage); |
47 } | 47 } |
48 | 48 |
49 bool SVGTests::hasExtension(const String&) | |
50 { | |
51 // FIXME: Implement me! | |
52 return false; | |
53 } | |
54 | |
55 bool SVGTests::isValid(Document& document) const | 49 bool SVGTests::isValid(Document& document) const |
56 { | 50 { |
57 // No need to check requiredFeatures since hasFeature always returns true. | 51 // No need to check requiredFeatures since hasFeature always returns true. |
58 | 52 |
59 if (m_systemLanguage->isSpecified()) { | 53 if (m_systemLanguage->isSpecified()) { |
60 bool matchFound = false; | 54 bool matchFound = false; |
61 | 55 |
62 const Vector<String>& systemLanguage = m_systemLanguage->value()->values
(); | 56 const Vector<String>& systemLanguage = m_systemLanguage->value()->values
(); |
63 for (const auto& value : systemLanguage) { | 57 for (const auto& value : systemLanguage) { |
64 if (value == defaultLanguage().string().substring(0, 2)) { | 58 if (value == defaultLanguage().string().substring(0, 2)) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 99 } |
106 | 100 |
107 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute
s) | 101 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute
s) |
108 { | 102 { |
109 supportedAttributes.add(SVGNames::requiredFeaturesAttr); | 103 supportedAttributes.add(SVGNames::requiredFeaturesAttr); |
110 supportedAttributes.add(SVGNames::requiredExtensionsAttr); | 104 supportedAttributes.add(SVGNames::requiredExtensionsAttr); |
111 supportedAttributes.add(SVGNames::systemLanguageAttr); | 105 supportedAttributes.add(SVGNames::systemLanguageAttr); |
112 } | 106 } |
113 | 107 |
114 } | 108 } |
OLD | NEW |