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

#include <HTMLNameCollection.h>

Inheritance diagram for WebCore::DocumentNameCollection:
WebCore::HTMLNameCollection< DocumentNameCollection, CollectionTraversalType::Descendants > WebCore::CachedHTMLCollection< DocumentNameCollection, 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

Public Member Functions

bool elementMatches (const Element &element) const
 
- Public Member Functions inherited from WebCore::HTMLNameCollection< DocumentNameCollection, CollectionTraversalType::Descendants >
virtual ~HTMLNameCollection ()
 
Documentdocument ()
 
- Public Member Functions inherited from WebCore::CachedHTMLCollection< DocumentNameCollection, 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< DocumentNameCollectioncreate (Document &document, CollectionType type, const AtomicString &name)
 
static bool elementMatchesIfIdAttributeMatch (const Element &)
 
static bool elementMatchesIfNameAttributeMatch (const Element &)
 
static bool elementMatches (const Element &, const AtomicStringImpl *)
 
- Static Public Member Functions inherited from WebCore::ScriptWrappable
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 

Additional Inherited Members

- Public Types inherited from WebCore::CachedHTMLCollection< DocumentNameCollection, 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 }
 
- Protected Member Functions inherited from WebCore::HTMLNameCollection< DocumentNameCollection, CollectionTraversalType::Descendants >
 HTMLNameCollection (Document &, CollectionType, const AtomicString &name)
 
- 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
 
- Static Protected Member Functions inherited from WebCore::HTMLCollection
static RootType rootTypeFromCollectionType (CollectionType)
 
static RootType rootTypeFromCollectionType (CollectionType)
 
- Protected Attributes inherited from WebCore::HTMLNameCollection< DocumentNameCollection, CollectionTraversalType::Descendants >
AtomicString m_name
 
- 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
 

Member Function Documentation

◆ create()

static Ref<DocumentNameCollection> WebCore::DocumentNameCollection::create ( Document document,
CollectionType  type,
const AtomicString name 
)
inlinestatic

◆ elementMatches() [1/2]

bool WebCore::DocumentNameCollection::elementMatches ( const Element element) const
inline

◆ elementMatches() [2/2]

bool WebCore::DocumentNameCollection::elementMatches ( const Element element,
const AtomicStringImpl name 
)
static

◆ elementMatchesIfIdAttributeMatch()

bool WebCore::DocumentNameCollection::elementMatchesIfIdAttributeMatch ( const Element element)
static

◆ elementMatchesIfNameAttributeMatch()

bool WebCore::DocumentNameCollection::elementMatchesIfNameAttributeMatch ( const Element element)
static

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