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

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

Issue 375293002: Node.insertBefore and Node.appendChild do not use custom binding anymore (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Replace assert with condition 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
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 void insertBefore(PassRefPtrWillBeRawPtr<Node> newChild, Node* refChild, Exc eptionState& = 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 void replaceChild(PassRefPtrWillBeRawPtr<Node> newChild, Node* oldChild, Exc eptionState& = ASSERT_NO_EXCEPTION);
200 void removeChild(Node* child, ExceptionState&); 200 void removeChild(Node* child, ExceptionState&);
201 void appendChild(PassRefPtrWillBeRawPtr<Node> newChild, ExceptionState& = AS SERT_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;
211 bool isDefaultNamespace(const AtomicString& namespaceURI) const; 211 bool isDefaultNamespace(const AtomicString& namespaceURI) const;
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 } // namespace WebCore 907 } // namespace WebCore
908 908
909 #ifndef NDEBUG 909 #ifndef NDEBUG
910 // Outside the WebCore namespace for ease of invocation from gdb. 910 // Outside the WebCore namespace for ease of invocation from gdb.
911 void showNode(const WebCore::Node*); 911 void showNode(const WebCore::Node*);
912 void showTree(const WebCore::Node*); 912 void showTree(const WebCore::Node*);
913 void showNodePath(const WebCore::Node*); 913 void showNodePath(const WebCore::Node*);
914 #endif 914 #endif
915 915
916 #endif 916 #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