Chromium Code Reviews| 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; |