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

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

Issue 161083002: Make NodeList::ownerNode() virtual and rename to virtualOwnerNode() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reupload 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
Index: Source/core/dom/LiveNodeList.cpp
diff --git a/Source/core/dom/LiveNodeList.cpp b/Source/core/dom/LiveNodeList.cpp
index 08d9d86b82f384a48cdadda44e60c1f85896c474..21d078323f9031a1ea2f5d746d4381750948d0b3 100644
--- a/Source/core/dom/LiveNodeList.cpp
+++ b/Source/core/dom/LiveNodeList.cpp
@@ -41,6 +41,11 @@ void LiveNodeListBase::invalidateIdNameCacheMaps() const
static_cast<const HTMLCollection*>(this)->invalidateIdNameCacheMaps();
}
+Node* LiveNodeList::virtualOwnerNode() const
+{
+ return ownerNode();
+}
+
void LiveNodeList::invalidateCache() const
{
m_collectionIndexCache.invalidate();

Powered by Google App Engine
This is Rietveld 408576698