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 Vector<NodeOrString>& nodes, ExceptionS
tate& exceptionState) |
| 15 { |
| 16 return node.before(nodes, exceptionState); |
| 17 } |
| 18 |
| 19 static void after(Node& node, const Vector<NodeOrString>& nodes, ExceptionSt
ate& exceptionState) |
| 20 { |
| 21 return node.after(nodes, exceptionState); |
| 22 } |
| 23 |
| 24 static void replaceWith(Node& node, const Vector<NodeOrString>& nodes, Excep
tionState& exceptionState) |
| 25 { |
| 26 return node.replaceWith(nodes, exceptionState); |
| 27 } |
| 28 |
14 static void remove(Node& node, ExceptionState& exceptionState) | 29 static void remove(Node& node, ExceptionState& exceptionState) |
15 { | 30 { |
16 return node.remove(exceptionState); | 31 return node.remove(exceptionState); |
17 } | 32 } |
18 }; | 33 }; |
19 | 34 |
20 } // namespace blink | 35 } // namespace blink |
21 | 36 |
22 #endif // ChildNode_h | 37 #endif // ChildNode_h |
OLD | NEW |