SVGScriptElement.h [plain text]
#pragma once
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedString.h"
#include "SVGElement.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGURIReference.h"
#include "ScriptElement.h"
namespace WebCore {
class SVGScriptElement final : public SVGElement, public SVGURIReference, public SVGExternalResourcesRequired, public ScriptElement {
public:
static Ref<SVGScriptElement> create(const QualifiedName&, Document&, bool wasInsertedByParser);
using SVGElement::ref;
using SVGElement::deref;
private:
SVGScriptElement(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted);
void parseAttribute(const QualifiedName&, const AtomicString&) final;
InsertionNotificationRequest insertedInto(ContainerNode&) final;
void finishedInsertingSubtree() final;
void childrenChanged(const ChildChange&) final;
void svgAttributeChanged(const QualifiedName&) final;
bool isURLAttribute(const Attribute&) const final;
void finishParsingChildren() final;
void addSubresourceAttributeURLs(ListHashSet<URL>&) const final;
bool haveLoadedRequiredResources() final { return SVGExternalResourcesRequired::haveLoadedRequiredResources(); }
String sourceAttributeValue() const final;
String charsetAttributeValue() const final;
String typeAttributeValue() const final;
String languageAttributeValue() const final;
String forAttributeValue() const final;
String eventAttributeValue() const final;
bool hasAsyncAttribute() const final;
bool hasDeferAttribute() const final;
bool hasNoModuleAttribute() const final;
bool hasSourceAttribute() const final;
void dispatchLoadEvent() final { SVGExternalResourcesRequired::dispatchLoadEvent(this); }
Ref<Element> cloneElementWithoutAttributesAndChildren(Document&) final;
bool rendererIsNeeded(const RenderStyle&) final { return false; }
void setHaveFiredLoadEvent(bool haveFiredLoadEvent) final { ScriptElement::setHaveFiredLoadEvent(haveFiredLoadEvent); }
bool isParserInserted() const final { return ScriptElement::isParserInserted(); }
bool haveFiredLoadEvent() const final { return ScriptElement::haveFiredLoadEvent(); }
Timer* svgLoadEventTimer() final { return &m_svgLoadEventTimer; }
#ifndef NDEBUG
bool filterOutAnimatableAttribute(const QualifiedName&) const final;
#endif
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement)
DECLARE_ANIMATED_STRING_OVERRIDE(Href, href)
DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
Timer m_svgLoadEventTimer;
};
}