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
3 // found in the LICENSE file.
4 
5 #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_DOM_CHILD_NODE_H_
6 #define THIRD_PARTY_BLINK_RENDERER_CORE_DOM_CHILD_NODE_H_
7 
8 #include "third_party/blink/renderer/core/dom/node.h"
9 #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
10 
11 namespace blink {
12 
13 class ChildNode {
14   STATIC_ONLY(ChildNode);
15 
16  public:
before(Node & node,const HeapVector<NodeOrStringOrTrustedScript> & nodes,ExceptionState & exception_state)17   static void before(Node& node,
18                      const HeapVector<NodeOrStringOrTrustedScript>& nodes,
19                      ExceptionState& exception_state) {
20     return node.Before(nodes, exception_state);
21   }
22 
after(Node & node,const HeapVector<NodeOrStringOrTrustedScript> & nodes,ExceptionState & exception_state)23   static void after(Node& node,
24                     const HeapVector<NodeOrStringOrTrustedScript>& nodes,
25                     ExceptionState& exception_state) {
26     return node.After(nodes, exception_state);
27   }
28 
replaceWith(Node & node,const HeapVector<NodeOrStringOrTrustedScript> & nodes,ExceptionState & exception_state)29   static void replaceWith(Node& node,
30                           const HeapVector<NodeOrStringOrTrustedScript>& nodes,
31                           ExceptionState& exception_state) {
32     return node.ReplaceWith(nodes, exception_state);
33   }
34 
remove(Node & node,ExceptionState & exception_state)35   static void remove(Node& node, ExceptionState& exception_state) {
36     return node.remove(exception_state);
37   }
38 };
39 
40 }  // namespace blink
41 
42 #endif  // THIRD_PARTY_BLINK_RENDERER_CORE_DOM_CHILD_NODE_H_
43