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

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

Issue 1085843002: 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/dom/ChildNode.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698