diff options
Diffstat (limited to 'Source/WebCore/inspector/InspectorDOMAgent.h')
-rw-r--r-- | Source/WebCore/inspector/InspectorDOMAgent.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/Source/WebCore/inspector/InspectorDOMAgent.h b/Source/WebCore/inspector/InspectorDOMAgent.h index 1611baa..97175fe 100644 --- a/Source/WebCore/inspector/InspectorDOMAgent.h +++ b/Source/WebCore/inspector/InspectorDOMAgent.h @@ -124,7 +124,7 @@ namespace WebCore { bool shouldBreakOnNodeRemoval(Node* node, PassRefPtr<InspectorObject> details); bool shouldBreakOnAttributeModification(Element* element, PassRefPtr<InspectorObject> details); - // Methods called from the InspectorController. + // Methods called from the InspectorInstrumentation. void setDocument(Document* document); void releaseDanglingNodes(); @@ -144,10 +144,17 @@ namespace WebCore { String documentURLString(Document* document) const; - void setDOMBreakpoint(long nodeId, long type); - void removeDOMBreakpoint(long nodeId, long type); + // 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. + static Node* innerFirstChild(Node*); + static Node* innerNextSibling(Node*); + static Node* innerPreviousSibling(Node*); + static unsigned innerChildNodeCount(Node*); + static Node* innerParentNode(Node*); + static bool isWhitespace(Node*); private: + void startListeningFrameDocument(Node* frameOwnerNode); void startListening(Document* document); void stopListening(Document* document); @@ -169,15 +176,6 @@ namespace WebCore { PassRefPtr<InspectorArray> buildArrayForContainerChildren(Node* container, int depth, NodeToIdMap* nodesMap); PassRefPtr<InspectorObject> buildObjectForEventListener(const RegisteredEventListener& registeredEventListener, const AtomicString& eventType, Node* node); - // 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. - Node* innerFirstChild(Node* node); - Node* innerNextSibling(Node* node); - Node* innerPreviousSibling(Node* node); - unsigned innerChildNodeCount(Node* node); - Node* innerParentNode(Node* node); - bool isWhitespace(Node* node); - Document* mainFrameDocument() const; void onMatchJobsTimer(Timer<InspectorDOMAgent>*); @@ -202,7 +200,6 @@ namespace WebCore { Timer<InspectorDOMAgent> m_matchJobsTimer; HashSet<RefPtr<Node> > m_searchResults; Vector<long> m_inspectedNodes; - HashMap<Node*, uint32_t> m_breakpoints; }; #endif |