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

Unified Diff: Source/core/dom/NodeList.cpp

Issue 137713002: Get rid of custom bindings for V8NodeList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add comment Created 6 years, 11 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 | « Source/core/dom/NodeList.h ('k') | Source/core/dom/NodeList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NodeList.cpp
diff --git a/Source/core/dom/NodeList.cpp b/Source/core/dom/NodeList.cpp
index fb06c70817bff7406297e671ca5dd5f5ff7f29e6..2666ba44f2d08c2ea56a4e6d30e2336600345481 100644
--- a/Source/core/dom/NodeList.cpp
+++ b/Source/core/dom/NodeList.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "core/dom/NodeList.h"
+#include "core/dom/LiveNodeList.h"
#include "core/dom/Node.h"
namespace WebCore {
@@ -53,5 +54,12 @@ void NodeList::anonymousNamedGetter(const AtomicString& name, bool& returnValue0
returnValue0 = result;
}
+Node* NodeList::ownerNode() const
+{
+ if (isLiveNodeList())
+ return static_cast<const LiveNodeList*>(this)->ownerNode();
+ return 0;
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/dom/NodeList.h ('k') | Source/core/dom/NodeList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698