summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/ContainerNode.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/ContainerNode.h')
-rw-r--r--WebCore/dom/ContainerNode.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/WebCore/dom/ContainerNode.h b/WebCore/dom/ContainerNode.h
index a27d95b..ad0a54a 100644
--- a/WebCore/dom/ContainerNode.h
+++ b/WebCore/dom/ContainerNode.h
@@ -48,8 +48,12 @@ public:
virtual bool removeChild(Node* child, ExceptionCode&);
virtual bool appendChild(PassRefPtr<Node> newChild, ExceptionCode&, bool shouldLazyAttach = false);
- virtual ContainerNode* legacyParserAddChild(PassRefPtr<Node>);
- virtual void parserAddChild(PassRefPtr<Node>);
+ // These methods are only used during parsing.
+ // They don't send DOM mutation events or handle reparenting.
+ // However, arbitrary code may be run by beforeload handlers.
+ void parserAddChild(PassRefPtr<Node>);
+ void parserRemoveChild(Node*);
+ void parserInsertBefore(PassRefPtr<Node> newChild, Node* refChild);
bool hasChildNodes() const { return m_firstChild; }
virtual void attach();
@@ -95,8 +99,14 @@ protected:
void setLastChild(Node* child) { m_lastChild = child; }
private:
- // FIXME: This should take a PassRefPtr.
- void addChildCommon(Node*);
+ // Never call this function directly. If you're trying to call this
+ // function, your code is either wrong or you're supposed to call
+ // parserAddChild. Please do not call parserAddChild unless you are the
+ // parser!
+ virtual void deprecatedParserAddChild(PassRefPtr<Node>);
+
+ void removeBetween(Node* previousChild, Node* nextChild, Node* oldChild);
+ void insertBeforeCommon(Node* nextChild, Node* oldChild);
static void dispatchPostAttachCallbacks();