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

Unified Diff: Source/core/dom/ParentNode.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/dom/ParentNode.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ParentNode.h
diff --git a/Source/core/dom/ParentNode.h b/Source/core/dom/ParentNode.h
index 5c66857ee4cbe4817c2c7e9057730adc84e13e4a..2a0b48317ea9bc4f656eafd2d78e9bb4ce16325b 100644
--- a/Source/core/dom/ParentNode.h
+++ b/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 PassRefPtrWillBeRawPtr<Element> querySelector(ContainerNode& node, const AtomicString& selectors, ExceptionState& exceptionState)
{
return node.querySelector(selectors, exceptionState);
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/dom/ParentNode.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698