diff options
Diffstat (limited to 'WebCore/inspector/InspectorDOMAgent.h')
-rw-r--r-- | WebCore/inspector/InspectorDOMAgent.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/WebCore/inspector/InspectorDOMAgent.h b/WebCore/inspector/InspectorDOMAgent.h index 67b2be8..28c3a22 100644 --- a/WebCore/inspector/InspectorDOMAgent.h +++ b/WebCore/inspector/InspectorDOMAgent.h @@ -42,7 +42,6 @@ #include <wtf/RefPtr.h> namespace WebCore { - class ContainerNode; class Element; class Event; class Document; @@ -57,13 +56,13 @@ namespace WebCore { ~InspectorDOMAgent(); // Methods called from the frontend. - void getChildNodes(long callId, long nodeId); + void getChildNodes(long callId, long elementId); void setAttribute(long callId, long elementId, const String& name, const String& value); void removeAttribute(long callId, long elementId, const String& name); - void setTextNodeValue(long callId, long nodeId, const String& value); + void setTextNodeValue(long callId, long elementId, const String& value); // Methods called from the InspectorController. - bool setDocument(Document* document); + void setDocument(Document* document); Node* nodeForId(long nodeId); long idForNode(Node* node); @@ -78,12 +77,12 @@ namespace WebCore { long bind(Node* node); void unbind(Node* node); - void pushDocumentToFrontend(); - void pushChildNodesToFrontend(long nodeId); + void pushDocumentElementToFrontend(); + void pushChildNodesToFrontend(long elementId); ScriptObject buildObjectForNode(Node* node, int depth); - ScriptArray buildArrayForElementAttributes(Element* element); - ScriptArray buildArrayForContainerChildren(Node* container, int depth); + ScriptArray buildArrayForElementAttributes(Element* elemen); + ScriptArray buildArrayForElementChildren(Element* element, int depth); // We represent embedded doms as a part of the same hierarchy. Hence we treat children of frame owners differently. // We also skip whitespace text nodes conditionally. Following methods encapsulate these specifics. @@ -91,7 +90,7 @@ namespace WebCore { Node* innerNextSibling(Node* node); Node* innerPreviousSibling(Node* node); int innerChildNodeCount(Node* node); - Node* innerParentNode(Node* node); + Element* innerParentElement(Node* node); bool isWhitespace(Node* node); Document* mainFrameDocument(); |