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

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

Issue 154693002: Have ChildNodeList subclass NodeList instead of LiveNodeList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update copyright Created 6 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 | « Source/core/dom/LiveNodeList.h ('k') | Source/core/html/CollectionType.h » ('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 689b06fe47c33422dd66b4136855b0d03f62d114..efd9564e7d9538348b4bf475c6ea4c05dc3de69a 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/ChildNodeList.h"
#include "core/dom/EmptyNodeList.h"
#include "core/dom/LiveNodeList.h"
#include "core/dom/Node.h"
@@ -41,6 +42,8 @@ Node* NodeList::ownerNode() const
{
if (isLiveNodeList())
return static_cast<const LiveNodeList*>(this)->ownerNode();
+ if (isChildNodeList())
+ return static_cast<const ChildNodeList*>(this)->ownerNode();
if (isEmptyNodeList())
return static_cast<const EmptyNodeList*>(this)->ownerNode();
return 0;
« no previous file with comments | « Source/core/dom/LiveNodeList.h ('k') | Source/core/html/CollectionType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698