Home | History | Annotate | Download | only in html

Lines Matching refs:HTMLCollection

24 #include "core/html/HTMLCollection.h"
159 HTMLCollection::HTMLCollection(Node* ownerNode, CollectionType type, ItemAfterOverrideType itemAfterOverrideType)
166 PassRefPtr<HTMLCollection> HTMLCollection::create(Node* base, CollectionType type)
168 return adoptRef(new HTMLCollection(base, type, DoesNotOverrideItemAfter));
171 HTMLCollection::~HTMLCollection()
181 template <> inline bool isMatchingElement(const HTMLCollection* htmlCollection, Element* element)
183 CollectionType type = htmlCollection->type();
283 if (current->isElementNode() && isMatchingElement(static_cast<const HTMLCollection*>(this), toElement(current)))
393 static_cast<const HTMLCollection*>(this)->m_cachedElementsArrayOffset = elementsArrayOffset;
409 // FIXME: It is silly that these functions are in HTMLCollection.cpp.
437 firstItem = static_cast<const HTMLCollection*>(this)->traverseFirstElement(offsetInArray, root);
480 currentItem = static_cast<const HTMLCollection*>(this)->traverseForwardToOffset(offset, toElement(currentItem), currentOffset, offsetInArray, root);
491 Element* HTMLCollection::virtualItemAfter(unsigned&, Element*) const
510 bool HTMLCollection::checkForNameMatch(Element* element, bool checkName, const AtomicString& name) const
525 inline Element* firstMatchingChildElement(const HTMLCollection* nodeList, ContainerNode* root)
533 inline Element* nextMatchingChildElement(const HTMLCollection* nodeList, Element* current, ContainerNode* root)
541 inline Element* HTMLCollection::traverseFirstElement(unsigned& offsetInArray, ContainerNode* root) const
547 return firstMatchingChildElement(static_cast<const HTMLCollection*>(this), root);
548 return firstMatchingElement(static_cast<const HTMLCollection*>(this), root);
551 inline Element* HTMLCollection::traverseNextElement(unsigned& offsetInArray, Element* previous, ContainerNode* root) const
561 inline Element* HTMLCollection::traverseForwardToOffset(unsigned offset, Element* currentElement, unsigned& currentOffset, unsigned& offsetInArray, ContainerNode* root) const
582 Node* HTMLCollection::namedItem(const AtomicString& name) const
616 void HTMLCollection::updateNameCache() const
641 bool HTMLCollection::hasNamedItem(const AtomicString& name) const
661 void HTMLCollection::namedItems(const AtomicString& name, Vector<RefPtr<Node> >& result) const
679 PassRefPtr<NodeList> HTMLCollection::tags(const String& name)
684 void HTMLCollection::append(NodeCacheMap& map, const AtomicString& key, Element* element)