OLD | NEW |
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" |
29 #include "core/CoreExport.h" | 30 #include "core/CoreExport.h" |
30 #include "core/dom/MutationObserver.h" | 31 #include "core/dom/MutationObserver.h" |
31 #include "core/dom/SimulatedClickOptions.h" | 32 #include "core/dom/SimulatedClickOptions.h" |
32 #include "core/dom/StyleChangeReason.h" | 33 #include "core/dom/StyleChangeReason.h" |
33 #include "core/dom/TreeScope.h" | 34 #include "core/dom/TreeScope.h" |
34 #include "core/dom/TreeShared.h" | 35 #include "core/dom/TreeShared.h" |
35 #include "core/editing/EditingBoundary.h" | 36 #include "core/editing/EditingBoundary.h" |
36 #include "core/events/EventTarget.h" | 37 #include "core/events/EventTarget.h" |
37 #include "core/inspector/InspectorCounters.h" | 38 #include "core/inspector/InspectorCounters.h" |
38 #include "core/style/ComputedStyleConstants.h" | 39 #include "core/style/ComputedStyleConstants.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 ContainerNode* parentNode() const; | 198 ContainerNode* parentNode() const; |
198 Element* parentElement() const; | 199 Element* parentElement() const; |
199 ContainerNode* parentElementOrShadowRoot() const; | 200 ContainerNode* parentElementOrShadowRoot() const; |
200 ContainerNode* parentElementOrDocumentFragment() const; | 201 ContainerNode* parentElementOrDocumentFragment() const; |
201 Node* previousSibling() const { return m_previous; } | 202 Node* previousSibling() const { return m_previous; } |
202 Node* nextSibling() const { return m_next; } | 203 Node* nextSibling() const { return m_next; } |
203 PassRefPtrWillBeRawPtr<NodeList> childNodes(); | 204 PassRefPtrWillBeRawPtr<NodeList> childNodes(); |
204 Node* firstChild() const; | 205 Node* firstChild() const; |
205 Node* lastChild() const; | 206 Node* lastChild() const; |
206 | 207 |
| 208 void prepend(const Vector<NodeOrString>&, ExceptionState&); |
| 209 void append(const Vector<NodeOrString>&, ExceptionState&); |
| 210 void before(const Vector<NodeOrString>&, ExceptionState&); |
| 211 void after(const Vector<NodeOrString>&, ExceptionState&); |
| 212 void replaceWith(const Vector<NodeOrString>&, ExceptionState&); |
207 void remove(ExceptionState&); | 213 void remove(ExceptionState&); |
| 214 PassRefPtrWillBeRawPtr<Node> mutationMethodMacro(const Vector<NodeOrString>&
, ExceptionState&); |
208 | 215 |
209 Node* pseudoAwareNextSibling() const; | 216 Node* pseudoAwareNextSibling() const; |
210 Node* pseudoAwarePreviousSibling() const; | 217 Node* pseudoAwarePreviousSibling() const; |
211 Node* pseudoAwareFirstChild() const; | 218 Node* pseudoAwareFirstChild() const; |
212 Node* pseudoAwareLastChild() const; | 219 Node* pseudoAwareLastChild() const; |
213 | 220 |
214 virtual KURL baseURI() const; | 221 virtual KURL baseURI() const; |
215 | 222 |
216 PassRefPtrWillBeRawPtr<Node> insertBefore(PassRefPtrWillBeRawPtr<Node> newCh
ild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION); | 223 PassRefPtrWillBeRawPtr<Node> insertBefore(PassRefPtrWillBeRawPtr<Node> newCh
ild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION); |
217 PassRefPtrWillBeRawPtr<Node> replaceChild(PassRefPtrWillBeRawPtr<Node> newCh
ild, PassRefPtrWillBeRawPtr<Node> oldChild, ExceptionState& = ASSERT_NO_EXCEPTIO
N); | 224 PassRefPtrWillBeRawPtr<Node> replaceChild(PassRefPtrWillBeRawPtr<Node> newCh
ild, PassRefPtrWillBeRawPtr<Node> oldChild, ExceptionState& = ASSERT_NO_EXCEPTIO
N); |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 } // namespace blink | 922 } // namespace blink |
916 | 923 |
917 #ifndef NDEBUG | 924 #ifndef NDEBUG |
918 // Outside the WebCore namespace for ease of invocation from gdb. | 925 // Outside the WebCore namespace for ease of invocation from gdb. |
919 void showNode(const blink::Node*); | 926 void showNode(const blink::Node*); |
920 void showTree(const blink::Node*); | 927 void showTree(const blink::Node*); |
921 void showNodePath(const blink::Node*); | 928 void showNodePath(const blink::Node*); |
922 #endif | 929 #endif |
923 | 930 |
924 #endif // Node_h | 931 #endif // Node_h |
OLD | NEW |