Index: Source/core/dom/LiveNodeList.cpp |
diff --git a/Source/core/dom/LiveNodeList.cpp b/Source/core/dom/LiveNodeList.cpp |
index f1aff4d9d5fecef6a3fd8753cb8297b99bef1e2b..8f7c6cc28924137ff7f80322c991d1f0eee3c798 100644 |
--- a/Source/core/dom/LiveNodeList.cpp |
+++ b/Source/core/dom/LiveNodeList.cpp |
@@ -25,6 +25,11 @@ |
namespace WebCore { |
+static inline bool isMatchingElement(const LiveNodeList& nodeList, const Element& element) |
+{ |
+ return nodeList.nodeMatches(element); |
+} |
+ |
Node* LiveNodeList::virtualOwnerNode() const |
{ |
return &ownerNode(); |
@@ -35,4 +40,19 @@ void LiveNodeList::invalidateCache(Document*) const |
m_collectionIndexCache.invalidate(); |
} |
+Element* LiveNodeList::itemBefore(const Element* previous) const |
+{ |
+ return LiveNodeListBase::itemBefore(*this, previous); |
+} |
+ |
+Element* LiveNodeList::traverseToFirstElement(const ContainerNode& root) const |
+{ |
+ return firstMatchingElement(*this, root); |
+} |
+ |
+Element* LiveNodeList::traverseForwardToOffset(unsigned offset, Element& currentNode, unsigned& currentOffset, const ContainerNode& root) const |
+{ |
+ return traverseMatchingElementsForwardToOffset(*this, offset, currentNode, currentOffset, root); |
+} |
+ |
} // namespace WebCore |