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

#include <DocumentFragment.h>

Inheritance diagram for WebCore::DocumentFragment:
WebCore::ContainerNode WebCore::ContainerNode WebCore::Node WebCore::Node WebCore::Node WebCore::Node WebCore::EventTarget WebCore::EventTarget WebCore::EventTarget WebCore::EventTarget WebCore::EventTarget WebCore::EventTarget WebCore::EventTarget WebCore::EventTarget WebCore::SameSizeAsShadowRoot WebCore::ShadowRoot WebCore::ShadowRoot WebCore::TemplateContentDocumentFragment

Public Member Functions

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 InsertionNotificationRequest insertedInto (ContainerNode &insertionPoint)
 
virtual void finishedInsertingSubtree ()
 
virtual void removedFrom (ContainerNode &insertionPoint)
 
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 InsertionNotificationRequest insertedInto (ContainerNode &insertionPoint)
 
virtual void finishedInsertingSubtree ()
 
virtual void removedFrom (ContainerNode &insertionPoint)
 
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 removeAllEventListeners ()
 
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 removeAllEventListeners ()
 
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 *)
 

Static Public Member Functions

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 ()
 

Protected Member Functions

 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 didMoveToNewDocument (Document &oldDocument)
 
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 didMoveToNewDocument (Document &oldDocument)
 
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 ()
 

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

◆ DocumentFragment() [1/2]

DocumentFragment::DocumentFragment ( Document document,
ConstructionType  constructionType = CreateContainer 
)
protected

◆ DocumentFragment() [2/2]

WebCore::DocumentFragment::DocumentFragment ( Document ,
ConstructionType  = CreateContainer 
)
protected

Member Function Documentation

◆ canContainRangeEndPoint() [1/2]

bool WebCore::DocumentFragment::canContainRangeEndPoint ( ) const
inlinefinalvirtual

Reimplemented from WebCore::Node.

◆ canContainRangeEndPoint() [2/2]

bool WebCore::DocumentFragment::canContainRangeEndPoint ( ) const
inlinefinalvirtual

Reimplemented from WebCore::Node.

◆ create() [1/2]

static Ref<DocumentFragment> WebCore::DocumentFragment::create ( Document )
static

◆ create() [2/2]

Ref< DocumentFragment > DocumentFragment::create ( Document document)
static

◆ getElementById() [1/2]

Element * DocumentFragment::getElementById ( const AtomicString id) const

◆ getElementById() [2/2]

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

◆ isTemplateContent() [1/2]

virtual bool WebCore::DocumentFragment::isTemplateContent ( ) const
inlinevirtual

◆ isTemplateContent() [2/2]

virtual bool WebCore::DocumentFragment::isTemplateContent ( ) const
inlinevirtual

◆ nodeName() [1/2]

String WebCore::DocumentFragment::nodeName ( ) const
finalprotectedvirtual

Implements WebCore::Node.

◆ nodeName() [2/2]

String DocumentFragment::nodeName ( ) const
finalprotectedvirtual

Implements WebCore::Node.

◆ parseHTML() [1/2]

void WebCore::DocumentFragment::parseHTML ( const String ,
Element contextElement,
ParserContentPolicy  = AllowScriptingContent 
)

◆ parseHTML() [2/2]

void DocumentFragment::parseHTML ( const String source,
Element contextElement,
ParserContentPolicy  parserContentPolicy = AllowScriptingContent 
)

◆ parseXML() [1/2]

bool DocumentFragment::parseXML ( const String source,
Element contextElement,
ParserContentPolicy  parserContentPolicy = AllowScriptingContent 
)

◆ parseXML() [2/2]

bool WebCore::DocumentFragment::parseXML ( const String ,
Element contextElement,
ParserContentPolicy  = AllowScriptingContent 
)

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