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

Unified Diff: third_party/WebKit/Source/core/dom/ChildNode.h

Issue 1934123002: Implement DOM methods: prepend, append, after, before and replaceWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync test expectations Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/ChildNode.h
diff --git a/third_party/WebKit/Source/core/dom/ChildNode.h b/third_party/WebKit/Source/core/dom/ChildNode.h
index 3c3b1f5b0560251ee311f174acf1ac75e3025a61..6dd625cf34933b06e29e0f2e4c28a21af9b55c8b 100644
--- a/third_party/WebKit/Source/core/dom/ChildNode.h
+++ b/third_party/WebKit/Source/core/dom/ChildNode.h
@@ -11,6 +11,21 @@ namespace blink {
class ChildNode {
public:
+ static void before(Node& node, const HeapVector<NodeOrString>& nodes, ExceptionState& exceptionState)
+ {
+ return node.before(nodes, exceptionState);
+ }
+
+ static void after(Node& node, const HeapVector<NodeOrString>& nodes, ExceptionState& exceptionState)
+ {
+ return node.after(nodes, exceptionState);
+ }
+
+ static void replaceWith(Node& node, const HeapVector<NodeOrString>& nodes, ExceptionState& exceptionState)
+ {
+ return node.replaceWith(nodes, exceptionState);
+ }
+
static void remove(Node& node, ExceptionState& exceptionState)
{
return node.remove(exceptionState);

Powered by Google App Engine
This is Rietveld 408576698