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

Unified Diff: third_party/WebKit/Source/core/dom/Node.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/ChildNode.idl ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index 0105f11a92155cdea74203758d49c35057d6c8fa..98a7fe836f4d2364e35a1e2b0431964b96f589e8 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/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"
@@ -195,6 +196,11 @@ public:
Node& treeRoot() const;
Node& shadowIncludingRoot() 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& = ASSERT_NO_EXCEPTION);
Node* pseudoAwareNextSibling() const;
« no previous file with comments | « third_party/WebKit/Source/core/dom/ChildNode.idl ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698