webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
WebCore::AllDescendantsCollection Class Reference

#include <AllDescendantsCollection.h>

Inheritance diagram for WebCore::AllDescendantsCollection:
WebCore::CachedHTMLCollection< AllDescendantsCollection, CollectionTypeTraits< AllDescendants >::traversalType > WebCore::HTMLCollection WebCore::HTMLCollection WebCore::NodeList WebCore::NodeList WebCore::NodeList WebCore::NodeList WTF::RefCounted< NodeList > WebCore::ScriptWrappable WTF::RefCounted< NodeList > WebCore::ScriptWrappable WTF::RefCounted< NodeList > WebCore::ScriptWrappable WTF::RefCounted< NodeList > WebCore::ScriptWrappable WTF::RefCounted< NodeList > WebCore::ScriptWrappable WTF::RefCounted< NodeList > WebCore::ScriptWrappable WTF::RefCounted< NodeList > WebCore::ScriptWrappable WTF::RefCounted< NodeList > WebCore::ScriptWrappable WebCore::HTMLAllCollection

Public Member Functions

bool elementMatches (Element &) const
 
- Public Member Functions inherited from WebCore::CachedHTMLCollection< AllDescendantsCollection, CollectionTypeTraits< AllDescendants >::traversalType >
 CachedHTMLCollection (ContainerNode &base, CollectionType)
 
 CachedHTMLCollection (ContainerNode &base, CollectionType)
 
virtual ~CachedHTMLCollection ()
 
virtual ~CachedHTMLCollection ()
 
unsigned length () const final
 
unsigned length () const final
 
Elementitem (unsigned offset) const override
 
Elementitem (unsigned offset) const override
 
ElementnamedItem (const AtomicString &name) const override
 
ElementnamedItem (const AtomicString &name) const override
 
size_t memoryCost () const final
 
size_t memoryCost () const final
 
CollectionTraversalIterator collectionBegin () const
 
CollectionTraversalIterator collectionBegin () const
 
CollectionTraversalIterator collectionLast () const
 
CollectionTraversalIterator collectionLast () const
 
CollectionTraversalIterator collectionEnd () const
 
CollectionTraversalIterator collectionEnd () const
 
void collectionTraverseForward (CollectionTraversalIterator &current, unsigned count, unsigned &traversedCount) const
 
void collectionTraverseForward (CollectionTraversalIterator &current, unsigned count, unsigned &traversedCount) const
 
void collectionTraverseBackward (CollectionTraversalIterator &current, unsigned count) const
 
void collectionTraverseBackward (CollectionTraversalIterator &current, unsigned count) const
 
bool collectionCanTraverseBackward () const
 
bool collectionCanTraverseBackward () const
 
void willValidateIndexCache () const
 
void willValidateIndexCache () const
 
void invalidateCache (Document &) override
 
void invalidateCache (Document &) override
 
bool elementMatches (Element &) const
 
bool elementMatches (Element &) const
 
- Public Member Functions inherited from WebCore::HTMLCollection
virtual ~HTMLCollection ()
 
const Vector< AtomicString > & supportedPropertyNames ()
 
Vector< Ref< Element > > namedItems (const AtomicString &name) const
 
bool isRootedAtDocument () const
 
NodeListInvalidationType invalidationType () const
 
CollectionType type () const
 
ContainerNodeownerNode () const
 
ContainerNoderootNode () const
 
void invalidateCacheForAttribute (const QualifiedName *attributeName)
 
bool hasNamedElementCache () const
 
virtual ~HTMLCollection ()
 
const Vector< AtomicString > & supportedPropertyNames ()
 
Vector< Ref< Element > > namedItems (const AtomicString &name) const
 
bool isRootedAtDocument () const
 
NodeListInvalidationType invalidationType () const
 
CollectionType type () const
 
ContainerNodeownerNode () const
 
ContainerNoderootNode () const
 
void invalidateCacheForAttribute (const QualifiedName *attributeName)
 
bool hasNamedElementCache () const
 
- Public Member Functions inherited from WebCore::NodeList
virtual ~NodeList ()
 
Iterator createIterator ()
 
virtual bool isLiveNodeList () const
 
virtual bool isChildNodeList () const
 
virtual bool isEmptyNodeList () const
 
virtual ~NodeList ()
 
Iterator createIterator ()
 
virtual bool isLiveNodeList () const
 
virtual bool isChildNodeList () const
 
virtual bool isEmptyNodeList () const
 
- Public Member Functions inherited from WebCore::ScriptWrappable
JSDOMObjectwrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
JSDOMObjectwrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
- Public Member Functions inherited from WTF::RefCounted< NodeList >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static Ref< AllDescendantsCollectioncreate (ContainerNode &rootNode, CollectionType type)
 
- Static Public Member Functions inherited from WebCore::ScriptWrappable
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 

Protected Member Functions

 AllDescendantsCollection (ContainerNode &rootNode, CollectionType type)
 
- Protected Member Functions inherited from WebCore::HTMLCollection
 HTMLCollection (ContainerNode &base, CollectionType)
 
virtual void updateNamedElementCache () const
 
WEBCORE_EXPORT ElementnamedItemSlow (const AtomicString &name) const
 
void setNamedItemCache (std::unique_ptr< CollectionNamedElementCache >) const
 
const CollectionNamedElementCachenamedItemCaches () const
 
Documentdocument () const
 
void invalidateNamedElementCache (Document &) const
 
 HTMLCollection (ContainerNode &base, CollectionType)
 
virtual void updateNamedElementCache () const
 
WEBCORE_EXPORT ElementnamedItemSlow (const AtomicString &name) const
 
void setNamedItemCache (std::unique_ptr< CollectionNamedElementCache >) const
 
const CollectionNamedElementCachenamedItemCaches () const
 
Documentdocument () const
 
void invalidateNamedElementCache (Document &) const
 
- Protected Member Functions inherited from WebCore::ScriptWrappable
 ~ScriptWrappable ()
 
 ~ScriptWrappable ()
 
- Protected Member Functions inherited from WTF::RefCounted< NodeList >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Additional Inherited Members

- Public Types inherited from WebCore::CachedHTMLCollection< AllDescendantsCollection, CollectionTypeTraits< AllDescendants >::traversalType >
using CollectionTraversalIterator = typename CollectionTraversal< traversalType >::Iterator
 
using CollectionTraversalIterator = typename CollectionTraversal< traversalType >::Iterator
 
- Protected Types inherited from WebCore::HTMLCollection
enum  RootType { IsRootedAtNode, IsRootedAtDocument, IsRootedAtNode, IsRootedAtDocument }
 
enum  RootType { IsRootedAtNode, IsRootedAtDocument, IsRootedAtNode, IsRootedAtDocument }
 
- Static Protected Member Functions inherited from WebCore::HTMLCollection
static RootType rootTypeFromCollectionType (CollectionType)
 
static RootType rootTypeFromCollectionType (CollectionType)
 
- Protected Attributes inherited from WebCore::HTMLCollection
Ref< ContainerNodem_ownerNode
 
std::unique_ptr< CollectionNamedElementCachem_namedElementCache
 
const unsigned m_collectionType: 5
 
const unsigned m_invalidationType: 4
 
const unsigned m_rootType: 1
 

Constructor & Destructor Documentation

◆ AllDescendantsCollection()

WebCore::AllDescendantsCollection::AllDescendantsCollection ( ContainerNode rootNode,
CollectionType  type 
)
inlineprotected

Member Function Documentation

◆ create()

static Ref<AllDescendantsCollection> WebCore::AllDescendantsCollection::create ( ContainerNode rootNode,
CollectionType  type 
)
inlinestatic

◆ elementMatches()

bool WebCore::AllDescendantsCollection::elementMatches ( Element ) const
inline

The documentation for this class was generated from the following file: