summaryrefslogtreecommitdiffstats
path: root/WebCore/inspector/InspectorDOMAgent.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2009-08-18 15:36:45 +0100
committerBen Murdoch <benm@google.com>2009-08-18 19:20:06 +0100
commitd227fc870c7a697500a3c900c31baf05fb9a8524 (patch)
treea3fa109aa5bf52fef562ac49d97a2f723889cc71 /WebCore/inspector/InspectorDOMAgent.h
parentf2c627513266faa73f7669058d98c60769fb3524 (diff)
downloadexternal_webkit-d227fc870c7a697500a3c900c31baf05fb9a8524.zip
external_webkit-d227fc870c7a697500a3c900c31baf05fb9a8524.tar.gz
external_webkit-d227fc870c7a697500a3c900c31baf05fb9a8524.tar.bz2
Merge WebKit r47420
Diffstat (limited to 'WebCore/inspector/InspectorDOMAgent.h')
-rw-r--r--WebCore/inspector/InspectorDOMAgent.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/WebCore/inspector/InspectorDOMAgent.h b/WebCore/inspector/InspectorDOMAgent.h
index 28c3a22..67b2be8 100644
--- a/WebCore/inspector/InspectorDOMAgent.h
+++ b/WebCore/inspector/InspectorDOMAgent.h
@@ -42,6 +42,7 @@
#include <wtf/RefPtr.h>
namespace WebCore {
+ class ContainerNode;
class Element;
class Event;
class Document;
@@ -56,13 +57,13 @@ namespace WebCore {
~InspectorDOMAgent();
// Methods called from the frontend.
- void getChildNodes(long callId, long elementId);
+ void getChildNodes(long callId, long nodeId);
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 elementId, const String& value);
+ void setTextNodeValue(long callId, long nodeId, const String& value);
// Methods called from the InspectorController.
- void setDocument(Document* document);
+ bool setDocument(Document* document);
Node* nodeForId(long nodeId);
long idForNode(Node* node);
@@ -77,12 +78,12 @@ namespace WebCore {
long bind(Node* node);
void unbind(Node* node);
- void pushDocumentElementToFrontend();
- void pushChildNodesToFrontend(long elementId);
+ void pushDocumentToFrontend();
+ void pushChildNodesToFrontend(long nodeId);
ScriptObject buildObjectForNode(Node* node, int depth);
- ScriptArray buildArrayForElementAttributes(Element* elemen);
- ScriptArray buildArrayForElementChildren(Element* element, int depth);
+ ScriptArray buildArrayForElementAttributes(Element* element);
+ ScriptArray buildArrayForContainerChildren(Node* container, 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.
@@ -90,7 +91,7 @@ namespace WebCore {
Node* innerNextSibling(Node* node);
Node* innerPreviousSibling(Node* node);
int innerChildNodeCount(Node* node);
- Element* innerParentElement(Node* node);
+ Node* innerParentNode(Node* node);
bool isWhitespace(Node* node);
Document* mainFrameDocument();