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

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

Issue 1234813003: Revert of Implement DOM: prepend, append, before, after & replaceWith (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/ChildNode.idl ('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-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights 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
11 * version 2 of the License, or (at your option) any later version. 11 * version 2 of the License, or (at your option) any later version.
12 * 12 *
13 * This library is distributed in the hope that it will be useful, 13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details. 16 * Library General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU Library General Public License 18 * You should have received a copy of the GNU Library General Public License
19 * along with this library; see the file COPYING.LIB. If not, write to 19 * along with this library; see the file COPYING.LIB. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 * 22 *
23 */ 23 */
24 24
25 #ifndef Node_h 25 #ifndef Node_h
26 #define Node_h 26 #define Node_h
27 27
28 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 28 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
29 #include "bindings/core/v8/UnionTypesCore.h"
30 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
31 #include "core/dom/MutationObserver.h" 30 #include "core/dom/MutationObserver.h"
32 #include "core/dom/SimulatedClickOptions.h" 31 #include "core/dom/SimulatedClickOptions.h"
33 #include "core/dom/StyleChangeReason.h" 32 #include "core/dom/StyleChangeReason.h"
34 #include "core/dom/TreeScope.h" 33 #include "core/dom/TreeScope.h"
35 #include "core/dom/TreeShared.h" 34 #include "core/dom/TreeShared.h"
36 #include "core/editing/EditingBoundary.h" 35 #include "core/editing/EditingBoundary.h"
37 #include "core/events/EventTarget.h" 36 #include "core/events/EventTarget.h"
38 #include "core/inspector/InstanceCounters.h" 37 #include "core/inspector/InstanceCounters.h"
39 #include "core/style/ComputedStyleConstants.h" 38 #include "core/style/ComputedStyleConstants.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 ContainerNode* parentNode() const; 202 ContainerNode* parentNode() const;
204 Element* parentElement() const; 203 Element* parentElement() const;
205 ContainerNode* parentElementOrShadowRoot() const; 204 ContainerNode* parentElementOrShadowRoot() const;
206 ContainerNode* parentElementOrDocumentFragment() const; 205 ContainerNode* parentElementOrDocumentFragment() const;
207 Node* previousSibling() const { return m_previous; } 206 Node* previousSibling() const { return m_previous; }
208 Node* nextSibling() const { return m_next; } 207 Node* nextSibling() const { return m_next; }
209 PassRefPtrWillBeRawPtr<NodeList> childNodes(); 208 PassRefPtrWillBeRawPtr<NodeList> childNodes();
210 Node* firstChild() const; 209 Node* firstChild() const;
211 Node* lastChild() const; 210 Node* lastChild() const;
212 211
213 void prepend(const HeapVector<NodeOrString>&, ExceptionState&);
214 void append(const HeapVector<NodeOrString>&, ExceptionState&);
215 void before(const HeapVector<NodeOrString>&, ExceptionState&);
216 void after(const HeapVector<NodeOrString>&, ExceptionState&);
217 void replaceWith(const HeapVector<NodeOrString>&, ExceptionState&);
218 void remove(ExceptionState&); 212 void remove(ExceptionState&);
219 213
220 Node* pseudoAwareNextSibling() const; 214 Node* pseudoAwareNextSibling() const;
221 Node* pseudoAwarePreviousSibling() const; 215 Node* pseudoAwarePreviousSibling() const;
222 Node* pseudoAwareFirstChild() const; 216 Node* pseudoAwareFirstChild() const;
223 Node* pseudoAwareLastChild() const; 217 Node* pseudoAwareLastChild() const;
224 218
225 virtual KURL baseURI() const; 219 virtual KURL baseURI() const;
226 220
227 PassRefPtrWillBeRawPtr<Node> insertBefore(PassRefPtrWillBeRawPtr<Node> newCh ild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION); 221 PassRefPtrWillBeRawPtr<Node> insertBefore(PassRefPtrWillBeRawPtr<Node> newCh ild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION);
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 } // namespace blink 902 } // namespace blink
909 903
910 #ifndef NDEBUG 904 #ifndef NDEBUG
911 // Outside the WebCore namespace for ease of invocation from gdb. 905 // Outside the WebCore namespace for ease of invocation from gdb.
912 void showNode(const blink::Node*); 906 void showNode(const blink::Node*);
913 void showTree(const blink::Node*); 907 void showTree(const blink::Node*);
914 void showNodePath(const blink::Node*); 908 void showNodePath(const blink::Node*);
915 #endif 909 #endif
916 910
917 #endif // Node_h 911 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/dom/ChildNode.idl ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698