SVGScriptElement.h [plain text]
#ifndef SVGScriptElement_h
#define SVGScriptElement_h
#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedString.h"
#include "SVGElement.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGURIReference.h"
#include "ScriptElement.h"
namespace WebCore {
class SVGScriptElement : public SVGElement
, public SVGURIReference
, public SVGExternalResourcesRequired
, public ScriptElement {
public:
static PassRefPtr<SVGScriptElement> create(const QualifiedName&, Document*, bool wasInsertedByParser);
String type() const;
void setType(const String&);
private:
SVGScriptElement(const QualifiedName&, Document*, bool wasInsertedByParser, bool alreadyStarted);
virtual void parseMappedAttribute(Attribute*);
virtual void insertedIntoDocument();
virtual void removedFromDocument();
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
virtual void svgAttributeChanged(const QualifiedName&);
virtual void synchronizeProperty(const QualifiedName&);
virtual void fillAttributeToPropertyTypeMap();
virtual AttributeToPropertyTypeMap& attributeToPropertyTypeMap();
virtual bool isURLAttribute(Attribute*) const;
virtual void finishParsingChildren();
virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
virtual bool haveLoadedRequiredResources();
virtual String sourceAttributeValue() const;
virtual String charsetAttributeValue() const;
virtual String typeAttributeValue() const;
virtual String languageAttributeValue() const;
virtual String forAttributeValue() const;
virtual String eventAttributeValue() const;
virtual bool asyncAttributeValue() const;
virtual bool deferAttributeValue() const;
virtual bool hasSourceAttribute() const;
virtual void dispatchLoadEvent();
PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() const;
DECLARE_ANIMATED_STRING(Href, href)
DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
String m_type;
};
}
#endif // ENABLE(SVG)
#endif