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

#include <ShadowRoot.h>

Inheritance diagram for WebCore::ShadowRoot:
WebCore::DocumentFragment WebCore::TreeScope WebCore::DocumentFragment WebCore::TreeScope WebCore::ContainerNode WebCore::ContainerNode WebCore::ContainerNode WebCore::ContainerNode WebCore::Node WebCore::Node WebCore::Node WebCore::Node WebCore::Node WebCore::Node WebCore::Node WebCore::Node

Public Member Functions

virtual ~ShadowRoot ()
 
Style::ScopestyleScope ()
 
bool resetStyleInheritance () const
 
void setResetStyleInheritance (bool)
 
Elementhost () const
 
void setHost (Element *host)
 
String innerHTML () const
 
ExceptionOr< voidsetInnerHTML (const String &)
 
ElementactiveElement () const
 
ShadowRootMode mode () const
 
void removeAllEventListeners () override
 
HTMLSlotElementfindAssignedSlot (const Node &)
 
void addSlotElementByName (const AtomicString &, HTMLSlotElement &)
 
void removeSlotElementByName (const AtomicString &, HTMLSlotElement &)
 
void didRemoveAllChildrenOfShadowHost ()
 
void didChangeDefaultSlot ()
 
void hostChildElementDidChange (const Element &)
 
void hostChildElementDidChangeSlotAttribute (Element &, const AtomicString &oldValue, const AtomicString &newValue)
 
const Vector< Node * > * assignedNodesForSlot (const HTMLSlotElement &)
 
virtual ~ShadowRoot ()
 
Style::ScopestyleScope ()
 
bool resetStyleInheritance () const
 
void setResetStyleInheritance (bool)
 
Elementhost () const
 
void setHost (Element *host)
 
String innerHTML () const
 
ExceptionOr< voidsetInnerHTML (const String &)
 
ElementactiveElement () const
 
ShadowRootMode mode () const
 
void removeAllEventListeners () override
 
HTMLSlotElementfindAssignedSlot (const Node &)
 
void addSlotElementByName (const AtomicString &, HTMLSlotElement &)
 
void removeSlotElementByName (const AtomicString &, HTMLSlotElement &)
 
void didRemoveAllChildrenOfShadowHost ()
 
void didChangeDefaultSlot ()
 
void hostChildElementDidChange (const Element &)
 
void hostChildElementDidChangeSlotAttribute (Element &, const AtomicString &oldValue, const AtomicString &newValue)
 
const Vector< Node * > * assignedNodesForSlot (const HTMLSlotElement &)
 
- Public Member Functions inherited from WebCore::DocumentFragment
void parseHTML (const String &, Element *contextElement, ParserContentPolicy=AllowScriptingContent)
 
bool parseXML (const String &, Element *contextElement, ParserContentPolicy=AllowScriptingContent)
 
bool canContainRangeEndPoint () const final
 
virtual bool isTemplateContent () const
 
WEBCORE_EXPORT ElementgetElementById (const AtomicString &) const
 
void parseHTML (const String &, Element *contextElement, ParserContentPolicy=AllowScriptingContent)
 
bool parseXML (const String &, Element *contextElement, ParserContentPolicy=AllowScriptingContent)
 
bool canContainRangeEndPoint () const final
 
virtual bool isTemplateContent () const
 
WEBCORE_EXPORT ElementgetElementById (const AtomicString &) const
 
- Public Member Functions inherited from WebCore::ContainerNode
virtual ~ContainerNode ()
 
NodefirstChild () const
 
NodelastChild () const
 
bool hasChildNodes () const
 
bool hasOneChild () const
 
bool directChildNeedsStyleRecalc () const
 
void setDirectChildNeedsStyleRecalc ()
 
WEBCORE_EXPORT unsigned countChildNodes () const
 
WEBCORE_EXPORT NodetraverseToChildAt (unsigned) const
 
ExceptionOr< voidinsertBefore (Node &newChild, Node *refChild)
 
ExceptionOr< voidreplaceChild (Node &newChild, Node &oldChild)
 
WEBCORE_EXPORT ExceptionOr< voidremoveChild (Node &child)
 
WEBCORE_EXPORT ExceptionOr< voidappendChild (Node &newChild)
 
void replaceAllChildren (Ref< Node > &&)
 
void replaceAllChildren (std::nullptr_t)
 
void parserAppendChild (Node &)
 
void parserRemoveChild (Node &)
 
void parserInsertBefore (Node &newChild, Node &refChild)
 
void removeChildren ()
 
void takeAllChildrenFrom (ContainerNode *)
 
void cloneChildNodes (ContainerNode &clone)
 
virtual void childrenChanged (const ChildChange &)
 
void disconnectDescendantFrames ()
 
RenderElementrenderer () const
 
virtual LayoutRect absoluteEventHandlerBounds (bool &)
 
WEBCORE_EXPORT ExceptionOr< Element * > querySelector (const String &selectors)
 
WEBCORE_EXPORT ExceptionOr< Ref< NodeList > > querySelectorAll (const String &selectors)
 
WEBCORE_EXPORT Ref< HTMLCollectiongetElementsByTagName (const AtomicString &)
 
WEBCORE_EXPORT Ref< HTMLCollectiongetElementsByTagNameNS (const AtomicString &namespaceURI, const AtomicString &localName)
 
WEBCORE_EXPORT Ref< NodeListgetElementsByName (const String &elementName)
 
WEBCORE_EXPORT Ref< HTMLCollectiongetElementsByClassName (const AtomicString &classNames)
 
Ref< RadioNodeListradioNodeList (const AtomicString &)
 
WEBCORE_EXPORT Ref< HTMLCollectionchildren ()
 
WEBCORE_EXPORT ElementfirstElementChild () const
 
WEBCORE_EXPORT ElementlastElementChild () const
 
WEBCORE_EXPORT unsigned childElementCount () const
 
ExceptionOr< voidappend (Vector< NodeOrString > &&)
 
ExceptionOr< voidprepend (Vector< NodeOrString > &&)
 
ExceptionOr< voidensurePreInsertionValidity (Node &newChild, Node *refChild)
 
virtual ~ContainerNode ()
 
NodefirstChild () const
 
NodelastChild () const
 
bool hasChildNodes () const
 
bool hasOneChild () const
 
bool directChildNeedsStyleRecalc () const
 
void setDirectChildNeedsStyleRecalc ()
 
WEBCORE_EXPORT unsigned countChildNodes () const
 
WEBCORE_EXPORT NodetraverseToChildAt (unsigned) const
 
ExceptionOr< voidinsertBefore (Node &newChild, Node *refChild)
 
ExceptionOr< voidreplaceChild (Node &newChild, Node &oldChild)
 
WEBCORE_EXPORT ExceptionOr< voidremoveChild (Node &child)
 
WEBCORE_EXPORT ExceptionOr< voidappendChild (Node &newChild)
 
void replaceAllChildren (Ref< Node > &&)
 
void replaceAllChildren (std::nullptr_t)
 
void parserAppendChild (Node &)
 
void parserRemoveChild (Node &)
 
void parserInsertBefore (Node &newChild, Node &refChild)
 
void removeChildren ()
 
void takeAllChildrenFrom (ContainerNode *)
 
void cloneChildNodes (ContainerNode &clone)
 
virtual void childrenChanged (const ChildChange &)
 
void disconnectDescendantFrames ()
 
RenderElementrenderer () const
 
virtual LayoutRect absoluteEventHandlerBounds (bool &)
 
WEBCORE_EXPORT ExceptionOr< Element * > querySelector (const String &selectors)
 
WEBCORE_EXPORT ExceptionOr< Ref< NodeList > > querySelectorAll (const String &selectors)
 
WEBCORE_EXPORT Ref< HTMLCollectiongetElementsByTagName (const AtomicString &)
 
WEBCORE_EXPORT Ref< HTMLCollectiongetElementsByTagNameNS (const AtomicString &namespaceURI, const AtomicString &localName)
 
WEBCORE_EXPORT Ref< NodeListgetElementsByName (const String &elementName)
 
WEBCORE_EXPORT Ref< HTMLCollectiongetElementsByClassName (const AtomicString &classNames)
 
Ref< RadioNodeListradioNodeList (const AtomicString &)
 
WEBCORE_EXPORT Ref< HTMLCollectionchildren ()
 
WEBCORE_EXPORT ElementfirstElementChild () const
 
WEBCORE_EXPORT ElementlastElementChild () const
 
WEBCORE_EXPORT unsigned childElementCount () const
 
ExceptionOr< voidappend (Vector< NodeOrString > &&)
 
ExceptionOr< voidprepend (Vector< NodeOrString > &&)
 
ExceptionOr< voidensurePreInsertionValidity (Node &newChild, Node *refChild)
 
- Public Member Functions inherited from WebCore::Node
virtual ~Node ()
 
void willBeDeletedFrom (Document &)
 
bool hasTagName (const HTMLQualifiedName &) const
 
bool hasTagName (const MathMLQualifiedName &) const
 
bool hasTagName (const SVGQualifiedName &) const
 
virtual String nodeValue () const
 
virtual ExceptionOr< voidsetNodeValue (const String &)
 
virtual size_t approximateMemoryCost () const
 
ContainerNodeparentNode () const
 
ElementparentElement () const
 
NodepreviousSibling () const
 
NodenextSibling () const
 
WEBCORE_EXPORT RefPtr< NodeListchildNodes ()
 
NodefirstChild () const
 
NodelastChild () const
 
bool hasAttributes () const
 
NamedNodeMapattributes () const
 
NodepseudoAwareNextSibling () const
 
NodepseudoAwarePreviousSibling () const
 
NodepseudoAwareFirstChild () const
 
NodepseudoAwareLastChild () const
 
WEBCORE_EXPORT const URLbaseURI () const
 
void getSubresourceURLs (ListHashSet< URL > &) const
 
WEBCORE_EXPORT ExceptionOr< voidinsertBefore (Node &newChild, Node *refChild)
 
WEBCORE_EXPORT ExceptionOr< voidreplaceChild (Node &newChild, Node &oldChild)
 
WEBCORE_EXPORT ExceptionOr< voidremoveChild (Node &child)
 
WEBCORE_EXPORT ExceptionOr< voidappendChild (Node &newChild)
 
bool hasChildNodes () const
 
Ref< NodecloneNode (bool deep)
 
WEBCORE_EXPORT ExceptionOr< Ref< Node > > cloneNodeForBindings (bool deep)
 
virtual const AtomicStringlocalName () const
 
virtual const AtomicStringnamespaceURI () const
 
virtual const AtomicStringprefix () const
 
virtual ExceptionOr< voidsetPrefix (const AtomicString &)
 
WEBCORE_EXPORT void normalize ()
 
bool isSameNode (Node *other) const
 
WEBCORE_EXPORT bool isEqualNode (Node *) const
 
WEBCORE_EXPORT bool isDefaultNamespace (const AtomicString &namespaceURI) const
 
WEBCORE_EXPORT const AtomicStringlookupPrefix (const AtomicString &namespaceURI) const
 
WEBCORE_EXPORT const AtomicStringlookupNamespaceURI (const AtomicString &prefix) const
 
WEBCORE_EXPORT String textContent (bool convertBRsToNewlines=false) const
 
WEBCORE_EXPORT ExceptionOr< voidsetTextContent (const String &)
 
NodelastDescendant () const
 
NodefirstDescendant () const
 
WEBCORE_EXPORT ElementpreviousElementSibling () const
 
WEBCORE_EXPORT ElementnextElementSibling () const
 
ExceptionOr< voidbefore (Vector< NodeOrString > &&)
 
ExceptionOr< voidafter (Vector< NodeOrString > &&)
 
ExceptionOr< voidreplaceWith (Vector< NodeOrString > &&)
 
WEBCORE_EXPORT ExceptionOr< voidremove ()
 
bool isElementNode () const
 
bool isContainerNode () const
 
bool isTextNode () const
 
bool isHTMLElement () const
 
bool isSVGElement () const
 
bool isMathMLElement () const
 
bool isPseudoElement () const
 
bool isBeforePseudoElement () const
 
bool isAfterPseudoElement () const
 
PseudoId pseudoId () const
 
virtual bool isMediaControlElement () const
 
virtual bool isMediaControls () const
 
bool isStyledElement () const
 
virtual bool isAttributeNode () const
 
virtual bool isCharacterDataNode () const
 
virtual bool isFrameOwnerElement () const
 
virtual bool isPluginElement () const
 
bool isDocumentNode () const
 
bool isTreeScope () const
 
bool isDocumentFragment () const
 
bool isShadowRoot () const
 
bool hasCustomStyleResolveCallbacks () const
 
bool hasSyntheticAttrChildNodes () const
 
void setHasSyntheticAttrChildNodes (bool flag)
 
WEBCORE_EXPORT ElementshadowHost () const
 
WEBCORE_EXPORT NodedeprecatedShadowAncestorNode () const
 
ShadowRootcontainingShadowRoot () const
 
ShadowRootshadowRoot () const
 
bool isClosedShadowHidden (const Node &) const
 
HTMLSlotElementassignedSlot () const
 
HTMLSlotElementassignedSlotForBindings () const
 
bool isUndefinedCustomElement () const
 
bool isCustomElementUpgradeCandidate () const
 
bool isDefinedCustomElement () const
 
bool isFailedCustomElement () const
 
NodenonBoundaryShadowTreeRootNode ()
 
ContainerNodeparentOrShadowHostNode () const
 
ContainerNodeparentInComposedTree () const
 
ElementparentElementInComposedTree () const
 
ElementparentOrShadowHostElement () const
 
void setParentNode (ContainerNode *)
 
NoderootNode () const
 
NodeshadowIncludingRoot () const
 
NodegetRootNode (const GetRootNodeOptions &) const
 
voidopaqueRoot () const
 
ContainerNodeparentNodeGuaranteedHostFree () const
 
ContainerNodenonShadowBoundaryParentNode () const
 
bool selfOrAncestorHasDirAutoAttribute () const
 
void setSelfOrAncestorHasDirAutoAttribute (bool flag)
 
ElementenclosingLinkEventParentOrSelf ()
 
void setPreviousSibling (Node *previous)
 
void setNextSibling (Node *next)
 
bool isRootEditableElement () const
 
WEBCORE_EXPORT ElementrootEditableElement () const
 
virtual void finishParsingChildren ()
 
virtual void beginParsingChildren ()
 
virtual bool sheetLoaded ()
 
virtual void notifyLoadedSheetAndAllCriticalSubresources (bool)
 
virtual void startLoadingDynamicSheet ()
 
bool isUserActionElement () const
 
void setUserActionElement (bool flag)
 
bool inRenderedDocument () const
 
bool needsStyleRecalc () const
 
Style::Validity styleValidity () const
 
bool styleResolutionShouldRecompositeLayer () const
 
bool childNeedsStyleRecalc () const
 
bool styleIsAffectedByPreviousSibling () const
 
bool isEditingText () const
 
void setChildNeedsStyleRecalc ()
 
void clearChildNeedsStyleRecalc ()
 
void setHasValidStyle ()
 
bool isLink () const
 
void setIsLink (bool flag)
 
bool hasEventTargetData () const
 
void setHasEventTargetData (bool flag)
 
WEBCORE_EXPORT bool isContentEditable ()
 
bool isContentRichlyEditable ()
 
WEBCORE_EXPORT void inspect ()
 
bool hasEditableStyle (UserSelectAllTreatment treatment=UserSelectAllIsAlwaysNonEditable) const
 
bool hasRichlyEditableStyle () const
 
WEBCORE_EXPORT Editability computeEditability (UserSelectAllTreatment, ShouldUpdateStyle) const
 
WEBCORE_EXPORT LayoutRect renderRect (bool *isReplaced)
 
IntRect pixelSnappedRenderRect (bool *isReplaced)
 
WEBCORE_EXPORT unsigned computeNodeIndex () const
 
WEBCORE_EXPORT DocumentownerDocument () const
 
Documentdocument () const
 
TreeScopetreeScope () const
 
bool isConnected () const
 
bool isInUserAgentShadowTree () const
 
bool isInShadowTree () const
 
bool isInTreeScope () const
 
bool isDocumentTypeNode () const
 
unsigned countChildNodes () const
 
NodetraverseToChildAt (unsigned) const
 
ExceptionOr< voidcheckSetPrefix (const AtomicString &prefix)
 
WEBCORE_EXPORT bool isDescendantOf (const Node &) const
 
bool isDescendantOf (const Node *other) const
 
bool isDescendantOrShadowDescendantOf (const Node *) const
 
WEBCORE_EXPORT bool contains (const Node *) const
 
bool containsIncludingShadowDOM (const Node *) const
 
bool containsIncludingHostElements (const Node *) const
 
virtual bool offsetInCharacters () const
 
virtual int maxCharacterOffset () const
 
virtual bool canStartSelection () const
 
virtual bool shouldSelectOnMouseDown ()
 
FloatPoint convertToPage (const FloatPoint &) const
 
FloatPoint convertFromPage (const FloatPoint &) const
 
RenderObjectrenderer () const
 
void setRenderer (RenderObject *renderer)
 
WEBCORE_EXPORT RenderBoxrenderBox () const
 
RenderBoxModelObjectrenderBoxModelObject () const
 
const RenderStylerenderStyle () const
 
virtual const RenderStylecomputedStyle (PseudoId pseudoElementSpecifier=NOPSEUDO)
 
virtual void finishedInsertingSubtree ()
 
void invalidateNodeListAndCollectionCachesInAncestors (const QualifiedName *attrName=nullptr, Element *attributeOwnerElement=nullptr)
 
NodeListsNodeDatanodeLists ()
 
void clearNodeLists ()
 
virtual bool willRespondToMouseMoveEvents ()
 
virtual bool willRespondToMouseClickEvents ()
 
virtual bool willRespondToMouseWheelEvents ()
 
WEBCORE_EXPORT unsigned short compareDocumentPosition (Node &)
 
NodetoNode () override
 
EventTargetInterface eventTargetInterface () const override
 
ScriptExecutionContextscriptExecutionContext () const final
 
bool addEventListener (const AtomicString &eventType, Ref< EventListener > &&, const AddEventListenerOptions &) override
 
bool removeEventListener (const AtomicString &eventType, EventListener &, const ListenerOptions &) override
 
bool dispatchEvent (Event &) override
 
void dispatchScopedEvent (Event &)
 
virtual void handleLocalEvents (Event &)
 
void dispatchSubtreeModifiedEvent ()
 
bool dispatchDOMActivateEvent (int detail, Event &underlyingEvent)
 
bool dispatchBeforeLoadEvent (const String &sourceURL)
 
void dispatchInputEvent ()
 
virtual void defaultEventHandler (Event &)
 
void ref ()
 
void deref ()
 
bool hasOneRef () const
 
int refCount () const
 
EventTargetDataeventTargetData () final
 
EventTargetDataeventTargetDataConcurrently () final
 
EventTargetDataensureEventTargetData () final
 
HashMap< MutationObserver *, MutationRecordDeliveryOptionsregisteredMutationObservers (MutationObserver::MutationType, const QualifiedName *attributeName)
 
void registerMutationObserver (MutationObserver &, MutationObserverOptions, const HashSet< AtomicString > &attributeFilter)
 
void unregisterMutationObserver (MutationObserverRegistration &)
 
void registerTransientMutationObserver (MutationObserverRegistration &)
 
void unregisterTransientMutationObserver (MutationObserverRegistration &)
 
void notifyMutationObserversNodeWillDetach ()
 
WEBCORE_EXPORT void textRects (Vector< IntRect > &) const
 
unsigned connectedSubframeCount () const
 
void incrementConnectedSubframeCount (unsigned amount=1)
 
void decrementConnectedSubframeCount (unsigned amount=1)
 
void updateAncestorConnectedSubframeCountForRemoval () const
 
void updateAncestorConnectedSubframeCountForInsertion () const
 
virtual ~Node ()
 
void willBeDeletedFrom (Document &)
 
bool hasTagName (const HTMLQualifiedName &) const
 
bool hasTagName (const MathMLQualifiedName &) const
 
bool hasTagName (const SVGQualifiedName &) const
 
virtual String nodeValue () const
 
virtual ExceptionOr< voidsetNodeValue (const String &)
 
virtual size_t approximateMemoryCost () const
 
ContainerNodeparentNode () const
 
ElementparentElement () const
 
NodepreviousSibling () const
 
NodenextSibling () const
 
WEBCORE_EXPORT RefPtr< NodeListchildNodes ()
 
NodefirstChild () const
 
NodelastChild () const
 
bool hasAttributes () const
 
NamedNodeMapattributes () const
 
NodepseudoAwareNextSibling () const
 
NodepseudoAwarePreviousSibling () const
 
NodepseudoAwareFirstChild () const
 
NodepseudoAwareLastChild () const
 
WEBCORE_EXPORT const URLbaseURI () const
 
void getSubresourceURLs (ListHashSet< URL > &) const
 
WEBCORE_EXPORT ExceptionOr< voidinsertBefore (Node &newChild, Node *refChild)
 
WEBCORE_EXPORT ExceptionOr< voidreplaceChild (Node &newChild, Node &oldChild)
 
WEBCORE_EXPORT ExceptionOr< voidremoveChild (Node &child)
 
WEBCORE_EXPORT ExceptionOr< voidappendChild (Node &newChild)
 
bool hasChildNodes () const
 
Ref< NodecloneNode (bool deep)
 
WEBCORE_EXPORT ExceptionOr< Ref< Node > > cloneNodeForBindings (bool deep)
 
virtual const AtomicStringlocalName () const
 
virtual const AtomicStringnamespaceURI () const
 
virtual const AtomicStringprefix () const
 
virtual ExceptionOr< voidsetPrefix (const AtomicString &)
 
WEBCORE_EXPORT void normalize ()
 
bool isSameNode (Node *other) const
 
WEBCORE_EXPORT bool isEqualNode (Node *) const
 
WEBCORE_EXPORT bool isDefaultNamespace (const AtomicString &namespaceURI) const
 
WEBCORE_EXPORT const AtomicStringlookupPrefix (const AtomicString &namespaceURI) const
 
WEBCORE_EXPORT const AtomicStringlookupNamespaceURI (const AtomicString &prefix) const
 
WEBCORE_EXPORT String textContent (bool convertBRsToNewlines=false) const
 
WEBCORE_EXPORT ExceptionOr< voidsetTextContent (const String &)
 
NodelastDescendant () const
 
NodefirstDescendant () const
 
WEBCORE_EXPORT ElementpreviousElementSibling () const
 
WEBCORE_EXPORT ElementnextElementSibling () const
 
ExceptionOr< voidbefore (Vector< NodeOrString > &&)
 
ExceptionOr< voidafter (Vector< NodeOrString > &&)
 
ExceptionOr< voidreplaceWith (Vector< NodeOrString > &&)
 
WEBCORE_EXPORT ExceptionOr< voidremove ()
 
bool isElementNode () const
 
bool isContainerNode () const
 
bool isTextNode () const
 
bool isHTMLElement () const
 
bool isSVGElement () const
 
bool isMathMLElement () const
 
bool isPseudoElement () const
 
bool isBeforePseudoElement () const
 
bool isAfterPseudoElement () const
 
PseudoId pseudoId () const
 
virtual bool isMediaControlElement () const
 
virtual bool isMediaControls () const
 
bool isStyledElement () const
 
virtual bool isAttributeNode () const
 
virtual bool isCharacterDataNode () const
 
virtual bool isFrameOwnerElement () const
 
virtual bool isPluginElement () const
 
bool isDocumentNode () const
 
bool isTreeScope () const
 
bool isDocumentFragment () const
 
bool isShadowRoot () const
 
bool hasCustomStyleResolveCallbacks () const
 
bool hasSyntheticAttrChildNodes () const
 
void setHasSyntheticAttrChildNodes (bool flag)
 
WEBCORE_EXPORT ElementshadowHost () const
 
WEBCORE_EXPORT NodedeprecatedShadowAncestorNode () const
 
ShadowRootcontainingShadowRoot () const
 
ShadowRootshadowRoot () const
 
bool isClosedShadowHidden (const Node &) const
 
HTMLSlotElementassignedSlot () const
 
HTMLSlotElementassignedSlotForBindings () const
 
bool isUndefinedCustomElement () const
 
bool isCustomElementUpgradeCandidate () const
 
bool isDefinedCustomElement () const
 
bool isFailedCustomElement () const
 
NodenonBoundaryShadowTreeRootNode ()
 
ContainerNodeparentOrShadowHostNode () const
 
ContainerNodeparentInComposedTree () const
 
ElementparentElementInComposedTree () const
 
ElementparentOrShadowHostElement () const
 
void setParentNode (ContainerNode *)
 
NoderootNode () const
 
NodeshadowIncludingRoot () const
 
NodegetRootNode (const GetRootNodeOptions &) const
 
voidopaqueRoot () const
 
ContainerNodeparentNodeGuaranteedHostFree () const
 
ContainerNodenonShadowBoundaryParentNode () const
 
bool selfOrAncestorHasDirAutoAttribute () const
 
void setSelfOrAncestorHasDirAutoAttribute (bool flag)
 
ElementenclosingLinkEventParentOrSelf ()
 
void setPreviousSibling (Node *previous)
 
void setNextSibling (Node *next)
 
bool isRootEditableElement () const
 
WEBCORE_EXPORT ElementrootEditableElement () const
 
virtual void finishParsingChildren ()
 
virtual void beginParsingChildren ()
 
virtual bool sheetLoaded ()
 
virtual void notifyLoadedSheetAndAllCriticalSubresources (bool)
 
virtual void startLoadingDynamicSheet ()
 
bool isUserActionElement () const
 
void setUserActionElement (bool flag)
 
bool inRenderedDocument () const
 
bool needsStyleRecalc () const
 
Style::Validity styleValidity () const
 
bool styleResolutionShouldRecompositeLayer () const
 
bool childNeedsStyleRecalc () const
 
bool styleIsAffectedByPreviousSibling () const
 
bool isEditingText () const
 
void setChildNeedsStyleRecalc ()
 
void clearChildNeedsStyleRecalc ()
 
void setHasValidStyle ()
 
bool isLink () const
 
void setIsLink (bool flag)
 
bool hasEventTargetData () const
 
void setHasEventTargetData (bool flag)
 
WEBCORE_EXPORT bool isContentEditable ()
 
bool isContentRichlyEditable ()
 
WEBCORE_EXPORT void inspect ()
 
bool hasEditableStyle (UserSelectAllTreatment treatment=UserSelectAllIsAlwaysNonEditable) const
 
bool hasRichlyEditableStyle () const
 
WEBCORE_EXPORT Editability computeEditability (UserSelectAllTreatment, ShouldUpdateStyle) const
 
WEBCORE_EXPORT LayoutRect renderRect (bool *isReplaced)
 
IntRect pixelSnappedRenderRect (bool *isReplaced)
 
WEBCORE_EXPORT unsigned computeNodeIndex () const
 
WEBCORE_EXPORT DocumentownerDocument () const
 
Documentdocument () const
 
TreeScopetreeScope () const
 
bool isConnected () const
 
bool isInUserAgentShadowTree () const
 
bool isInShadowTree () const
 
bool isInTreeScope () const
 
bool isDocumentTypeNode () const
 
unsigned countChildNodes () const
 
NodetraverseToChildAt (unsigned) const
 
ExceptionOr< voidcheckSetPrefix (const AtomicString &prefix)
 
WEBCORE_EXPORT bool isDescendantOf (const Node &) const
 
bool isDescendantOf (const Node *other) const
 
bool isDescendantOrShadowDescendantOf (const Node *) const
 
WEBCORE_EXPORT bool contains (const Node *) const
 
bool containsIncludingShadowDOM (const Node *) const
 
bool containsIncludingHostElements (const Node *) const
 
virtual bool offsetInCharacters () const
 
virtual int maxCharacterOffset () const
 
virtual bool canStartSelection () const
 
virtual bool shouldSelectOnMouseDown ()
 
FloatPoint convertToPage (const FloatPoint &) const
 
FloatPoint convertFromPage (const FloatPoint &) const
 
RenderObjectrenderer () const
 
void setRenderer (RenderObject *renderer)
 
WEBCORE_EXPORT RenderBoxrenderBox () const
 
RenderBoxModelObjectrenderBoxModelObject () const
 
const RenderStylerenderStyle () const
 
virtual const RenderStylecomputedStyle (PseudoId pseudoElementSpecifier=NOPSEUDO)
 
virtual void finishedInsertingSubtree ()
 
void invalidateNodeListAndCollectionCachesInAncestors (const QualifiedName *attrName=nullptr, Element *attributeOwnerElement=nullptr)
 
NodeListsNodeDatanodeLists ()
 
void clearNodeLists ()
 
virtual bool willRespondToMouseMoveEvents ()
 
virtual bool willRespondToMouseClickEvents ()
 
virtual bool willRespondToMouseWheelEvents ()
 
WEBCORE_EXPORT unsigned short compareDocumentPosition (Node &)
 
NodetoNode () override
 
EventTargetInterface eventTargetInterface () const override
 
ScriptExecutionContextscriptExecutionContext () const final
 
bool addEventListener (const AtomicString &eventType, Ref< EventListener > &&, const AddEventListenerOptions &) override
 
bool removeEventListener (const AtomicString &eventType, EventListener &, const ListenerOptions &) override
 
bool dispatchEvent (Event &) override
 
void dispatchScopedEvent (Event &)
 
virtual void handleLocalEvents (Event &)
 
void dispatchSubtreeModifiedEvent ()
 
bool dispatchDOMActivateEvent (int detail, Event &underlyingEvent)
 
bool dispatchBeforeLoadEvent (const String &sourceURL)
 
void dispatchInputEvent ()
 
virtual void defaultEventHandler (Event &)
 
void ref ()
 
void deref ()
 
bool hasOneRef () const
 
int refCount () const
 
EventTargetDataeventTargetData () final
 
EventTargetDataeventTargetDataConcurrently () final
 
EventTargetDataensureEventTargetData () final
 
HashMap< MutationObserver *, MutationRecordDeliveryOptionsregisteredMutationObservers (MutationObserver::MutationType, const QualifiedName *attributeName)
 
void registerMutationObserver (MutationObserver &, MutationObserverOptions, const HashSet< AtomicString > &attributeFilter)
 
void unregisterMutationObserver (MutationObserverRegistration &)
 
void registerTransientMutationObserver (MutationObserverRegistration &)
 
void unregisterTransientMutationObserver (MutationObserverRegistration &)
 
void notifyMutationObserversNodeWillDetach ()
 
WEBCORE_EXPORT void textRects (Vector< IntRect > &) const
 
unsigned connectedSubframeCount () const
 
void incrementConnectedSubframeCount (unsigned amount=1)
 
void decrementConnectedSubframeCount (unsigned amount=1)
 
void updateAncestorConnectedSubframeCountForRemoval () const
 
void updateAncestorConnectedSubframeCountForInsertion () const
 
- Public Member Functions inherited from WebCore::EventTarget
void ref ()
 
void deref ()
 
virtual DOMWindowtoDOMWindow ()
 
virtual bool isMessagePort () const
 
WEBCORE_EXPORT void addEventListenerForBindings (const AtomicString &eventType, RefPtr< EventListener > &&, AddEventListenerOptionsOrBoolean &&)
 
WEBCORE_EXPORT void removeEventListenerForBindings (const AtomicString &eventType, RefPtr< EventListener > &&, ListenerOptionsOrBoolean &&)
 
WEBCORE_EXPORT ExceptionOr< bool > dispatchEventForBindings (Event &)
 
virtual void uncaughtExceptionInEventHandler ()
 
bool setAttributeEventListener (const AtomicString &eventType, RefPtr< EventListener > &&)
 
EventListenerattributeEventListener (const AtomicString &eventType)
 
bool hasEventListeners () const
 
bool hasEventListeners (const AtomicString &eventType) const
 
bool hasCapturingEventListeners (const AtomicString &eventType)
 
bool hasActiveEventListeners (const AtomicString &eventType) const
 
const EventListenerVectoreventListeners (const AtomicString &eventType)
 
bool fireEventListeners (Event &)
 
bool isFiringEventListeners () const
 
void visitJSEventListeners (JSC::SlotVisitor &)
 
void invalidateJSEventListeners (JSC::JSObject *)
 
void ref ()
 
void deref ()
 
virtual DOMWindowtoDOMWindow ()
 
virtual bool isMessagePort () const
 
WEBCORE_EXPORT void addEventListenerForBindings (const AtomicString &eventType, RefPtr< EventListener > &&, AddEventListenerOptionsOrBoolean &&)
 
WEBCORE_EXPORT void removeEventListenerForBindings (const AtomicString &eventType, RefPtr< EventListener > &&, ListenerOptionsOrBoolean &&)
 
WEBCORE_EXPORT ExceptionOr< bool > dispatchEventForBindings (Event &)
 
virtual void uncaughtExceptionInEventHandler ()
 
bool setAttributeEventListener (const AtomicString &eventType, RefPtr< EventListener > &&)
 
EventListenerattributeEventListener (const AtomicString &eventType)
 
bool hasEventListeners () const
 
bool hasEventListeners (const AtomicString &eventType) const
 
bool hasCapturingEventListeners (const AtomicString &eventType)
 
bool hasActiveEventListeners (const AtomicString &eventType) const
 
const EventListenerVectoreventListeners (const AtomicString &eventType)
 
bool fireEventListeners (Event &)
 
bool isFiringEventListeners () const
 
void visitJSEventListeners (JSC::SlotVisitor &)
 
void invalidateJSEventListeners (JSC::JSObject *)
 
- 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 WebCore::TreeScope
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 Ref< ShadowRootcreate (Document &document, ShadowRootMode type)
 
static Ref< ShadowRootcreate (Document &document, std::unique_ptr< SlotAssignment > &&assignment)
 
static Ref< ShadowRootcreate (Document &document, ShadowRootMode type)
 
static Ref< ShadowRootcreate (Document &document, std::unique_ptr< SlotAssignment > &&assignment)
 
- Static Public Member Functions inherited from WebCore::DocumentFragment
static Ref< DocumentFragmentcreate (Document &)
 
static Ref< DocumentFragmentcreate (Document &)
 
- Static Public Member Functions inherited from WebCore::ContainerNode
static ptrdiff_t firstChildMemoryOffset ()
 
static ptrdiff_t lastChildMemoryOffset ()
 
static ptrdiff_t firstChildMemoryOffset ()
 
static ptrdiff_t lastChildMemoryOffset ()
 
- Static Public Member Functions inherited from WebCore::Node
static WEBCORE_EXPORT void startIgnoringLeaks ()
 
static WEBCORE_EXPORT void stopIgnoringLeaks ()
 
static void dumpStatistics ()
 
static ptrdiff_t parentNodeMemoryOffset ()
 
static ptrdiff_t previousSiblingMemoryOffset ()
 
static ptrdiff_t nextSiblingMemoryOffset ()
 
static ptrdiff_t treeScopeMemoryOffset ()
 
static WEBCORE_EXPORT void startIgnoringLeaks ()
 
static WEBCORE_EXPORT void stopIgnoringLeaks ()
 
static void dumpStatistics ()
 
static ptrdiff_t parentNodeMemoryOffset ()
 
static ptrdiff_t previousSiblingMemoryOffset ()
 
static ptrdiff_t nextSiblingMemoryOffset ()
 
static ptrdiff_t treeScopeMemoryOffset ()
 
- Static Public Member Functions inherited from WebCore::ScriptWrappable
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 
- Static Public Member Functions inherited from WebCore::TreeScope
static ptrdiff_t documentScopeMemoryOffset ()
 
static ptrdiff_t documentScopeMemoryOffset ()
 

Protected Member Functions

 ShadowRoot (Document &, ShadowRootMode)
 
 ShadowRoot (Document &, std::unique_ptr< SlotAssignment > &&)
 
bool isOrphan () const
 
 ShadowRoot (Document &, ShadowRootMode)
 
 ShadowRoot (Document &, std::unique_ptr< SlotAssignment > &&)
 
bool isOrphan () const
 
- Protected Member Functions inherited from WebCore::DocumentFragment
 DocumentFragment (Document &, ConstructionType=CreateContainer)
 
String nodeName () const final
 
 DocumentFragment (Document &, ConstructionType=CreateContainer)
 
String nodeName () const final
 
- Protected Member Functions inherited from WebCore::ContainerNode
 ContainerNode (Document &, ConstructionType=CreateContainer)
 
void removeDetachedChildren ()
 
void setFirstChild (Node *child)
 
void setLastChild (Node *child)
 
HTMLCollectioncachedHTMLCollection (CollectionType)
 
 ContainerNode (Document &, ConstructionType=CreateContainer)
 
void removeDetachedChildren ()
 
void setFirstChild (Node *child)
 
void setLastChild (Node *child)
 
HTMLCollectioncachedHTMLCollection (CollectionType)
 
- Protected Member Functions inherited from WebCore::Node
bool getFlag (NodeFlags mask) const
 
void setFlag (bool f, NodeFlags mask) const
 
void setFlag (NodeFlags mask) const
 
void clearFlag (NodeFlags mask) const
 
 Node (Document &, ConstructionType)
 
virtual void addSubresourceAttributeURLs (ListHashSet< URL > &) const
 
bool hasRareData () const
 
NodeRareDatarareData () const
 
NodeRareDataensureRareData ()
 
void clearRareData ()
 
void clearEventTargetData ()
 
void setHasCustomStyleResolveCallbacks ()
 
void setTreeScope (TreeScope &scope)
 
void invalidateStyle (Style::Validity, Style::InvalidationMode=Style::InvalidationMode::Normal)
 
void updateAncestorsForStyleRecalc ()
 
ExceptionOr< RefPtr< Node > > convertNodesOrStringsIntoNode (Vector< NodeOrString > &&)
 
bool isParsingChildrenFinished () const
 
void setIsParsingChildrenFinished ()
 
void clearIsParsingChildrenFinished ()
 
bool getFlag (NodeFlags mask) const
 
void setFlag (bool f, NodeFlags mask) const
 
void setFlag (NodeFlags mask) const
 
void clearFlag (NodeFlags mask) const
 
 Node (Document &, ConstructionType)
 
virtual void addSubresourceAttributeURLs (ListHashSet< URL > &) const
 
bool hasRareData () const
 
NodeRareDatarareData () const
 
NodeRareDataensureRareData ()
 
void clearRareData ()
 
void clearEventTargetData ()
 
void setHasCustomStyleResolveCallbacks ()
 
void setTreeScope (TreeScope &scope)
 
void invalidateStyle (Style::Validity, Style::InvalidationMode=Style::InvalidationMode::Normal)
 
void updateAncestorsForStyleRecalc ()
 
ExceptionOr< RefPtr< Node > > convertNodesOrStringsIntoNode (Vector< NodeOrString > &&)
 
bool isParsingChildrenFinished () const
 
void setIsParsingChildrenFinished ()
 
void clearIsParsingChildrenFinished ()
 
- Protected Member Functions inherited from WebCore::EventTarget
virtual ~EventTarget ()=default
 
const EventTargetDataeventTargetData () const
 
virtual ~EventTarget ()=default
 
const EventTargetDataeventTargetData () const
 
- Protected Member Functions inherited from WebCore::ScriptWrappable
 ~ScriptWrappable ()
 
 ~ScriptWrappable ()
 
- Protected Member Functions inherited from WebCore::TreeScope
 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)
 

Additional Inherited Members

- Public Types inherited from WebCore::ContainerNode
enum  ChildChangeType {
  ElementInserted, ElementRemoved, TextInserted, TextRemoved,
  TextChanged, AllChildrenRemoved, NonContentsChildRemoved, NonContentsChildInserted,
  AllChildrenReplaced, ElementInserted, ElementRemoved, TextInserted,
  TextRemoved, TextChanged, AllChildrenRemoved, NonContentsChildRemoved,
  NonContentsChildInserted, AllChildrenReplaced
}
 
enum  ChildChangeSource { ChildChangeSourceParser, ChildChangeSourceAPI, ChildChangeSourceParser, ChildChangeSourceAPI }
 
enum  ChildChangeType {
  ElementInserted, ElementRemoved, TextInserted, TextRemoved,
  TextChanged, AllChildrenRemoved, NonContentsChildRemoved, NonContentsChildInserted,
  AllChildrenReplaced, ElementInserted, ElementRemoved, TextInserted,
  TextRemoved, TextChanged, AllChildrenRemoved, NonContentsChildRemoved,
  NonContentsChildInserted, AllChildrenReplaced
}
 
enum  ChildChangeSource { ChildChangeSourceParser, ChildChangeSourceAPI, ChildChangeSourceParser, ChildChangeSourceAPI }
 
- Public Types inherited from WebCore::Node
enum  NodeType {
  ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3, CDATA_SECTION_NODE = 4,
  PROCESSING_INSTRUCTION_NODE = 7, COMMENT_NODE = 8, DOCUMENT_NODE = 9, DOCUMENT_TYPE_NODE = 10,
  DOCUMENT_FRAGMENT_NODE = 11, ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3,
  CDATA_SECTION_NODE = 4, PROCESSING_INSTRUCTION_NODE = 7, COMMENT_NODE = 8, DOCUMENT_NODE = 9,
  DOCUMENT_TYPE_NODE = 10, DOCUMENT_FRAGMENT_NODE = 11
}
 
enum  DeprecatedNodeType {
  ENTITY_REFERENCE_NODE = 5, ENTITY_NODE = 6, NOTATION_NODE = 12, ENTITY_REFERENCE_NODE = 5,
  ENTITY_NODE = 6, NOTATION_NODE = 12
}
 
enum  DocumentPosition {
  DOCUMENT_POSITION_EQUIVALENT = 0x00, DOCUMENT_POSITION_DISCONNECTED = 0x01, DOCUMENT_POSITION_PRECEDING = 0x02, DOCUMENT_POSITION_FOLLOWING = 0x04,
  DOCUMENT_POSITION_CONTAINS = 0x08, DOCUMENT_POSITION_CONTAINED_BY = 0x10, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20, DOCUMENT_POSITION_EQUIVALENT = 0x00,
  DOCUMENT_POSITION_DISCONNECTED = 0x01, DOCUMENT_POSITION_PRECEDING = 0x02, DOCUMENT_POSITION_FOLLOWING = 0x04, DOCUMENT_POSITION_CONTAINS = 0x08,
  DOCUMENT_POSITION_CONTAINED_BY = 0x10, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
}
 
enum  CloningOperation {
  CloningOperation::OnlySelf, CloningOperation::SelfWithTemplateContent, CloningOperation::Everything, CloningOperation::OnlySelf,
  CloningOperation::SelfWithTemplateContent, CloningOperation::Everything
}
 
enum  UserSelectAllTreatment { UserSelectAllDoesNotAffectEditability, UserSelectAllIsAlwaysNonEditable, UserSelectAllDoesNotAffectEditability, UserSelectAllIsAlwaysNonEditable }
 
enum  Editability {
  Editability::ReadOnly, Editability::CanEditPlainText, Editability::CanEditRichly, Editability::ReadOnly,
  Editability::CanEditPlainText, Editability::CanEditRichly
}
 
enum  ShouldUpdateStyle { ShouldUpdateStyle::Update, ShouldUpdateStyle::DoNotUpdate, ShouldUpdateStyle::Update, ShouldUpdateStyle::DoNotUpdate }
 
enum  InsertionNotificationRequest { InsertionDone, InsertionShouldCallFinishedInsertingSubtree, InsertionDone, InsertionShouldCallFinishedInsertingSubtree }
 
enum  NodeType {
  ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3, CDATA_SECTION_NODE = 4,
  PROCESSING_INSTRUCTION_NODE = 7, COMMENT_NODE = 8, DOCUMENT_NODE = 9, DOCUMENT_TYPE_NODE = 10,
  DOCUMENT_FRAGMENT_NODE = 11, ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3,
  CDATA_SECTION_NODE = 4, PROCESSING_INSTRUCTION_NODE = 7, COMMENT_NODE = 8, DOCUMENT_NODE = 9,
  DOCUMENT_TYPE_NODE = 10, DOCUMENT_FRAGMENT_NODE = 11
}
 
enum  DeprecatedNodeType {
  ENTITY_REFERENCE_NODE = 5, ENTITY_NODE = 6, NOTATION_NODE = 12, ENTITY_REFERENCE_NODE = 5,
  ENTITY_NODE = 6, NOTATION_NODE = 12
}
 
enum  DocumentPosition {
  DOCUMENT_POSITION_EQUIVALENT = 0x00, DOCUMENT_POSITION_DISCONNECTED = 0x01, DOCUMENT_POSITION_PRECEDING = 0x02, DOCUMENT_POSITION_FOLLOWING = 0x04,
  DOCUMENT_POSITION_CONTAINS = 0x08, DOCUMENT_POSITION_CONTAINED_BY = 0x10, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20, DOCUMENT_POSITION_EQUIVALENT = 0x00,
  DOCUMENT_POSITION_DISCONNECTED = 0x01, DOCUMENT_POSITION_PRECEDING = 0x02, DOCUMENT_POSITION_FOLLOWING = 0x04, DOCUMENT_POSITION_CONTAINS = 0x08,
  DOCUMENT_POSITION_CONTAINED_BY = 0x10, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
}
 
enum  CloningOperation {
  CloningOperation::OnlySelf, CloningOperation::SelfWithTemplateContent, CloningOperation::Everything, CloningOperation::OnlySelf,
  CloningOperation::SelfWithTemplateContent, CloningOperation::Everything
}
 
enum  UserSelectAllTreatment { UserSelectAllDoesNotAffectEditability, UserSelectAllIsAlwaysNonEditable, UserSelectAllDoesNotAffectEditability, UserSelectAllIsAlwaysNonEditable }
 
enum  Editability {
  Editability::ReadOnly, Editability::CanEditPlainText, Editability::CanEditRichly, Editability::ReadOnly,
  Editability::CanEditPlainText, Editability::CanEditRichly
}
 
enum  ShouldUpdateStyle { ShouldUpdateStyle::Update, ShouldUpdateStyle::DoNotUpdate, ShouldUpdateStyle::Update, ShouldUpdateStyle::DoNotUpdate }
 
enum  InsertionNotificationRequest { InsertionDone, InsertionShouldCallFinishedInsertingSubtree, InsertionDone, InsertionShouldCallFinishedInsertingSubtree }
 
- Public Types inherited from WebCore::EventTarget
using AddEventListenerOptionsOrBoolean = Variant< AddEventListenerOptions, bool >
 
using ListenerOptionsOrBoolean = Variant< ListenerOptions, bool >
 
using AddEventListenerOptionsOrBoolean = Variant< AddEventListenerOptions, bool >
 
using ListenerOptionsOrBoolean = Variant< ListenerOptions, bool >
 
- Public Attributes inherited from WebCore::Node
bool m_deletionHasBegun { false }
 
bool m_inRemovedLastRefFunction { false }
 
bool m_adoptionIsRequired { true }
 
- Protected Types inherited from WebCore::Node
enum  NodeFlags {
  IsTextFlag = 1, IsContainerFlag = 1 << 1, IsElementFlag = 1 << 2, IsStyledElementFlag = 1 << 3,
  IsHTMLFlag = 1 << 4, IsSVGFlag = 1 << 5, ChildNeedsStyleRecalcFlag = 1 << 7, IsConnectedFlag = 1 << 8,
  IsLinkFlag = 1 << 9, IsUserActionElement = 1 << 10, HasRareDataFlag = 1 << 11, IsDocumentFragmentFlag = 1 << 12,
  IsParsingChildrenFinishedFlag = 1 << 13, StyleValidityShift = 14, StyleValidityMask = 3 << StyleValidityShift, StyleResolutionShouldRecompositeLayerFlag = 1 << 16,
  IsEditingTextOrUndefinedCustomElementFlag = 1 << 17, HasFocusWithin = 1 << 18, HasSyntheticAttrChildNodesFlag = 1 << 19, HasCustomStyleResolveCallbacksFlag = 1 << 20,
  HasEventTargetDataFlag = 1 << 21, IsCustomElement = 1 << 22, IsInShadowTreeFlag = 1 << 23, IsMathMLFlag = 1 << 24,
  ChildrenAffectedByFirstChildRulesFlag = 1 << 25, ChildrenAffectedByLastChildRulesFlag = 1 << 26, ChildrenAffectedByHoverRulesFlag = 1 << 27, DirectChildNeedsStyleRecalcFlag = 1 << 28,
  AffectsNextSiblingElementStyle = 1 << 29, StyleIsAffectedByPreviousSibling = 1 << 30, SelfOrAncestorHasDirAutoFlag = 1 << 31, DefaultNodeFlags = IsParsingChildrenFinishedFlag,
  IsTextFlag = 1, IsContainerFlag = 1 << 1, IsElementFlag = 1 << 2, IsStyledElementFlag = 1 << 3,
  IsHTMLFlag = 1 << 4, IsSVGFlag = 1 << 5, ChildNeedsStyleRecalcFlag = 1 << 7, IsConnectedFlag = 1 << 8,
  IsLinkFlag = 1 << 9, IsUserActionElement = 1 << 10, HasRareDataFlag = 1 << 11, IsDocumentFragmentFlag = 1 << 12,
  IsParsingChildrenFinishedFlag = 1 << 13, StyleValidityShift = 14, StyleValidityMask = 3 << StyleValidityShift, StyleResolutionShouldRecompositeLayerFlag = 1 << 16,
  IsEditingTextOrUndefinedCustomElementFlag = 1 << 17, HasFocusWithin = 1 << 18, HasSyntheticAttrChildNodesFlag = 1 << 19, HasCustomStyleResolveCallbacksFlag = 1 << 20,
  HasEventTargetDataFlag = 1 << 21, IsCustomElement = 1 << 22, IsInShadowTreeFlag = 1 << 23, IsMathMLFlag = 1 << 24,
  ChildrenAffectedByFirstChildRulesFlag = 1 << 25, ChildrenAffectedByLastChildRulesFlag = 1 << 26, ChildrenAffectedByHoverRulesFlag = 1 << 27, DirectChildNeedsStyleRecalcFlag = 1 << 28,
  AffectsNextSiblingElementStyle = 1 << 29, StyleIsAffectedByPreviousSibling = 1 << 30, SelfOrAncestorHasDirAutoFlag = 1 << 31, DefaultNodeFlags = IsParsingChildrenFinishedFlag
}
 
enum  ConstructionType {
  CreateOther = DefaultNodeFlags, CreateText = DefaultNodeFlags | IsTextFlag, CreateContainer = DefaultNodeFlags | IsContainerFlag, CreateElement = CreateContainer | IsElementFlag,
  CreatePseudoElement = CreateElement | IsConnectedFlag, CreateShadowRoot = CreateContainer | IsDocumentFragmentFlag | IsInShadowTreeFlag, CreateDocumentFragment = CreateContainer | IsDocumentFragmentFlag, CreateStyledElement = CreateElement | IsStyledElementFlag,
  CreateHTMLElement = CreateStyledElement | IsHTMLFlag, CreateSVGElement = CreateStyledElement | IsSVGFlag | HasCustomStyleResolveCallbacksFlag, CreateDocument = CreateContainer | IsConnectedFlag, CreateEditingText = CreateText | IsEditingTextOrUndefinedCustomElementFlag,
  CreateMathMLElement = CreateStyledElement | IsMathMLFlag, CreateOther = DefaultNodeFlags, CreateText = DefaultNodeFlags | IsTextFlag, CreateContainer = DefaultNodeFlags | IsContainerFlag,
  CreateElement = CreateContainer | IsElementFlag, CreatePseudoElement = CreateElement | IsConnectedFlag, CreateShadowRoot = CreateContainer | IsDocumentFragmentFlag | IsInShadowTreeFlag, CreateDocumentFragment = CreateContainer | IsDocumentFragmentFlag,
  CreateStyledElement = CreateElement | IsStyledElementFlag, CreateHTMLElement = CreateStyledElement | IsHTMLFlag, CreateSVGElement = CreateStyledElement | IsSVGFlag | HasCustomStyleResolveCallbacksFlag, CreateDocument = CreateContainer | IsConnectedFlag,
  CreateEditingText = CreateText | IsEditingTextOrUndefinedCustomElementFlag, CreateMathMLElement = CreateStyledElement | IsMathMLFlag
}
 
enum  NodeFlags {
  IsTextFlag = 1, IsContainerFlag = 1 << 1, IsElementFlag = 1 << 2, IsStyledElementFlag = 1 << 3,
  IsHTMLFlag = 1 << 4, IsSVGFlag = 1 << 5, ChildNeedsStyleRecalcFlag = 1 << 7, IsConnectedFlag = 1 << 8,
  IsLinkFlag = 1 << 9, IsUserActionElement = 1 << 10, HasRareDataFlag = 1 << 11, IsDocumentFragmentFlag = 1 << 12,
  IsParsingChildrenFinishedFlag = 1 << 13, StyleValidityShift = 14, StyleValidityMask = 3 << StyleValidityShift, StyleResolutionShouldRecompositeLayerFlag = 1 << 16,
  IsEditingTextOrUndefinedCustomElementFlag = 1 << 17, HasFocusWithin = 1 << 18, HasSyntheticAttrChildNodesFlag = 1 << 19, HasCustomStyleResolveCallbacksFlag = 1 << 20,
  HasEventTargetDataFlag = 1 << 21, IsCustomElement = 1 << 22, IsInShadowTreeFlag = 1 << 23, IsMathMLFlag = 1 << 24,
  ChildrenAffectedByFirstChildRulesFlag = 1 << 25, ChildrenAffectedByLastChildRulesFlag = 1 << 26, ChildrenAffectedByHoverRulesFlag = 1 << 27, DirectChildNeedsStyleRecalcFlag = 1 << 28,
  AffectsNextSiblingElementStyle = 1 << 29, StyleIsAffectedByPreviousSibling = 1 << 30, SelfOrAncestorHasDirAutoFlag = 1 << 31, DefaultNodeFlags = IsParsingChildrenFinishedFlag,
  IsTextFlag = 1, IsContainerFlag = 1 << 1, IsElementFlag = 1 << 2, IsStyledElementFlag = 1 << 3,
  IsHTMLFlag = 1 << 4, IsSVGFlag = 1 << 5, ChildNeedsStyleRecalcFlag = 1 << 7, IsConnectedFlag = 1 << 8,
  IsLinkFlag = 1 << 9, IsUserActionElement = 1 << 10, HasRareDataFlag = 1 << 11, IsDocumentFragmentFlag = 1 << 12,
  IsParsingChildrenFinishedFlag = 1 << 13, StyleValidityShift = 14, StyleValidityMask = 3 << StyleValidityShift, StyleResolutionShouldRecompositeLayerFlag = 1 << 16,
  IsEditingTextOrUndefinedCustomElementFlag = 1 << 17, HasFocusWithin = 1 << 18, HasSyntheticAttrChildNodesFlag = 1 << 19, HasCustomStyleResolveCallbacksFlag = 1 << 20,
  HasEventTargetDataFlag = 1 << 21, IsCustomElement = 1 << 22, IsInShadowTreeFlag = 1 << 23, IsMathMLFlag = 1 << 24,
  ChildrenAffectedByFirstChildRulesFlag = 1 << 25, ChildrenAffectedByLastChildRulesFlag = 1 << 26, ChildrenAffectedByHoverRulesFlag = 1 << 27, DirectChildNeedsStyleRecalcFlag = 1 << 28,
  AffectsNextSiblingElementStyle = 1 << 29, StyleIsAffectedByPreviousSibling = 1 << 30, SelfOrAncestorHasDirAutoFlag = 1 << 31, DefaultNodeFlags = IsParsingChildrenFinishedFlag
}
 
enum  ConstructionType {
  CreateOther = DefaultNodeFlags, CreateText = DefaultNodeFlags | IsTextFlag, CreateContainer = DefaultNodeFlags | IsContainerFlag, CreateElement = CreateContainer | IsElementFlag,
  CreatePseudoElement = CreateElement | IsConnectedFlag, CreateShadowRoot = CreateContainer | IsDocumentFragmentFlag | IsInShadowTreeFlag, CreateDocumentFragment = CreateContainer | IsDocumentFragmentFlag, CreateStyledElement = CreateElement | IsStyledElementFlag,
  CreateHTMLElement = CreateStyledElement | IsHTMLFlag, CreateSVGElement = CreateStyledElement | IsSVGFlag | HasCustomStyleResolveCallbacksFlag, CreateDocument = CreateContainer | IsConnectedFlag, CreateEditingText = CreateText | IsEditingTextOrUndefinedCustomElementFlag,
  CreateMathMLElement = CreateStyledElement | IsMathMLFlag, CreateOther = DefaultNodeFlags, CreateText = DefaultNodeFlags | IsTextFlag, CreateContainer = DefaultNodeFlags | IsContainerFlag,
  CreateElement = CreateContainer | IsElementFlag, CreatePseudoElement = CreateElement | IsConnectedFlag, CreateShadowRoot = CreateContainer | IsDocumentFragmentFlag | IsInShadowTreeFlag, CreateDocumentFragment = CreateContainer | IsDocumentFragmentFlag,
  CreateStyledElement = CreateElement | IsStyledElementFlag, CreateHTMLElement = CreateStyledElement | IsHTMLFlag, CreateSVGElement = CreateStyledElement | IsSVGFlag | HasCustomStyleResolveCallbacksFlag, CreateDocument = CreateContainer | IsConnectedFlag,
  CreateEditingText = CreateText | IsEditingTextOrUndefinedCustomElementFlag, CreateMathMLElement = CreateStyledElement | IsMathMLFlag
}
 

Constructor & Destructor Documentation

◆ ~ShadowRoot() [1/2]

ShadowRoot::~ShadowRoot ( )
virtual

◆ ShadowRoot() [1/4]

ShadowRoot::ShadowRoot ( Document document,
ShadowRootMode  type 
)
protected

◆ ShadowRoot() [2/4]

ShadowRoot::ShadowRoot ( Document document,
std::unique_ptr< SlotAssignment > &&  slotAssignment 
)
protected

◆ ~ShadowRoot() [2/2]

virtual WebCore::ShadowRoot::~ShadowRoot ( )
virtual

◆ ShadowRoot() [3/4]

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

◆ ShadowRoot() [4/4]

WebCore::ShadowRoot::ShadowRoot ( Document ,
std::unique_ptr< SlotAssignment > &&   
)
protected

Member Function Documentation

◆ activeElement() [1/2]

Element * ShadowRoot::activeElement ( ) const
inline

◆ activeElement() [2/2]

Element* WebCore::ShadowRoot::activeElement ( ) const

◆ addSlotElementByName() [1/2]

void WebCore::ShadowRoot::addSlotElementByName ( const AtomicString ,
HTMLSlotElement  
)

◆ addSlotElementByName() [2/2]

void ShadowRoot::addSlotElementByName ( const AtomicString name,
HTMLSlotElement slot 
)

◆ assignedNodesForSlot() [1/2]

const Vector< Node * > * ShadowRoot::assignedNodesForSlot ( const HTMLSlotElement slot)

◆ assignedNodesForSlot() [2/2]

const Vector<Node*>* WebCore::ShadowRoot::assignedNodesForSlot ( const HTMLSlotElement )

◆ create() [1/4]

static Ref<ShadowRoot> WebCore::ShadowRoot::create ( Document document,
ShadowRootMode  type 
)
inlinestatic

◆ create() [2/4]

static Ref<ShadowRoot> WebCore::ShadowRoot::create ( Document document,
ShadowRootMode  type 
)
inlinestatic

◆ create() [3/4]

static Ref<ShadowRoot> WebCore::ShadowRoot::create ( Document document,
std::unique_ptr< SlotAssignment > &&  assignment 
)
inlinestatic

◆ create() [4/4]

static Ref<ShadowRoot> WebCore::ShadowRoot::create ( Document document,
std::unique_ptr< SlotAssignment > &&  assignment 
)
inlinestatic

◆ didChangeDefaultSlot() [1/2]

void ShadowRoot::didChangeDefaultSlot ( )
inline

◆ didChangeDefaultSlot() [2/2]

void WebCore::ShadowRoot::didChangeDefaultSlot ( )

◆ didRemoveAllChildrenOfShadowHost() [1/2]

void ShadowRoot::didRemoveAllChildrenOfShadowHost ( )
inline

◆ didRemoveAllChildrenOfShadowHost() [2/2]

void WebCore::ShadowRoot::didRemoveAllChildrenOfShadowHost ( )

◆ findAssignedSlot() [1/2]

HTMLSlotElement* WebCore::ShadowRoot::findAssignedSlot ( const Node )

◆ findAssignedSlot() [2/2]

HTMLSlotElement * ShadowRoot::findAssignedSlot ( const Node node)

◆ host() [1/2]

Element* WebCore::ShadowRoot::host ( ) const
inline

◆ host() [2/2]

Element* WebCore::ShadowRoot::host ( ) const
inline

◆ hostChildElementDidChange() [1/2]

void ShadowRoot::hostChildElementDidChange ( const Element childElement)
inline

◆ hostChildElementDidChange() [2/2]

void WebCore::ShadowRoot::hostChildElementDidChange ( const Element )

◆ hostChildElementDidChangeSlotAttribute() [1/2]

void WebCore::ShadowRoot::hostChildElementDidChangeSlotAttribute ( Element ,
const AtomicString oldValue,
const AtomicString newValue 
)

◆ hostChildElementDidChangeSlotAttribute() [2/2]

void ShadowRoot::hostChildElementDidChangeSlotAttribute ( Element element,
const AtomicString oldValue,
const AtomicString newValue 
)
inline

◆ innerHTML() [1/2]

String ShadowRoot::innerHTML ( ) const

◆ innerHTML() [2/2]

String WebCore::ShadowRoot::innerHTML ( ) const

◆ isOrphan() [1/2]

bool WebCore::ShadowRoot::isOrphan ( ) const
inlineprotected

◆ isOrphan() [2/2]

bool WebCore::ShadowRoot::isOrphan ( ) const
inlineprotected

◆ mode() [1/2]

ShadowRootMode WebCore::ShadowRoot::mode ( ) const
inline

◆ mode() [2/2]

ShadowRootMode WebCore::ShadowRoot::mode ( ) const
inline

◆ removeAllEventListeners() [1/2]

void WebCore::ShadowRoot::removeAllEventListeners ( )
overridevirtual

Reimplemented from WebCore::EventTarget.

◆ removeAllEventListeners() [2/2]

void ShadowRoot::removeAllEventListeners ( )
overridevirtual

Reimplemented from WebCore::EventTarget.

◆ removeSlotElementByName() [1/2]

void ShadowRoot::removeSlotElementByName ( const AtomicString name,
HTMLSlotElement slot 
)

◆ removeSlotElementByName() [2/2]

void WebCore::ShadowRoot::removeSlotElementByName ( const AtomicString ,
HTMLSlotElement  
)

◆ resetStyleInheritance() [1/2]

bool WebCore::ShadowRoot::resetStyleInheritance ( ) const
inline

◆ resetStyleInheritance() [2/2]

bool WebCore::ShadowRoot::resetStyleInheritance ( ) const
inline

◆ setHost() [1/2]

void WebCore::ShadowRoot::setHost ( Element host)
inline

◆ setHost() [2/2]

void WebCore::ShadowRoot::setHost ( Element host)
inline

◆ setInnerHTML() [1/2]

ExceptionOr< void > ShadowRoot::setInnerHTML ( const String markup)

◆ setInnerHTML() [2/2]

ExceptionOr<void> WebCore::ShadowRoot::setInnerHTML ( const String )

◆ setResetStyleInheritance() [1/2]

void ShadowRoot::setResetStyleInheritance ( bool  value)

◆ setResetStyleInheritance() [2/2]

void WebCore::ShadowRoot::setResetStyleInheritance ( bool  )

◆ styleScope() [1/2]

Style::Scope & ShadowRoot::styleScope ( )

◆ styleScope() [2/2]

Style::Scope& WebCore::ShadowRoot::styleScope ( )

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