webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Protected Member Functions | List of all members
WebCore::ScriptElement Class Referenceabstract

#include <ScriptElement.h>

Inheritance diagram for WebCore::ScriptElement:
WebCore::HTMLScriptElement WebCore::HTMLScriptElement WebCore::SVGScriptElement

Public Types

enum  LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeInTypeAttribute, DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeInTypeAttribute }
 
enum  ScriptType { ScriptType::Classic, ScriptType::Module, ScriptType::Classic, ScriptType::Module }
 
enum  LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeInTypeAttribute, DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeInTypeAttribute }
 
enum  ScriptType { ScriptType::Classic, ScriptType::Module, ScriptType::Classic, ScriptType::Module }
 

Public Member Functions

virtual ~ScriptElement ()
 
Elementelement ()
 
const Elementelement () const
 
bool prepareScript (const TextPosition &scriptStartPosition=TextPosition(), LegacyTypeSupport=DisallowLegacyTypeInTypeAttribute)
 
String scriptCharset () const
 
WEBCORE_EXPORT String scriptContent () const
 
void executeClassicScript (const ScriptSourceCode &)
 
void executeModuleScript (LoadableModuleScript &)
 
void executePendingScript (PendingScript &)
 
virtual void dispatchLoadEvent ()=0
 
void dispatchErrorEvent ()
 
bool haveFiredLoadEvent () const
 
bool willBeParserExecuted () const
 
bool readyToBeParserExecuted () const
 
bool willExecuteWhenDocumentFinishedParsing () const
 
bool willExecuteInOrder () const
 
LoadableScriptloadableScript ()
 
ScriptType scriptType () const
 
void ref ()
 
void deref ()
 
virtual ~ScriptElement ()
 
Elementelement ()
 
const Elementelement () const
 
bool prepareScript (const TextPosition &scriptStartPosition=TextPosition(), LegacyTypeSupport=DisallowLegacyTypeInTypeAttribute)
 
String scriptCharset () const
 
WEBCORE_EXPORT String scriptContent () const
 
void executeClassicScript (const ScriptSourceCode &)
 
void executeModuleScript (LoadableModuleScript &)
 
void executePendingScript (PendingScript &)
 
virtual void dispatchLoadEvent ()=0
 
void dispatchErrorEvent ()
 
bool haveFiredLoadEvent () const
 
bool willBeParserExecuted () const
 
bool readyToBeParserExecuted () const
 
bool willExecuteWhenDocumentFinishedParsing () const
 
bool willExecuteInOrder () const
 
LoadableScriptloadableScript ()
 
ScriptType scriptType () const
 
void ref ()
 
void deref ()
 

Protected Member Functions

 ScriptElement (Element &, bool createdByParser, bool isEvaluated)
 
void setHaveFiredLoadEvent (bool haveFiredLoad)
 
bool isParserInserted () const
 
bool alreadyStarted () const
 
bool forceAsync () const
 
bool shouldCallFinishedInsertingSubtree (ContainerNode &)
 
void finishedInsertingSubtree ()
 
void childrenChanged (const ContainerNode::ChildChange &)
 
void handleSourceAttribute (const String &sourceURL)
 
void handleAsyncAttribute ()
 
 ScriptElement (Element &, bool createdByParser, bool isEvaluated)
 
void setHaveFiredLoadEvent (bool haveFiredLoad)
 
bool isParserInserted () const
 
bool alreadyStarted () const
 
bool forceAsync () const
 
bool shouldCallFinishedInsertingSubtree (ContainerNode &)
 
void finishedInsertingSubtree ()
 
void childrenChanged (const ContainerNode::ChildChange &)
 
void handleSourceAttribute (const String &sourceURL)
 
void handleAsyncAttribute ()
 

Member Enumeration Documentation

◆ LegacyTypeSupport [1/2]

Enumerator
DisallowLegacyTypeInTypeAttribute 
AllowLegacyTypeInTypeAttribute 
DisallowLegacyTypeInTypeAttribute 
AllowLegacyTypeInTypeAttribute 

◆ LegacyTypeSupport [2/2]

Enumerator
DisallowLegacyTypeInTypeAttribute 
AllowLegacyTypeInTypeAttribute 
DisallowLegacyTypeInTypeAttribute 
AllowLegacyTypeInTypeAttribute 

◆ ScriptType [1/2]

Enumerator
Classic 
Module 
Classic 
Module 

◆ ScriptType [2/2]

Enumerator
Classic 
Module 
Classic 
Module 

Constructor & Destructor Documentation

◆ ~ScriptElement() [1/2]

virtual WebCore::ScriptElement::~ScriptElement ( )
inlinevirtual

◆ ScriptElement() [1/2]

WebCore::ScriptElement::ScriptElement ( Element element,
bool  createdByParser,
bool  isEvaluated 
)
protected

◆ ~ScriptElement() [2/2]

virtual WebCore::ScriptElement::~ScriptElement ( )
inlinevirtual

◆ ScriptElement() [2/2]

WebCore::ScriptElement::ScriptElement ( Element ,
bool  createdByParser,
bool  isEvaluated 
)
protected

Member Function Documentation

◆ alreadyStarted() [1/2]

bool WebCore::ScriptElement::alreadyStarted ( ) const
inlineprotected

◆ alreadyStarted() [2/2]

bool WebCore::ScriptElement::alreadyStarted ( ) const
inlineprotected

◆ childrenChanged() [1/2]

void WebCore::ScriptElement::childrenChanged ( const ContainerNode::ChildChange childChange)
protected

◆ childrenChanged() [2/2]

void WebCore::ScriptElement::childrenChanged ( const ContainerNode::ChildChange )
protected

◆ deref() [1/2]

void WebCore::ScriptElement::deref ( )

◆ deref() [2/2]

void WebCore::ScriptElement::deref ( )

◆ dispatchErrorEvent() [1/2]

void WebCore::ScriptElement::dispatchErrorEvent ( )

◆ dispatchErrorEvent() [2/2]

void WebCore::ScriptElement::dispatchErrorEvent ( )

◆ dispatchLoadEvent() [1/2]

virtual void WebCore::ScriptElement::dispatchLoadEvent ( )
pure virtual

◆ dispatchLoadEvent() [2/2]

virtual void WebCore::ScriptElement::dispatchLoadEvent ( )
pure virtual

◆ element() [1/4]

Element& WebCore::ScriptElement::element ( )
inline

◆ element() [2/4]

Element& WebCore::ScriptElement::element ( )
inline

◆ element() [3/4]

const Element& WebCore::ScriptElement::element ( ) const
inline

◆ element() [4/4]

const Element& WebCore::ScriptElement::element ( ) const
inline

◆ executeClassicScript() [1/2]

void WebCore::ScriptElement::executeClassicScript ( const ScriptSourceCode )

◆ executeClassicScript() [2/2]

void WebCore::ScriptElement::executeClassicScript ( const ScriptSourceCode sourceCode)

◆ executeModuleScript() [1/2]

void WebCore::ScriptElement::executeModuleScript ( LoadableModuleScript )

◆ executeModuleScript() [2/2]

void WebCore::ScriptElement::executeModuleScript ( LoadableModuleScript loadableModuleScript)

◆ executePendingScript() [1/2]

void WebCore::ScriptElement::executePendingScript ( PendingScript )

◆ executePendingScript() [2/2]

void WebCore::ScriptElement::executePendingScript ( PendingScript pendingScript)

◆ finishedInsertingSubtree() [1/2]

void WebCore::ScriptElement::finishedInsertingSubtree ( )
protected

◆ finishedInsertingSubtree() [2/2]

void WebCore::ScriptElement::finishedInsertingSubtree ( )
protected

◆ forceAsync() [1/2]

bool WebCore::ScriptElement::forceAsync ( ) const
inlineprotected

◆ forceAsync() [2/2]

bool WebCore::ScriptElement::forceAsync ( ) const
inlineprotected

◆ handleAsyncAttribute() [1/2]

void WebCore::ScriptElement::handleAsyncAttribute ( )
protected

◆ handleAsyncAttribute() [2/2]

void WebCore::ScriptElement::handleAsyncAttribute ( )
protected

◆ handleSourceAttribute() [1/2]

void WebCore::ScriptElement::handleSourceAttribute ( const String sourceURL)
protected

◆ handleSourceAttribute() [2/2]

void WebCore::ScriptElement::handleSourceAttribute ( const String sourceURL)
protected

◆ haveFiredLoadEvent() [1/2]

bool WebCore::ScriptElement::haveFiredLoadEvent ( ) const
inline

◆ haveFiredLoadEvent() [2/2]

bool WebCore::ScriptElement::haveFiredLoadEvent ( ) const
inline

◆ isParserInserted() [1/2]

bool WebCore::ScriptElement::isParserInserted ( ) const
inlineprotected

◆ isParserInserted() [2/2]

bool WebCore::ScriptElement::isParserInserted ( ) const
inlineprotected

◆ loadableScript() [1/2]

LoadableScript* WebCore::ScriptElement::loadableScript ( )
inline

◆ loadableScript() [2/2]

LoadableScript* WebCore::ScriptElement::loadableScript ( )
inline

◆ prepareScript() [1/2]

bool WebCore::ScriptElement::prepareScript ( const TextPosition scriptStartPosition = TextPosition(),
LegacyTypeSupport  supportLegacyTypes = DisallowLegacyTypeInTypeAttribute 
)

◆ prepareScript() [2/2]

bool WebCore::ScriptElement::prepareScript ( const TextPosition scriptStartPosition = TextPosition(),
LegacyTypeSupport  = DisallowLegacyTypeInTypeAttribute 
)

◆ readyToBeParserExecuted() [1/2]

bool WebCore::ScriptElement::readyToBeParserExecuted ( ) const
inline

◆ readyToBeParserExecuted() [2/2]

bool WebCore::ScriptElement::readyToBeParserExecuted ( ) const
inline

◆ ref() [1/2]

void WebCore::ScriptElement::ref ( )

◆ ref() [2/2]

void WebCore::ScriptElement::ref ( )

◆ scriptCharset() [1/2]

String WebCore::ScriptElement::scriptCharset ( ) const
inline

◆ scriptCharset() [2/2]

String WebCore::ScriptElement::scriptCharset ( ) const
inline

◆ scriptContent() [1/2]

String WebCore::ScriptElement::scriptContent ( ) const

◆ scriptContent() [2/2]

WEBCORE_EXPORT String WebCore::ScriptElement::scriptContent ( ) const

◆ scriptType() [1/2]

ScriptType WebCore::ScriptElement::scriptType ( ) const
inline

◆ scriptType() [2/2]

ScriptType WebCore::ScriptElement::scriptType ( ) const
inline

◆ setHaveFiredLoadEvent() [1/2]

void WebCore::ScriptElement::setHaveFiredLoadEvent ( bool  haveFiredLoad)
inlineprotected

◆ setHaveFiredLoadEvent() [2/2]

void WebCore::ScriptElement::setHaveFiredLoadEvent ( bool  haveFiredLoad)
inlineprotected

◆ shouldCallFinishedInsertingSubtree() [1/2]

bool WebCore::ScriptElement::shouldCallFinishedInsertingSubtree ( ContainerNode insertionPoint)
protected

◆ shouldCallFinishedInsertingSubtree() [2/2]

bool WebCore::ScriptElement::shouldCallFinishedInsertingSubtree ( ContainerNode )
protected

◆ willBeParserExecuted() [1/2]

bool WebCore::ScriptElement::willBeParserExecuted ( ) const
inline

◆ willBeParserExecuted() [2/2]

bool WebCore::ScriptElement::willBeParserExecuted ( ) const
inline

◆ willExecuteInOrder() [1/2]

bool WebCore::ScriptElement::willExecuteInOrder ( ) const
inline

◆ willExecuteInOrder() [2/2]

bool WebCore::ScriptElement::willExecuteInOrder ( ) const
inline

◆ willExecuteWhenDocumentFinishedParsing() [1/2]

bool WebCore::ScriptElement::willExecuteWhenDocumentFinishedParsing ( ) const
inline

◆ willExecuteWhenDocumentFinishedParsing() [2/2]

bool WebCore::ScriptElement::willExecuteWhenDocumentFinishedParsing ( ) const
inline

The documentation for this class was generated from the following files: