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::Scope & styleScope ()
 
bool resetStyleInheritance () const
 
void setResetStyleInheritance (bool)
 
Element * host () const
 
void setHost (Element *host)
 
String innerHTML () const
 
ExceptionOr< void > setInnerHTML (const String &)
 
Element * activeElement () const
 
ShadowRootMode mode () const
 
void removeAllEventListeners () override
 
HTMLSlotElement * findAssignedSlot (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::Scope & styleScope ()
 
bool resetStyleInheritance () const
 
void setResetStyleInheritance (bool)
 
Element * host () const
 
void setHost (Element *host)
 
String innerHTML () const
 
ExceptionOr< void > setInnerHTML (const String &)
 
Element * activeElement () const
 
ShadowRootMode mode () const
 
void removeAllEventListeners () override
 
HTMLSlotElement * findAssignedSlot (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 Element * getElementById (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 Element * getElementById (const AtomicString &) const
 
- Public Member Functions inherited from WebCore::ContainerNode
virtual ~ContainerNode ()
 
Node * firstChild () const
 
Node * lastChild () const
 
bool hasChildNodes () const
 
bool hasOneChild () const
 
bool directChildNeedsStyleRecalc () const
 
void setDirectChildNeedsStyleRecalc ()
 
WEBCORE_EXPORT unsigned countChildNodes () const
 
WEBCORE_EXPORT Node * traverseToChildAt (unsigned) const
 
ExceptionOr< void > insertBefore (Node &newChild, Node *refChild)
 
ExceptionOr< void > replaceChild (Node &newChild, Node &oldChild)
 
WEBCORE_EXPORT ExceptionOr< void > removeChild (Node &child)
 
WEBCORE_EXPORT ExceptionOr< void > appendChild (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 ()
 
RenderElement * renderer () 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< HTMLCollection > getElementsByTagName (const AtomicString &)
 
WEBCORE_EXPORT Ref< HTMLCollection > getElementsByTagNameNS (const AtomicString &namespaceURI, const AtomicString &localName)
 
WEBCORE_EXPORT Ref< NodeList > getElementsByName (const String &elementName)
 
WEBCORE_EXPORT Ref< HTMLCollection > getElementsByClassName (const AtomicString &classNames)
 
Ref< RadioNodeList > radioNodeList (const AtomicString &)
 
WEBCORE_EXPORT Ref< HTMLCollection > children ()
 
WEBCORE_EXPORT Element * firstElementChild () const
 
WEBCORE_EXPORT Element * lastElementChild () const
 
WEBCORE_EXPORT unsigned childElementCount () const
 
ExceptionOr< void > append (Vector< NodeOrString > &&)
 
ExceptionOr< void > prepend (Vector< NodeOrString > &&)
 
ExceptionOr< void > ensurePreInsertionValidity (Node &newChild, Node *refChild)
 
virtual ~ContainerNode ()
 
Node * firstChild () const
 
Node * lastChild () const
 
bool hasChildNodes () const
 
bool hasOneChild () const
 
bool directChildNeedsStyleRecalc () const
 
void setDirectChildNeedsStyleRecalc ()
 
WEBCORE_EXPORT unsigned countChildNodes () const
 
WEBCORE_EXPORT Node * traverseToChildAt (unsigned) const
 
ExceptionOr< void > insertBefore (Node &newChild, Node *refChild)
 
ExceptionOr< void > replaceChild (Node &newChild, Node &oldChild)
 
WEBCORE_EXPORT ExceptionOr< void > removeChild (Node &child)
 
WEBCORE_EXPORT ExceptionOr< void > appendChild (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 ()
 
RenderElement * renderer () 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< HTMLCollection > getElementsByTagName (const AtomicString &)
 
WEBCORE_EXPORT Ref< HTMLCollection > getElementsByTagNameNS (const AtomicString &namespaceURI, const AtomicString &localName)
 
WEBCORE_EXPORT Ref< NodeList > getElementsByName (const String &elementName)
 
WEBCORE_EXPORT Ref< HTMLCollection > getElementsByClassName (const AtomicString &classNames)
 
Ref< RadioNodeList > radioNodeList (const AtomicString &)
 
WEBCORE_EXPORT Ref< HTMLCollection > children ()
 
WEBCORE_EXPORT Element * firstElementChild () const
 
WEBCORE_EXPORT Element * lastElementChild () const
 
WEBCORE_EXPORT unsigned childElementCount () const
 
ExceptionOr< void > append (Vector< NodeOrString > &&)
 
ExceptionOr< void > prepend (Vector< NodeOrString > &&)
 
ExceptionOr< void > ensurePreInsertionValidity (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< void > setNodeValue (const String &)
 
virtual size_t approximateMemoryCost () const
 
ContainerNode * parentNode () const
 
Element * parentElement () const
 
Node * previousSibling () const
 
Node * nextSibling () const
 
WEBCORE_EXPORT RefPtr< NodeList > childNodes ()
 
Node * firstChild () const
 
Node * lastChild () const
 
bool hasAttributes () const
 
NamedNodeMap * attributes () const
 
Node * pseudoAwareNextSibling () const
 
Node * pseudoAwarePreviousSibling () const
 
Node * pseudoAwareFirstChild () const
 
Node * pseudoAwareLastChild () const
 
WEBCORE_EXPORT const URL & baseURI () const
 
void getSubresourceURLs (ListHashSet< URL > &) const
 
WEBCORE_EXPORT ExceptionOr< void > insertBefore (Node &newChild, Node *refChild)
 
WEBCORE_EXPORT ExceptionOr< void > replaceChild (Node &newChild, Node &oldChild)
 
WEBCORE_EXPORT ExceptionOr< void > removeChild (Node &child)
 
WEBCORE_EXPORT ExceptionOr< void > appendChild (Node &newChild)
 
bool hasChildNodes () const
 
Ref< Node > cloneNode (bool deep)
 
WEBCORE_EXPORT ExceptionOr< Ref< Node > > cloneNodeForBindings (bool deep)
 
virtual const AtomicString & localName () const
 
virtual const AtomicString & namespaceURI () const
 
virtual const AtomicString & prefix () const
 
virtual ExceptionOr< void > setPrefix (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 AtomicString & lookupPrefix (const AtomicString &namespaceURI) const
 
WEBCORE_EXPORT const AtomicString & lookupNamespaceURI (const AtomicString &prefix) const
 
WEBCORE_EXPORT String textContent (bool convertBRsToNewlines=false) const
 
WEBCORE_EXPORT ExceptionOr< void > setTextContent (const String &)
 
Node * lastDescendant () const
 
Node * firstDescendant () const
 
WEBCORE_EXPORT Element * previousElementSibling () const
 
WEBCORE_EXPORT Element * nextElementSibling () const
 
ExceptionOr< void > before (Vector< NodeOrString > &&)
 
ExceptionOr< void > after (Vector< NodeOrString > &&)
 
ExceptionOr< void > replaceWith (Vector< NodeOrString > &&)
 
WEBCORE_EXPORT ExceptionOr< void > remove ()
 
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 Element * shadowHost () const
 
WEBCORE_EXPORT Node * deprecatedShadowAncestorNode () const
 
ShadowRoot * containingShadowRoot () const
 
ShadowRoot * shadowRoot () const
 
bool isClosedShadowHidden (const Node &) const
 
HTMLSlotElement * assignedSlot () const
 
HTMLSlotElement * assignedSlotForBindings () const
 
bool isUndefinedCustomElement () const
 
bool isCustomElementUpgradeCandidate () const
 
bool isDefinedCustomElement () const
 
bool isFailedCustomElement () const
 
Node * nonBoundaryShadowTreeRootNode ()
 
ContainerNode * parentOrShadowHostNode () const
 
ContainerNode * parentInComposedTree () const
 
Element * parentElementInComposedTree () const
 
Element * parentOrShadowHostElement () const
 
void setParentNode (ContainerNode *)
 
Node & rootNode () const
 
Node & shadowIncludingRoot () const
 
Node & getRootNode (const GetRootNodeOptions &) const
 
void * opaqueRoot () const
 
ContainerNode * parentNodeGuaranteedHostFree () const
 
ContainerNode * nonShadowBoundaryParentNode () const
 
bool selfOrAncestorHasDirAutoAttribute () const
 
void setSelfOrAncestorHasDirAutoAttribute (bool flag)
 
Element * enclosingLinkEventParentOrSelf ()
 
void setPreviousSibling (Node *previous)
 
void setNextSibling (Node *next)
 
bool isRootEditableElement () const
 
WEBCORE_EXPORT Element * rootEditableElement () 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 Document * ownerDocument () const
 
Document & document () const
 
TreeScope & treeScope () const
 
bool isConnected () const
 
bool isInUserAgentShadowTree () const
 
bool isInShadowTree () const
 
bool isInTreeScope () const
 
bool isDocumentTypeNode () const
 
unsigned countChildNodes () const
 
Node * traverseToChildAt (unsigned) const
 
ExceptionOr< void > checkSetPrefix (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
 
RenderObject * renderer () const
 
void setRenderer (RenderObject *renderer)
 
WEBCORE_EXPORT RenderBox * renderBox () const
 
RenderBoxModelObject * renderBoxModelObject () const
 
const RenderStyle * renderStyle () const
 
virtual const RenderStyle * computedStyle (PseudoId pseudoElementSpecifier=NOPSEUDO)
 
virtual void finishedInsertingSubtree ()
 
void invalidateNodeListAndCollectionCachesInAncestors (const QualifiedName *attrName=nullptr, Element *attributeOwnerElement=nullptr)
 
NodeListsNodeData * nodeLists ()
 
void clearNodeLists ()
 
virtual bool willRespondToMouseMoveEvents ()
 
virtual bool willRespondToMouseClickEvents ()
 
virtual bool willRespondToMouseWheelEvents ()
 
WEBCORE_EXPORT unsigned short compareDocumentPosition (Node &)
 
Node * toNode () override
 
EventTargetInterface eventTargetInterface () const override
 
ScriptExecutionContext * scriptExecutionContext () 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
 
EventTargetData * eventTargetData () final
 
EventTargetData * eventTargetDataConcurrently () final
 
EventTargetData & ensureEventTargetData () final
 
HashMap< MutationObserver *, MutationRecordDeliveryOptions > registeredMutationObservers (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< void > setNodeValue (const String &)
 
virtual size_t approximateMemoryCost () const
 
ContainerNode * parentNode () const
 
Element * parentElement () const
 
Node * previousSibling () const
 
Node * nextSibling () const
 
WEBCORE_EXPORT RefPtr< NodeList > childNodes ()
 
Node * firstChild () const
 
Node * lastChild () const
 
bool hasAttributes () const
 
NamedNodeMap * attributes () const
 
Node * pseudoAwareNextSibling () const
 
Node * pseudoAwarePreviousSibling () const
 
Node * pseudoAwareFirstChild () const
 
Node * pseudoAwareLastChild () const
 
WEBCORE_EXPORT const URL & baseURI () const
 
void getSubresourceURLs (ListHashSet< URL > &) const
 
WEBCORE_EXPORT ExceptionOr< void > insertBefore (Node &newChild, Node *refChild)
 
WEBCORE_EXPORT ExceptionOr< void > replaceChild (Node &newChild, Node &oldChild)
 
WEBCORE_EXPORT ExceptionOr< void > removeChild (Node &child)
 
WEBCORE_EXPORT ExceptionOr< void > appendChild (Node &newChild)
 
bool hasChildNodes () const
 
Ref< Node > cloneNode (bool deep)
 
WEBCORE_EXPORT ExceptionOr< Ref< Node > > cloneNodeForBindings (bool deep)
 
virtual const AtomicString & localName () const
 
virtual const AtomicString & namespaceURI () const
 
virtual const AtomicString & prefix () const
 
virtual ExceptionOr< void > setPrefix (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 AtomicString & lookupPrefix (const AtomicString &namespaceURI) const
 
WEBCORE_EXPORT const AtomicString & lookupNamespaceURI (const AtomicString &prefix) const
 
WEBCORE_EXPORT String textContent (bool convertBRsToNewlines=false) const
 
WEBCORE_EXPORT ExceptionOr< void > setTextContent (const String &)
 
Node * lastDescendant () const
 
Node * firstDescendant () const
 
WEBCORE_EXPORT Element * previousElementSibling () const
 
WEBCORE_EXPORT Element * nextElementSibling () const
 
ExceptionOr< void > before (Vector< NodeOrString > &&)
 
ExceptionOr< void > after (Vector< NodeOrString > &&)
 
ExceptionOr< void > replaceWith (Vector< NodeOrString > &&)
 
WEBCORE_EXPORT ExceptionOr< void > remove ()
 
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 Element * shadowHost () const
 
WEBCORE_EXPORT Node * deprecatedShadowAncestorNode () const
 
ShadowRoot * containingShadowRoot () const
 
ShadowRoot * shadowRoot () const
 
bool isClosedShadowHidden (const Node &) const
 
HTMLSlotElement * assignedSlot () const
 
HTMLSlotElement * assignedSlotForBindings () const
 
bool isUndefinedCustomElement () const
 
bool isCustomElementUpgradeCandidate () const
 
bool isDefinedCustomElement () const
 
bool isFailedCustomElement () const
 
Node * nonBoundaryShadowTreeRootNode ()
 
ContainerNode * parentOrShadowHostNode () const
 
ContainerNode * parentInComposedTree () const
 
Element * parentElementInComposedTree () const
 
Element * parentOrShadowHostElement () const
 
void setParentNode (ContainerNode *)
 
Node & rootNode () const
 
Node & shadowIncludingRoot () const
 
Node & getRootNode (const GetRootNodeOptions &) const
 
void * opaqueRoot () const
 
ContainerNode * parentNodeGuaranteedHostFree () const
 
ContainerNode * nonShadowBoundaryParentNode () const
 
bool selfOrAncestorHasDirAutoAttribute () const
 
void setSelfOrAncestorHasDirAutoAttribute (bool flag)
 
Element * enclosingLinkEventParentOrSelf ()
 
void setPreviousSibling (Node *previous)
 
void setNextSibling (Node *next)
 
bool isRootEditableElement () const
 
WEBCORE_EXPORT Element * rootEditableElement () 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 Document * ownerDocument () const
 
Document & document () const
 
TreeScope & treeScope () const
 
bool isConnected () const
 
bool isInUserAgentShadowTree () const
 
bool isInShadowTree () const
 
bool isInTreeScope () const
 
bool isDocumentTypeNode () const
 
unsigned countChildNodes () const
 
Node * traverseToChildAt (unsigned) const
 
ExceptionOr< void > checkSetPrefix (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
 
RenderObject * renderer () const
 
void setRenderer (RenderObject *renderer)
 
WEBCORE_EXPORT RenderBox * renderBox () const
 
RenderBoxModelObject * renderBoxModelObject () const
 
const RenderStyle * renderStyle () const
 
virtual const RenderStyle * computedStyle (PseudoId pseudoElementSpecifier=NOPSEUDO)
 
virtual void finishedInsertingSubtree ()
 
void invalidateNodeListAndCollectionCachesInAncestors (const QualifiedName *attrName=nullptr, Element *attributeOwnerElement=nullptr)
 
NodeListsNodeData * nodeLists ()
 
void clearNodeLists ()
 
virtual bool willRespondToMouseMoveEvents ()
 
virtual bool willRespondToMouseClickEvents ()
 
virtual bool willRespondToMouseWheelEvents ()
 
WEBCORE_EXPORT unsigned short compareDocumentPosition (Node &)
 
Node * toNode () override
 
EventTargetInterface eventTargetInterface () const override
 
ScriptExecutionContext * scriptExecutionContext () 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
 
EventTargetData * eventTargetData () final
 
EventTargetData * eventTargetDataConcurrently () final
 
EventTargetData & ensureEventTargetData () final
 
HashMap< MutationObserver *, MutationRecordDeliveryOptions > registeredMutationObservers (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 DOMWindow * toDOMWindow ()
 
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 > &&)
 
EventListener * attributeEventListener (const AtomicString &eventType)
 
bool hasEventListeners () const
 
bool hasEventListeners (const AtomicString &eventType) const
 
bool hasCapturingEventListeners (const AtomicString &eventType)
 
bool hasActiveEventListeners (const AtomicString &eventType) const
 
const EventListenerVector & eventListeners (const AtomicString &eventType)
 
bool fireEventListeners (Event &)
 
bool isFiringEventListeners () const
 
void visitJSEventListeners (JSC::SlotVisitor &)
 
void invalidateJSEventListeners (JSC::JSObject *)
 
void ref ()
 
void deref ()
 
virtual DOMWindow * toDOMWindow ()
 
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 > &&)
 
EventListener * attributeEventListener (const AtomicString &eventType)
 
bool hasEventListeners () const
 
bool hasEventListeners (const AtomicString &eventType) const
 
bool hasCapturingEventListeners (const AtomicString &eventType)
 
bool hasActiveEventListeners (const AtomicString &eventType) const
 
const EventListenerVector & eventListeners (const AtomicString &eventType)
 
bool fireEventListeners (Event &)
 
bool isFiringEventListeners () const
 
void visitJSEventListeners (JSC::SlotVisitor &)
 
void invalidateJSEventListeners (JSC::JSObject *)
 
- Public Member Functions inherited from WebCore::ScriptWrappable
JSDOMObject * wrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
JSDOMObject * wrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
- Public Member Functions inherited from WebCore::TreeScope
TreeScope * parentTreeScope () const
 
void setParentTreeScope (TreeScope &)
 
Element * focusedElementInScope ()
 
Element * pointerLockElement () const
 
WEBCORE_EXPORT Element * getElementById (const AtomicString &) const
 
WEBCORE_EXPORT Element * getElementById (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 Element * getElementByName (const AtomicString &) const
 
bool hasElementWithName (const AtomicStringImpl &) const
 
bool containsMultipleElementsWithName (const AtomicString &) const
 
void addElementByName (const AtomicStringImpl &, Element &)
 
void removeElementByName (const AtomicStringImpl &, Element &)
 
Document & documentScope () const
 
Node & retargetToScope (Node &) const
 
Node * ancestorNodeInThisScope (Node *) const
 
WEBCORE_EXPORT Element * ancestorElementInThisScope (Element *) const
 
void addImageMap (HTMLMapElement &)
 
void removeImageMap (HTMLMapElement &)
 
HTMLMapElement * getImageMap (const String &url) const
 
bool shouldCacheLabelsByForAttribute () const
 
void addLabel (const AtomicStringImpl &forAttributeValue, HTMLLabelElement &)
 
void removeLabel (const AtomicStringImpl &forAttributeValue, HTMLLabelElement &)
 
HTMLLabelElement * labelElementForId (const AtomicString &forAttributeValue)
 
WEBCORE_EXPORT Element * elementFromPoint (int x, int y)
 
Element * findAnchor (const String &name)
 
void adoptIfNeeded (Node &)
 
ContainerNode & rootNode () const
 
IdTargetObserverRegistry & idTargetObserverRegistry () const
 
TreeScope * parentTreeScope () const
 
void setParentTreeScope (TreeScope &)
 
Element * focusedElementInScope ()
 
Element * pointerLockElement () const
 
WEBCORE_EXPORT Element * getElementById (const AtomicString &) const
 
WEBCORE_EXPORT Element * getElementById (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 Element * getElementByName (const AtomicString &) const
 
bool hasElementWithName (const AtomicStringImpl &) const
 
bool containsMultipleElementsWithName (const AtomicString &) const
 
void addElementByName (const AtomicStringImpl &, Element &)
 
void removeElementByName (const AtomicStringImpl &, Element &)
 
Document & documentScope () const
 
Node & retargetToScope (Node &) const
 
Node * ancestorNodeInThisScope (Node *) const
 
WEBCORE_EXPORT Element * ancestorElementInThisScope (Element *) const
 
void addImageMap (HTMLMapElement &)
 
void removeImageMap (HTMLMapElement &)
 
HTMLMapElement * getImageMap (const String &url) const
 
bool shouldCacheLabelsByForAttribute () const
 
void addLabel (const AtomicStringImpl &forAttributeValue, HTMLLabelElement &)
 
void removeLabel (const AtomicStringImpl &forAttributeValue, HTMLLabelElement &)
 
HTMLLabelElement * labelElementForId (const AtomicString &forAttributeValue)
 
WEBCORE_EXPORT Element * elementFromPoint (int x, int y)
 
Element * findAnchor (const String &name)
 
void adoptIfNeeded (Node &)
 
ContainerNode & rootNode () const
 
IdTargetObserverRegistry & idTargetObserverRegistry () const
 

Static Public Member Functions

static Ref< ShadowRoot > create (Document &document, ShadowRootMode type)
 
static Ref< ShadowRoot > create (Document &document, std::unique_ptr< SlotAssignment > &&assignment)
 
static Ref< ShadowRoot > create (Document &document, ShadowRootMode type)
 
static Ref< ShadowRoot > create (Document &document, std::unique_ptr< SlotAssignment > &&assignment)
 
- Static Public Member Functions inherited from WebCore::DocumentFragment
static Ref< DocumentFragment > create (Document &)
 
static Ref< DocumentFragment > create (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)
 
HTMLCollection * cachedHTMLCollection (CollectionType)
 
 ContainerNode (Document &, ConstructionType=CreateContainer)
 
void removeDetachedChildren ()
 
void setFirstChild (Node *child)
 
void setLastChild (Node *child)
 
HTMLCollection * cachedHTMLCollection (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
 
NodeRareData * rareData () const
 
NodeRareData & ensureRareData ()
 
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
 
NodeRareData * rareData () const
 
NodeRareData & ensureRareData ()
 
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 EventTargetData * eventTargetData () const
 
virtual ~EventTarget ()=default
 
const EventTargetData * eventTargetData () 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)
 
Node * nodeFromPoint (const LayoutPoint &clientPoint, LayoutPoint *localPoint)
 
 TreeScope (ShadowRoot &, Document &)
 
 TreeScope (Document &)
 
 ~TreeScope ()
 
void destroyTreeScopeData ()
 
void setDocumentScope (Document &document)
 
Node * nodeFromPoint (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: