OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ChildNode_h | 5 #ifndef ChildNode_h |
6 #define ChildNode_h | 6 #define ChildNode_h |
7 | 7 |
8 #include "core/dom/Node.h" | 8 #include "core/dom/Node.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class ChildNode { | 12 class ChildNode { |
13 public: | 13 public: |
14 static void before(Node& node, const HeapVector<NodeOrString>& nodes, Except
ionState& exceptionState) | |
15 { | |
16 return node.before(nodes, exceptionState); | |
17 } | |
18 | |
19 static void after(Node& node, const HeapVector<NodeOrString>& nodes, Excepti
onState& exceptionState) | |
20 { | |
21 return node.after(nodes, exceptionState); | |
22 } | |
23 | |
24 static void replaceWith(Node& node, const HeapVector<NodeOrString>& nodes, E
xceptionState& exceptionState) | |
25 { | |
26 return node.replaceWith(nodes, exceptionState); | |
27 } | |
28 | |
29 static void remove(Node& node, ExceptionState& exceptionState) | 14 static void remove(Node& node, ExceptionState& exceptionState) |
30 { | 15 { |
31 return node.remove(exceptionState); | 16 return node.remove(exceptionState); |
32 } | 17 } |
33 }; | 18 }; |
34 | 19 |
35 } // namespace blink | 20 } // namespace blink |
36 | 21 |
37 #endif // ChildNode_h | 22 #endif // ChildNode_h |
OLD | NEW |