Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: Source/core/dom/Node.h

Issue 385073015: Node.replaceChild and Node.removeChild do not use custom binding anymore (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Take review comment into consideration Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 Node* pseudoAwareNextSibling() const; 189 Node* pseudoAwareNextSibling() const;
190 Node* pseudoAwarePreviousSibling() const; 190 Node* pseudoAwarePreviousSibling() const;
191 Node* pseudoAwareFirstChild() const; 191 Node* pseudoAwareFirstChild() const;
192 Node* pseudoAwareLastChild() const; 192 Node* pseudoAwareLastChild() const;
193 193
194 virtual KURL baseURI() const; 194 virtual KURL baseURI() const;
195 195
196 // These should all actually return a node, but this is only important for l anguage bindings, 196 // These should all actually return a node, but this is only important for l anguage bindings,
197 // which will already know and hold a ref on the right node to return. 197 // which will already know and hold a ref on the right node to return.
198 PassRefPtrWillBeRawPtr<Node> insertBefore(PassRefPtrWillBeRawPtr<Node> newCh ild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION); 198 PassRefPtrWillBeRawPtr<Node> insertBefore(PassRefPtrWillBeRawPtr<Node> newCh ild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION);
199 void replaceChild(PassRefPtrWillBeRawPtr<Node> newChild, Node* oldChild, Exc eptionState& = ASSERT_NO_EXCEPTION); 199 PassRefPtrWillBeRawPtr<Node> replaceChild(PassRefPtrWillBeRawPtr<Node> newCh ild, PassRefPtrWillBeRawPtr<Node> oldChild, ExceptionState& = ASSERT_NO_EXCEPTIO N);
200 void removeChild(Node* child, ExceptionState&); 200 PassRefPtrWillBeRawPtr<Node> removeChild(PassRefPtrWillBeRawPtr<Node> child, ExceptionState& = ASSERT_NO_EXCEPTION);
201 PassRefPtrWillBeRawPtr<Node> appendChild(PassRefPtrWillBeRawPtr<Node> newChi ld, ExceptionState& = ASSERT_NO_EXCEPTION); 201 PassRefPtrWillBeRawPtr<Node> appendChild(PassRefPtrWillBeRawPtr<Node> newChi ld, ExceptionState& = ASSERT_NO_EXCEPTION);
202 202
203 bool hasChildren() const { return firstChild(); } 203 bool hasChildren() const { return firstChild(); }
204 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = false) = 0; 204 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = false) = 0;
205 virtual const AtomicString& localName() const; 205 virtual const AtomicString& localName() const;
206 virtual const AtomicString& namespaceURI() const; 206 virtual const AtomicString& namespaceURI() const;
207 void normalize(); 207 void normalize();
208 208
209 bool isSameNode(Node* other) const { return this == other; } 209 bool isSameNode(Node* other) const { return this == other; }
210 bool isEqualNode(Node*) const; 210 bool isEqualNode(Node*) const;
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 } // namespace WebCore 904 } // namespace WebCore
905 905
906 #ifndef NDEBUG 906 #ifndef NDEBUG
907 // Outside the WebCore namespace for ease of invocation from gdb. 907 // Outside the WebCore namespace for ease of invocation from gdb.
908 void showNode(const WebCore::Node*); 908 void showNode(const WebCore::Node*);
909 void showTree(const WebCore::Node*); 909 void showTree(const WebCore::Node*);
910 void showNodePath(const WebCore::Node*); 910 void showNodePath(const WebCore::Node*);
911 #endif 911 #endif
912 912
913 #endif 913 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698