This source file includes following definitions.
- isMatchingElement
- virtualOwnerNode
- invalidateCache
- itemBefore
- traverseToFirstElement
- traverseForwardToOffset
#include "config.h"
#include "core/dom/LiveNodeList.h"
namespace WebCore {
static inline bool isMatchingElement(const LiveNodeList& nodeList, const Element& element)
{
return nodeList.elementMatches(element);
}
Node* LiveNodeList::virtualOwnerNode() const
{
return &ownerNode();
}
void LiveNodeList::invalidateCache(Document*) const
{
m_collectionIndexCache.invalidate();
}
Element* LiveNodeList::itemBefore(const Element* previous) const
{
return LiveNodeListBase::itemBefore(*this, previous);
}
Element* LiveNodeList::traverseToFirstElement() const
{
return firstMatchingElement(*this);
}
Element* LiveNodeList::traverseForwardToOffset(unsigned offset, Element& currentNode, unsigned& currentOffset) const
{
return traverseMatchingElementsForwardToOffset(*this, offset, currentNode, currentOffset);
}
}