diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/HTMLScriptElement.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/html/HTMLScriptElement.h')
-rw-r--r-- | Source/WebCore/html/HTMLScriptElement.h | 58 |
1 files changed, 30 insertions, 28 deletions
diff --git a/Source/WebCore/html/HTMLScriptElement.h b/Source/WebCore/html/HTMLScriptElement.h index 04512bfcf..7abbd351f 100644 --- a/Source/WebCore/html/HTMLScriptElement.h +++ b/Source/WebCore/html/HTMLScriptElement.h @@ -1,7 +1,7 @@ /* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) - * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2003-2017 Inc. All rights reserved. * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> * * This library is free software; you can redistribute it and/or @@ -21,8 +21,7 @@ * */ -#ifndef HTMLScriptElement_h -#define HTMLScriptElement_h +#pragma once #include "HTMLElement.h" #include "ScriptElement.h" @@ -31,45 +30,48 @@ namespace WebCore { class HTMLScriptElement final : public HTMLElement, public ScriptElement { public: - static PassRefPtr<HTMLScriptElement> create(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted = false); + static Ref<HTMLScriptElement> create(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted = false); String text() const { return scriptContent(); } - void setText(const String&); + WEBCORE_EXPORT void setText(const String&); URL src() const; - void setAsync(bool); - bool async() const; + WEBCORE_EXPORT void setAsync(bool); + WEBCORE_EXPORT bool async() const; + + WEBCORE_EXPORT void setCrossOrigin(const AtomicString&); + WEBCORE_EXPORT String crossOrigin() const; + + using HTMLElement::ref; + using HTMLElement::deref; private: HTMLScriptElement(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - virtual InsertionNotificationRequest insertedInto(ContainerNode&) override; - virtual void didNotifySubtreeInsertions(ContainerNode*) override; - virtual void childrenChanged(const ChildChange&) override; + void parseAttribute(const QualifiedName&, const AtomicString&) final; + InsertionNotificationRequest insertedInto(ContainerNode&) final; + void finishedInsertingSubtree() final; + void childrenChanged(const ChildChange&) final; - virtual bool isURLAttribute(const Attribute&) const override; + bool isURLAttribute(const Attribute&) const final; - virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const override; + void addSubresourceAttributeURLs(ListHashSet<URL>&) const final; - virtual String sourceAttributeValue() const override; - virtual String charsetAttributeValue() const override; - virtual String typeAttributeValue() const override; - virtual String languageAttributeValue() const override; - virtual String forAttributeValue() const override; - virtual String eventAttributeValue() const override; - virtual bool asyncAttributeValue() const override; - virtual bool deferAttributeValue() const override; - virtual bool hasSourceAttribute() const override; + 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; - virtual void dispatchLoadEvent() override; + void dispatchLoadEvent() final; - virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() override; + Ref<Element> cloneElementWithoutAttributesAndChildren(Document&) final; }; -NODE_TYPE_CASTS(HTMLScriptElement) - } //namespace - -#endif |