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

Unified Diff: Source/core/dom/Node.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, 6 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: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 63b3599828d035b1541d653dbf0829ba1841540f..5312f21cfc99e9b60a26dd09cfa2938d10a4f65c 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -26,6 +26,7 @@
#define Node_h
#include "bindings/core/v8/ExceptionStatePlaceholder.h"
+#include "bindings/core/v8/UnionTypesCore.h"
#include "core/CoreExport.h"
#include "core/dom/MutationObserver.h"
#include "core/dom/SimulatedClickOptions.h"
@@ -206,7 +207,14 @@ public:
Node* firstChild() const;
Node* lastChild() const;
+ void prepend(const HeapVector<NodeOrString>&, ExceptionState&);
+ void append(const HeapVector<NodeOrString>&, ExceptionState&);
+ void before(const HeapVector<NodeOrString>&, ExceptionState&);
+ void after(const HeapVector<NodeOrString>&, ExceptionState&);
+ void replaceWith(const HeapVector<NodeOrString>&, ExceptionState&);
void remove(ExceptionState&);
+ PassRefPtrWillBeRawPtr<Node> nodeOrStringToNode(const NodeOrString&);
philipj_slow 2015/06/15 10:06:58 Can't these be static in the .cpp file?
Paritosh Kumar 2015/06/23 13:32:09 As I'm using Node::document() method in nodeOrStri
philipj_slow 2015/06/25 11:05:21 Oh, you need the Document to create the Text nodes
+ PassRefPtrWillBeRawPtr<Node> convertNodesIntoNode(const HeapVector<NodeOrString>&);
Node* pseudoAwareNextSibling() const;
Node* pseudoAwarePreviousSibling() const;

Powered by Google App Engine
This is Rietveld 408576698