webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | List of all members
WebCore::DOMEditor Class Reference

#include <DOMEditor.h>

Classes

class  InsertBeforeAction
 
class  RemoveAttributeAction
 
class  RemoveChildAction
 
class  ReplaceChildNodeAction
 
class  ReplaceWholeTextAction
 
class  SetAttributeAction
 
class  SetNodeValueAction
 
class  SetOuterHTMLAction
 

Public Member Functions

 DOMEditor (InspectorHistory &)
 
 ~DOMEditor ()
 
ExceptionOr< voidinsertBefore (Node &parentNode, Ref< Node > &&, Node *anchorNode)
 
ExceptionOr< voidremoveChild (Node &parentNode, Node &)
 
ExceptionOr< voidsetAttribute (Element &, const String &name, const String &value)
 
ExceptionOr< voidremoveAttribute (Element &, const String &name)
 
ExceptionOr< voidsetOuterHTML (Node &, const String &html, Node *&newNode)
 
ExceptionOr< voidreplaceWholeText (Text &, const String &text)
 
ExceptionOr< voidreplaceChild (Node &parentNode, Ref< Node > &&newNode, Node &oldNode)
 
ExceptionOr< voidsetNodeValue (Node &parentNode, const String &value)
 
bool insertBefore (Node &parentNode, Ref< Node > &&, Node *anchorNode, ErrorString &)
 
bool removeChild (Node &parentNode, Node &, ErrorString &)
 
bool setAttribute (Element &, const String &name, const String &value, ErrorString &)
 
bool removeAttribute (Element &, const String &name, ErrorString &)
 
bool setOuterHTML (Node &, const String &html, Node *&newNode, ErrorString &)
 
bool replaceWholeText (Text &, const String &text, ErrorString &)
 

Constructor & Destructor Documentation

◆ DOMEditor()

WebCore::DOMEditor::DOMEditor ( InspectorHistory history)
explicit

◆ ~DOMEditor()

WebCore::DOMEditor::~DOMEditor ( )

Member Function Documentation

◆ insertBefore() [1/2]

ExceptionOr< void > WebCore::DOMEditor::insertBefore ( Node parentNode,
Ref< Node > &&  node,
Node anchorNode 
)

◆ insertBefore() [2/2]

bool WebCore::DOMEditor::insertBefore ( Node parentNode,
Ref< Node > &&  node,
Node anchorNode,
ErrorString errorString 
)

◆ removeAttribute() [1/2]

ExceptionOr< void > WebCore::DOMEditor::removeAttribute ( Element element,
const String name 
)

◆ removeAttribute() [2/2]

bool WebCore::DOMEditor::removeAttribute ( Element element,
const String name,
ErrorString errorString 
)

◆ removeChild() [1/2]

ExceptionOr< void > WebCore::DOMEditor::removeChild ( Node parentNode,
Node node 
)

◆ removeChild() [2/2]

bool WebCore::DOMEditor::removeChild ( Node parentNode,
Node node,
ErrorString errorString 
)

◆ replaceChild()

ExceptionOr< void > WebCore::DOMEditor::replaceChild ( Node parentNode,
Ref< Node > &&  newNode,
Node oldNode 
)

◆ replaceWholeText() [1/2]

ExceptionOr< void > WebCore::DOMEditor::replaceWholeText ( Text textNode,
const String text 
)

◆ replaceWholeText() [2/2]

bool WebCore::DOMEditor::replaceWholeText ( Text textNode,
const String text,
ErrorString errorString 
)

◆ setAttribute() [1/2]

ExceptionOr< void > WebCore::DOMEditor::setAttribute ( Element element,
const String name,
const String value 
)

◆ setAttribute() [2/2]

bool WebCore::DOMEditor::setAttribute ( Element element,
const String name,
const String value,
ErrorString errorString 
)

◆ setNodeValue()

ExceptionOr< void > WebCore::DOMEditor::setNodeValue ( Node parentNode,
const String value 
)

◆ setOuterHTML() [1/2]

ExceptionOr< void > WebCore::DOMEditor::setOuterHTML ( Node node,
const String html,
Node *&  newNode 
)

◆ setOuterHTML() [2/2]

bool WebCore::DOMEditor::setOuterHTML ( Node node,
const String html,
Node *&  newNode,
ErrorString errorString 
)

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