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

Unified Diff: sky/engine/core/dom/Node.h

Issue 924203002: Morph the APIs for Node, ParentNode, and Element closer to the specs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: less Created 5 years, 10 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 | « sky/engine/core/dom/Element.idl ('k') | sky/engine/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Node.h
diff --git a/sky/engine/core/dom/Node.h b/sky/engine/core/dom/Node.h
index 357b8248eac1fa9d47e5e5607016b5081d0c97be..4518265a9915677e534f3dc13a55d7169e5a2c9d 100644
--- a/sky/engine/core/dom/Node.h
+++ b/sky/engine/core/dom/Node.h
@@ -144,6 +144,14 @@ public:
Node* firstChild() const;
Node* lastChild() const;
+ Element* previousElementSibling();
+ Element* nextElementSibling();
+
+ // These functions release the nodes from |nodes|.
+ void newInsertBefore(Vector<RefPtr<Node>>& nodes, ExceptionState&);
+ void newInsertAfter(Vector<RefPtr<Node>>& nodes, ExceptionState&);
+ void replaceWith(Vector<RefPtr<Node>>& nodes, ExceptionState&);
+
void remove(ExceptionState&);
// These should all actually return a node, but this is only important for language bindings,
@@ -340,7 +348,7 @@ public:
return *m_treeScope;
}
- ContainerNode* ownerScope() const;
+ ContainerNode* owner() const;
bool inActiveDocument() const;
« no previous file with comments | « sky/engine/core/dom/Element.idl ('k') | sky/engine/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698