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, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2010 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 14 matching lines...) Expand all Loading... |
25 #include "wtf/HashSet.h" | 25 #include "wtf/HashSet.h" |
26 | 26 |
27 namespace WebCore { | 27 namespace WebCore { |
28 | 28 |
29 class Attribute; | 29 class Attribute; |
30 class QualifiedName; | 30 class QualifiedName; |
31 class SVGElement; | 31 class SVGElement; |
32 | 32 |
33 class SVGTests { | 33 class SVGTests { |
34 public: | 34 public: |
35 SVGStringListTearOff* requiredFeatures() { return m_requiredFeatures->tearOf
f(); } | 35 static SVGStringListTearOff* requiredFeatures(SVGTests* object) { return obj
ect->m_requiredFeatures->tearOff(); } |
36 SVGStringListTearOff* requiredExtensions() { return m_requiredExtensions->te
arOff(); } | 36 static SVGStringListTearOff* requiredExtensions(SVGTests* object) { return o
bject->m_requiredExtensions->tearOff(); } |
37 SVGStringListTearOff* systemLanguage() { return m_systemLanguage->tearOff();
} | 37 static SVGStringListTearOff* systemLanguage(SVGTests* object) { return objec
t->m_systemLanguage->tearOff(); } |
38 | 38 |
39 bool hasExtension(const String&) const; | 39 static bool hasExtension(SVGTests*, const String&); |
40 bool isValid() const; | 40 bool isValid() const; |
41 | 41 |
42 bool parseAttribute(const QualifiedName&, const AtomicString&); | 42 bool parseAttribute(const QualifiedName&, const AtomicString&); |
43 bool isKnownAttribute(const QualifiedName&); | 43 bool isKnownAttribute(const QualifiedName&); |
44 | 44 |
45 void addSupportedAttributes(HashSet<QualifiedName>&); | 45 void addSupportedAttributes(HashSet<QualifiedName>&); |
46 | 46 |
47 protected: | 47 protected: |
48 SVGTests(SVGElement* contextElement); | 48 SVGTests(SVGElement* contextElement); |
49 | 49 |
50 private: | 50 private: |
51 RefPtr<SVGStaticStringList> m_requiredFeatures; | 51 RefPtr<SVGStaticStringList> m_requiredFeatures; |
52 RefPtr<SVGStaticStringList> m_requiredExtensions; | 52 RefPtr<SVGStaticStringList> m_requiredExtensions; |
53 RefPtr<SVGStaticStringList> m_systemLanguage; | 53 RefPtr<SVGStaticStringList> m_systemLanguage; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace WebCore | 56 } // namespace WebCore |
57 | 57 |
58 #endif // SVGTests_h | 58 #endif // SVGTests_h |
OLD | NEW |