From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/HTMLScriptElement.h | 58 +++++++++++++++++---------------- 1 file changed, 30 insertions(+), 28 deletions(-) (limited to 'Source/WebCore/html/HTMLScriptElement.h') 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 * * 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 create(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted = false); + static Ref 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&) const override; + void addSubresourceAttributeURLs(ListHashSet&) 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 cloneElementWithoutAttributesAndChildren() override; + Ref cloneElementWithoutAttributesAndChildren(Document&) final; }; -NODE_TYPE_CASTS(HTMLScriptElement) - } //namespace - -#endif -- cgit v1.2.1