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

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

Issue 132923003: Make sure the rootNode of a LiveNodeListBase is always a ContainerNode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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/NodeRareData.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 2666ba44f2d08c2ea56a4e6d30e2336600345481..e86640a810c23f69c30ced276e410ec93810ea76 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/EmptyNodeList.h"
#include "core/dom/LiveNodeList.h"
#include "core/dom/Node.h"
@@ -58,6 +59,8 @@ Node* NodeList::ownerNode() const
{
if (isLiveNodeList())
return static_cast<const LiveNodeList*>(this)->ownerNode();
+ if (isEmptyNodeList())
+ return static_cast<const EmptyNodeList*>(this)->ownerNode();
return 0;
}
« no previous file with comments | « Source/core/dom/NodeList.h ('k') | Source/core/dom/NodeRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698