Index: Source/core/dom/NodeListsNodeData.h |
diff --git a/Source/core/dom/NodeListsNodeData.h b/Source/core/dom/NodeListsNodeData.h |
index 8717d1ec0eca6af845f2d8e1477be06a566784d7..1029929e5c96b0344a2d8d5808644f0ab2aff97b 100644 |
--- a/Source/core/dom/NodeListsNodeData.h |
+++ b/Source/core/dom/NodeListsNodeData.h |
@@ -37,10 +37,10 @@ class NodeListsNodeData FINAL : public NoBaseWillBeGarbageCollectedFinalized<Nod |
WTF_MAKE_NONCOPYABLE(NodeListsNodeData); |
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
public: |
- void clearChildNodeListCache() |
+ ChildNodeList* childNodeList(ContainerNode& node) |
{ |
- if (m_childNodeList && m_childNodeList->isChildNodeList()) |
- toChildNodeList(m_childNodeList)->invalidateCache(); |
+ ASSERT_UNUSED(node, !m_childNodeList || node == m_childNodeList->virtualOwnerNode()); |
+ return toChildNodeList(m_childNodeList); |
} |
PassRefPtrWillBeRawPtr<ChildNodeList> ensureChildNodeList(ContainerNode& node) |