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

Unified Diff: third_party/WebKit/Source/core/dom/ParentNode.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/ParentNode.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/ParentNode.h
diff --git a/third_party/WebKit/Source/core/dom/ParentNode.h b/third_party/WebKit/Source/core/dom/ParentNode.h
index 92bce33357b2519f812858275cb2185dec11095c..5530c58eab0fe11dc0a9f9fda88ceae1624822eb 100644
--- a/third_party/WebKit/Source/core/dom/ParentNode.h
+++ b/third_party/WebKit/Source/core/dom/ParentNode.h
@@ -63,6 +63,16 @@ public:
return count;
}
+ static void prepend(Node& node, const HeapVector<NodeOrString>& nodes, ExceptionState& exceptionState)
+ {
+ return node.prepend(nodes, exceptionState);
+ }
+
+ static void append(Node& node, const HeapVector<NodeOrString>& nodes, ExceptionState& exceptionState)
+ {
+ return node.append(nodes, exceptionState);
+ }
+
static Element* querySelector(ContainerNode& node, const AtomicString& selectors, ExceptionState& exceptionState)
{
return node.querySelector(selectors, exceptionState);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/ParentNode.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698