#ifndef SVGTests_h
#define SVGTests_h
#include "core/svg/SVGStaticStringList.h"
#include "wtf/HashSet.h"
namespace WebCore {
class Attribute;
class QualifiedName;
class SVGElement;
class SVGTests {
public:
static SVGStringListTearOff* requiredFeatures(SVGTests& object) { return object.m_requiredFeatures->tearOff(); }
static SVGStringListTearOff* requiredExtensions(SVGTests& object) { return object.m_requiredExtensions->tearOff(); }
static SVGStringListTearOff* systemLanguage(SVGTests& object) { return object.m_systemLanguage->tearOff(); }
static bool hasExtension(SVGTests&, const String&);
bool isValid() const;
bool parseAttribute(const QualifiedName&, const AtomicString&);
bool isKnownAttribute(const QualifiedName&);
void addSupportedAttributes(HashSet<QualifiedName>&);
protected:
SVGTests(SVGElement* contextElement);
private:
RefPtr<SVGStaticStringList> m_requiredFeatures;
RefPtr<SVGStaticStringList> m_requiredExtensions;
RefPtr<SVGStaticStringList> m_systemLanguage;
};
}
#endif