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

#include <TreeScope.h>

Inheritance diagram for WebCore::TreeScope:
WebCore::Document WebCore::Document WebCore::SameSizeAsShadowRoot WebCore::ShadowRoot WebCore::ShadowRoot WebCore::HTMLDocument WebCore::HTMLDocument WebCore::XMLDocument WebCore::XMLDocument WebCore::HTMLDocument WebCore::HTMLDocument WebCore::XMLDocument WebCore::XMLDocument

Public Member Functions

TreeScopeparentTreeScope () const
 
void setParentTreeScope (TreeScope &)
 
ElementfocusedElementInScope ()
 
ElementpointerLockElement () const
 
WEBCORE_EXPORT ElementgetElementById (const AtomicString &) const
 
WEBCORE_EXPORT ElementgetElementById (const String &) const
 
const Vector< Element * > * getAllElementsById (const AtomicString &) const
 
bool hasElementWithId (const AtomicStringImpl &) const
 
bool containsMultipleElementsWithId (const AtomicString &id) const
 
void addElementById (const AtomicStringImpl &elementId, Element &, bool notifyObservers=true)
 
void removeElementById (const AtomicStringImpl &elementId, Element &, bool notifyObservers=true)
 
WEBCORE_EXPORT ElementgetElementByName (const AtomicString &) const
 
bool hasElementWithName (const AtomicStringImpl &) const
 
bool containsMultipleElementsWithName (const AtomicString &) const
 
void addElementByName (const AtomicStringImpl &, Element &)
 
void removeElementByName (const AtomicStringImpl &, Element &)
 
DocumentdocumentScope () const
 
NoderetargetToScope (Node &) const
 
NodeancestorNodeInThisScope (Node *) const
 
WEBCORE_EXPORT ElementancestorElementInThisScope (Element *) const
 
void addImageMap (HTMLMapElement &)
 
void removeImageMap (HTMLMapElement &)
 
HTMLMapElementgetImageMap (const String &url) const
 
bool shouldCacheLabelsByForAttribute () const
 
void addLabel (const AtomicStringImpl &forAttributeValue, HTMLLabelElement &)
 
void removeLabel (const AtomicStringImpl &forAttributeValue, HTMLLabelElement &)
 
HTMLLabelElementlabelElementForId (const AtomicString &forAttributeValue)
 
WEBCORE_EXPORT ElementelementFromPoint (int x, int y)
 
ElementfindAnchor (const String &name)
 
void adoptIfNeeded (Node &)
 
ContainerNoderootNode () const
 
IdTargetObserverRegistryidTargetObserverRegistry () const
 
TreeScopeparentTreeScope () const
 
void setParentTreeScope (TreeScope &)
 
ElementfocusedElementInScope ()
 
ElementpointerLockElement () const
 
WEBCORE_EXPORT ElementgetElementById (const AtomicString &) const
 
WEBCORE_EXPORT ElementgetElementById (const String &) const
 
const Vector< Element * > * getAllElementsById (const AtomicString &) const
 
bool hasElementWithId (const AtomicStringImpl &) const
 
bool containsMultipleElementsWithId (const AtomicString &id) const
 
void addElementById (const AtomicStringImpl &elementId, Element &, bool notifyObservers=true)
 
void removeElementById (const AtomicStringImpl &elementId, Element &, bool notifyObservers=true)
 
WEBCORE_EXPORT ElementgetElementByName (const AtomicString &) const
 
bool hasElementWithName (const AtomicStringImpl &) const
 
bool containsMultipleElementsWithName (const AtomicString &) const
 
void addElementByName (const AtomicStringImpl &, Element &)
 
void removeElementByName (const AtomicStringImpl &, Element &)
 
DocumentdocumentScope () const
 
NoderetargetToScope (Node &) const
 
NodeancestorNodeInThisScope (Node *) const
 
WEBCORE_EXPORT ElementancestorElementInThisScope (Element *) const
 
void addImageMap (HTMLMapElement &)
 
void removeImageMap (HTMLMapElement &)
 
HTMLMapElementgetImageMap (const String &url) const
 
bool shouldCacheLabelsByForAttribute () const
 
void addLabel (const AtomicStringImpl &forAttributeValue, HTMLLabelElement &)
 
void removeLabel (const AtomicStringImpl &forAttributeValue, HTMLLabelElement &)
 
HTMLLabelElementlabelElementForId (const AtomicString &forAttributeValue)
 
WEBCORE_EXPORT ElementelementFromPoint (int x, int y)
 
ElementfindAnchor (const String &name)
 
void adoptIfNeeded (Node &)
 
ContainerNoderootNode () const
 
IdTargetObserverRegistryidTargetObserverRegistry () const
 

Static Public Member Functions

static ptrdiff_t documentScopeMemoryOffset ()
 
static ptrdiff_t documentScopeMemoryOffset ()
 

Protected Member Functions

 TreeScope (ShadowRoot &, Document &)
 
 TreeScope (Document &)
 
 ~TreeScope ()
 
void destroyTreeScopeData ()
 
void setDocumentScope (Document &document)
 
NodenodeFromPoint (const LayoutPoint &clientPoint, LayoutPoint *localPoint)
 
 TreeScope (ShadowRoot &, Document &)
 
 TreeScope (Document &)
 
 ~TreeScope ()
 
void destroyTreeScopeData ()
 
void setDocumentScope (Document &document)
 
NodenodeFromPoint (const LayoutPoint &clientPoint, LayoutPoint *localPoint)
 

Friends

class Document
 GenericDocument with UTF8 encoding. More...
 
class TreeScopeAdopter
 

Constructor & Destructor Documentation

◆ TreeScope() [1/4]

WebCore::TreeScope::TreeScope ( ShadowRoot shadowRoot,
Document document 
)
protected

◆ TreeScope() [2/4]

WebCore::TreeScope::TreeScope ( Document document)
explicitprotected

◆ ~TreeScope() [1/2]

WebCore::TreeScope::~TreeScope ( )
protected

◆ TreeScope() [3/4]

WebCore::TreeScope::TreeScope ( ShadowRoot ,
Document  
)
protected

◆ TreeScope() [4/4]

WebCore::TreeScope::TreeScope ( Document )
explicitprotected

◆ ~TreeScope() [2/2]

WebCore::TreeScope::~TreeScope ( )
protected

Member Function Documentation

◆ addElementById() [1/2]

void WebCore::TreeScope::addElementById ( const AtomicStringImpl elementId,
Element element,
bool  notifyObservers = true 
)

◆ addElementById() [2/2]

void WebCore::TreeScope::addElementById ( const AtomicStringImpl elementId,
Element ,
bool  notifyObservers = true 
)

◆ addElementByName() [1/2]

void WebCore::TreeScope::addElementByName ( const AtomicStringImpl name,
Element element 
)

◆ addElementByName() [2/2]

void WebCore::TreeScope::addElementByName ( const AtomicStringImpl ,
Element  
)

◆ addImageMap() [1/2]

void WebCore::TreeScope::addImageMap ( HTMLMapElement imageMap)

◆ addImageMap() [2/2]

void WebCore::TreeScope::addImageMap ( HTMLMapElement )

◆ addLabel() [1/2]

void WebCore::TreeScope::addLabel ( const AtomicStringImpl forAttributeValue,
HTMLLabelElement element 
)

◆ addLabel() [2/2]

void WebCore::TreeScope::addLabel ( const AtomicStringImpl forAttributeValue,
HTMLLabelElement  
)

◆ adoptIfNeeded() [1/2]

void WebCore::TreeScope::adoptIfNeeded ( Node )

◆ adoptIfNeeded() [2/2]

void WebCore::TreeScope::adoptIfNeeded ( Node node)

◆ ancestorElementInThisScope() [1/2]

Element * WebCore::TreeScope::ancestorElementInThisScope ( Element element) const

◆ ancestorElementInThisScope() [2/2]

WEBCORE_EXPORT Element* WebCore::TreeScope::ancestorElementInThisScope ( Element ) const

◆ ancestorNodeInThisScope() [1/2]

Node * WebCore::TreeScope::ancestorNodeInThisScope ( Node node) const

◆ ancestorNodeInThisScope() [2/2]

Node* WebCore::TreeScope::ancestorNodeInThisScope ( Node ) const

◆ containsMultipleElementsWithId() [1/2]

bool WebCore::TreeScope::containsMultipleElementsWithId ( const AtomicString id) const
inline

◆ containsMultipleElementsWithId() [2/2]

bool WebCore::TreeScope::containsMultipleElementsWithId ( const AtomicString id) const

◆ containsMultipleElementsWithName() [1/2]

bool WebCore::TreeScope::containsMultipleElementsWithName ( const AtomicString ) const

◆ containsMultipleElementsWithName() [2/2]

bool WebCore::TreeScope::containsMultipleElementsWithName ( const AtomicString name) const
inline

◆ destroyTreeScopeData() [1/2]

void WebCore::TreeScope::destroyTreeScopeData ( )
protected

◆ destroyTreeScopeData() [2/2]

void WebCore::TreeScope::destroyTreeScopeData ( )
protected

◆ documentScope() [1/2]

Document& WebCore::TreeScope::documentScope ( ) const
inline

◆ documentScope() [2/2]

Document& WebCore::TreeScope::documentScope ( ) const
inline

◆ documentScopeMemoryOffset() [1/2]

static ptrdiff_t WebCore::TreeScope::documentScopeMemoryOffset ( )
inlinestatic

◆ documentScopeMemoryOffset() [2/2]

static ptrdiff_t WebCore::TreeScope::documentScopeMemoryOffset ( )
inlinestatic

◆ elementFromPoint() [1/2]

WEBCORE_EXPORT Element* WebCore::TreeScope::elementFromPoint ( int  x,
int  y 
)

◆ elementFromPoint() [2/2]

Element * WebCore::TreeScope::elementFromPoint ( int  x,
int  y 
)

◆ findAnchor() [1/2]

Element* WebCore::TreeScope::findAnchor ( const String name)

◆ findAnchor() [2/2]

Element * WebCore::TreeScope::findAnchor ( const String name)

◆ focusedElementInScope() [1/2]

Element* WebCore::TreeScope::focusedElementInScope ( )

◆ focusedElementInScope() [2/2]

Element * WebCore::TreeScope::focusedElementInScope ( )

◆ getAllElementsById() [1/2]

const Vector<Element*>* WebCore::TreeScope::getAllElementsById ( const AtomicString ) const

◆ getAllElementsById() [2/2]

const Vector< Element * > * WebCore::TreeScope::getAllElementsById ( const AtomicString elementId) const

◆ getElementById() [1/4]

Element * WebCore::TreeScope::getElementById ( const AtomicString elementId) const

◆ getElementById() [2/4]

WEBCORE_EXPORT Element* WebCore::TreeScope::getElementById ( const AtomicString ) const

◆ getElementById() [3/4]

Element * WebCore::TreeScope::getElementById ( const String elementId) const

◆ getElementById() [4/4]

WEBCORE_EXPORT Element* WebCore::TreeScope::getElementById ( const String ) const

◆ getElementByName() [1/2]

WEBCORE_EXPORT Element* WebCore::TreeScope::getElementByName ( const AtomicString ) const

◆ getElementByName() [2/2]

Element * WebCore::TreeScope::getElementByName ( const AtomicString name) const

◆ getImageMap() [1/2]

HTMLMapElement * WebCore::TreeScope::getImageMap ( const String url) const

◆ getImageMap() [2/2]

HTMLMapElement* WebCore::TreeScope::getImageMap ( const String url) const

◆ hasElementWithId() [1/2]

bool WebCore::TreeScope::hasElementWithId ( const AtomicStringImpl id) const
inline

◆ hasElementWithId() [2/2]

bool WebCore::TreeScope::hasElementWithId ( const AtomicStringImpl ) const

◆ hasElementWithName() [1/2]

bool WebCore::TreeScope::hasElementWithName ( const AtomicStringImpl ) const

◆ hasElementWithName() [2/2]

bool WebCore::TreeScope::hasElementWithName ( const AtomicStringImpl id) const
inline

◆ idTargetObserverRegistry() [1/2]

IdTargetObserverRegistry& WebCore::TreeScope::idTargetObserverRegistry ( ) const
inline

◆ idTargetObserverRegistry() [2/2]

IdTargetObserverRegistry& WebCore::TreeScope::idTargetObserverRegistry ( ) const
inline

◆ labelElementForId() [1/2]

HTMLLabelElement* WebCore::TreeScope::labelElementForId ( const AtomicString forAttributeValue)

◆ labelElementForId() [2/2]

HTMLLabelElement * WebCore::TreeScope::labelElementForId ( const AtomicString forAttributeValue)

◆ nodeFromPoint() [1/2]

Node * WebCore::TreeScope::nodeFromPoint ( const LayoutPoint clientPoint,
LayoutPoint localPoint 
)
protected

◆ nodeFromPoint() [2/2]

Node* WebCore::TreeScope::nodeFromPoint ( const LayoutPoint clientPoint,
LayoutPoint localPoint 
)
protected

◆ parentTreeScope() [1/2]

TreeScope* WebCore::TreeScope::parentTreeScope ( ) const
inline

◆ parentTreeScope() [2/2]

TreeScope* WebCore::TreeScope::parentTreeScope ( ) const
inline

◆ pointerLockElement() [1/2]

Element* WebCore::TreeScope::pointerLockElement ( ) const

◆ pointerLockElement() [2/2]

Element* WebCore::TreeScope::pointerLockElement ( ) const

◆ removeElementById() [1/2]

void WebCore::TreeScope::removeElementById ( const AtomicStringImpl elementId,
Element element,
bool  notifyObservers = true 
)

◆ removeElementById() [2/2]

void WebCore::TreeScope::removeElementById ( const AtomicStringImpl elementId,
Element ,
bool  notifyObservers = true 
)

◆ removeElementByName() [1/2]

void WebCore::TreeScope::removeElementByName ( const AtomicStringImpl ,
Element  
)

◆ removeElementByName() [2/2]

void WebCore::TreeScope::removeElementByName ( const AtomicStringImpl name,
Element element 
)

◆ removeImageMap() [1/2]

void WebCore::TreeScope::removeImageMap ( HTMLMapElement )

◆ removeImageMap() [2/2]

void WebCore::TreeScope::removeImageMap ( HTMLMapElement imageMap)

◆ removeLabel() [1/2]

void WebCore::TreeScope::removeLabel ( const AtomicStringImpl forAttributeValue,
HTMLLabelElement  
)

◆ removeLabel() [2/2]

void WebCore::TreeScope::removeLabel ( const AtomicStringImpl forAttributeValue,
HTMLLabelElement element 
)

◆ retargetToScope() [1/2]

Node& WebCore::TreeScope::retargetToScope ( Node ) const

◆ retargetToScope() [2/2]

Node & WebCore::TreeScope::retargetToScope ( Node node) const

◆ rootNode() [1/2]

ContainerNode& WebCore::TreeScope::rootNode ( ) const
inline

◆ rootNode() [2/2]

ContainerNode& WebCore::TreeScope::rootNode ( ) const
inline

◆ setDocumentScope() [1/2]

void WebCore::TreeScope::setDocumentScope ( Document document)
inlineprotected

◆ setDocumentScope() [2/2]

void WebCore::TreeScope::setDocumentScope ( Document document)
inlineprotected

◆ setParentTreeScope() [1/2]

void WebCore::TreeScope::setParentTreeScope ( TreeScope )

◆ setParentTreeScope() [2/2]

void WebCore::TreeScope::setParentTreeScope ( TreeScope newParentScope)

◆ shouldCacheLabelsByForAttribute() [1/2]

bool WebCore::TreeScope::shouldCacheLabelsByForAttribute ( ) const
inline

◆ shouldCacheLabelsByForAttribute() [2/2]

bool WebCore::TreeScope::shouldCacheLabelsByForAttribute ( ) const
inline

Friends And Related Function Documentation

◆ Document

Document
friend

GenericDocument with UTF8 encoding.

◆ TreeScopeAdopter


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