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

Unified Diff: Source/core/dom/ContainerNode.h

Issue 15077006: Implement ParentNode IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 7 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 | « LayoutTests/fast/dom/Element/parent-node-interface-expected.txt ('k') | Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContainerNode.h
diff --git a/Source/core/dom/ContainerNode.h b/Source/core/dom/ContainerNode.h
index e96dc0f1e7b3dbdb77ac168aebe47baf5a2b4226..b29abf70a9a65f8548f831e1d23432ad3c921fa1 100644
--- a/Source/core/dom/ContainerNode.h
+++ b/Source/core/dom/ContainerNode.h
@@ -33,7 +33,8 @@
namespace WebCore {
class FloatPoint;
-
+class HTMLCollection;
+
typedef void (*NodeCallback)(Node*, unsigned);
namespace Private {
@@ -86,6 +87,12 @@ public:
Node* lastChild() const { return m_lastChild; }
bool hasChildNodes() const { return m_firstChild; }
+ // ParentNode interface API
+ PassRefPtr<HTMLCollection> children();
+ Element* firstElementChild() const;
+ Element* lastElementChild() const;
+ unsigned childElementCount() const;
+
unsigned childNodeCount() const;
Node* childNode(unsigned index) const;
« no previous file with comments | « LayoutTests/fast/dom/Element/parent-node-interface-expected.txt ('k') | Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698