WebCore::Node Class Reference

#include <Node.h>

Collaboration diagram for WebCore::Node:
Collaboration graph
[legend]

List of all members.

Public Types

enum  NodeType {
  ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3, CDATA_SECTION_NODE = 4,
  ENTITY_REFERENCE_NODE = 5, ENTITY_NODE = 6, PROCESSING_INSTRUCTION_NODE = 7, COMMENT_NODE = 8,
  DOCUMENT_NODE = 9, DOCUMENT_TYPE_NODE = 10, DOCUMENT_FRAGMENT_NODE = 11, NOTATION_NODE = 12,
  XPATH_NAMESPACE_NODE = 13
}
enum  StyleChange {
  NoChange, NoInherit, Inherit, Detach,
  Force
}

Public Member Functions

virtual ~Node ()
bool hasTagName (const QualifiedName &) const
virtual String nodeName () const =0
virtual String nodeValue () const
virtual void setNodeValue (const String &, ExceptionCode &)
virtual NodeType nodeType () const =0
NodeparentNode () const
Element * parentElement () const
NodepreviousSibling () const
NodenextSibling () const
PassRefPtr< NodeList > childNodes ()
NodefirstChild () const
NodelastChild () const
bool hasAttributes () const
NamedNodeMap * attributes () const
virtual KURL baseURI () const
void getSubresourceURLs (ListHashSet< KURL > &) const
virtual bool insertBefore (PassRefPtr< Node > newChild, Node *refChild, ExceptionCode &, bool shouldLazyAttach=false)
virtual bool replaceChild (PassRefPtr< Node > newChild, Node *oldChild, ExceptionCode &, bool shouldLazyAttach=false)
virtual bool removeChild (Node *child, ExceptionCode &)
virtual bool appendChild (PassRefPtr< Node > newChild, ExceptionCode &, bool shouldLazyAttach=false)
void remove (ExceptionCode &)
bool hasChildNodes () const
virtual PassRefPtr< NodecloneNode (bool deep)=0
const AtomicString & localName () const
const AtomicString & namespaceURI () const
const AtomicString & prefix () const
virtual void setPrefix (const AtomicString &, ExceptionCode &)
void normalize ()
bool isSameNode (Node *other) const
bool isEqualNode (Node *) const
bool isDefaultNamespace (const AtomicString &namespaceURI) const
String lookupPrefix (const AtomicString &namespaceURI) const
String lookupNamespaceURI (const String &prefix) const
String lookupNamespacePrefix (const AtomicString &namespaceURI, const Element *originalElement) const
String textContent (bool convertBRsToNewlines=false) const
void setTextContent (const String &, ExceptionCode &)
NodelastDescendant () const
NodefirstDescendant () const
bool isElementNode () const
bool isContainerNode () const
bool isTextNode () const
virtual bool isHTMLElement () const
virtual bool isMediaControlElement () const
virtual bool isStyledElement () const
virtual bool isFrameOwnerElement () const
virtual bool isAttributeNode () const
virtual bool isCommentNode () const
virtual bool isCharacterDataNode () const
bool isDocumentNode () const
virtual bool isShadowNode () const
virtual NodeshadowParentNode ()
NodeshadowAncestorNode ()
NodeshadowTreeRootNode ()
bool isInShadowTree ()
virtual ContainerNode * eventParentNode ()
NodeenclosingLinkEventParentOrSelf ()
void eventAncestors (Vector< RefPtr< ContainerNode > > &ancestors)
bool isBlockFlow () const
bool isBlockFlowOrBlockTable () const
void setPreviousSibling (Node *previous)
void setNextSibling (Node *next)
NodepreviousNodeConsideringAtomicNodes () const
NodenextNodeConsideringAtomicNodes () const
NodenextLeafNode () const
NodepreviousLeafNode () const
bool isEditableBlock () const
Element * enclosingBlockFlowElement () const
Element * enclosingInlineElement () const
Element * rootEditableElement () const
bool inSameContainingBlockFlowElement (Node *)
virtual ContainerNode * addChild (PassRefPtr< Node >)
virtual void finishParsingChildren ()
virtual void beginParsingChildren ()
virtual void aboutToUnload ()
virtual bool sheetLoaded ()
bool hasID () const
bool hasClass () const
bool active () const
bool inActiveChain () const
bool inDetach () const
bool hovered () const
bool focused () const
bool attached () const
void setAttached (bool b=true)
bool needsStyleRecalc () const
StyleChangeType styleChangeType () const
bool childNeedsStyleRecalc () const
bool isLink () const
void setHasID (bool b=true)
void setHasClass (bool b=true)
void setChildNeedsStyleRecalc (bool b=true)
void setInDocument (bool b=true)
void setInActiveChain (bool b=true)
void setNeedsStyleRecalc (StyleChangeType changeType=FullStyleChange)
void setIsLink (bool b=true)
void lazyAttach ()
virtual bool canLazyAttach ()
virtual void setFocus (bool b=true)
virtual void setActive (bool b=true, bool=false)
virtual void setHovered (bool b=true)
virtual short tabIndex () const
virtual bool supportsFocus () const
virtual bool isFocusable () const
virtual bool isKeyboardFocusable (KeyboardEvent *) const
virtual bool isMouseFocusable () const
virtual bool isContentEditable () const
virtual bool isContentRichlyEditable () const
virtual bool shouldUseInputMethod () const
virtual IntRect getRect () const
virtual void recalcStyle (StyleChange=NoChange)
unsigned nodeIndex () const
virtual Document * ownerDocument () const
Document * document () const
void setDocument (Document *)
bool inDocument () const
bool isReadOnlyNode () const
virtual bool childTypeAllowed (NodeType)
unsigned childNodeCount () const
NodechildNode (unsigned index) const
NodetraverseNextNode (const Node *stayWithin=0) const
NodetraverseNextSibling (const Node *stayWithin=0) const
NodetraversePreviousNode (const Node *stayWithin=0) const
NodetraverseNextNodePostOrder () const
NodetraversePreviousNodePostOrder (const Node *stayWithin=0) const
NodetraversePreviousSiblingPostOrder (const Node *stayWithin=0) const
NodepreviousEditable () const
NodenextEditable () const
RenderObject * renderer () const
RenderObject * nextRenderer ()
RenderObject * previousRenderer ()
void setRenderer (RenderObject *renderer)
RenderBox * renderBox () const
RenderBoxModelObject * renderBoxModelObject () const
void checkSetPrefix (const AtomicString &prefix, ExceptionCode &)
bool isDescendantOf (const Node *) const
bool contains (const Node *) const
void checkAddChild (Node *newChild, ExceptionCode &)
virtual bool childAllowed (Node *newChild)
void checkReplaceChild (Node *newChild, Node *oldChild, ExceptionCode &)
virtual bool canReplaceChild (Node *newChild, Node *oldChild)
virtual bool offsetInCharacters () const
virtual int maxCharacterOffset () const
virtual bool canSelectAll () const
virtual void selectAll ()
virtual bool canStartSelection () const
FloatPoint convertToPage (const FloatPoint &p) const
FloatPoint convertFromPage (const FloatPoint &p) const
virtual void attach ()
virtual void detach ()
virtual void willRemove ()
void createRendererIfNeeded ()
PassRefPtr< RenderStyle > styleForRenderer ()
virtual bool rendererIsNeeded (RenderStyle *)
virtual RenderObject * createRenderer (RenderArena *, RenderStyle *)
RenderStyle * renderStyle () const
virtual void setRenderStyle (PassRefPtr< RenderStyle >)
virtual RenderStyle * computedStyle ()
virtual void insertedIntoDocument ()
virtual void removedFromDocument ()
virtual void insertedIntoTree (bool)
virtual void removedFromTree (bool)
virtual void childrenChanged (bool=false, Node *=0, Node *=0, int=0)
virtual void formatForDebugger (char *buffer, unsigned length) const
void showNode (const char *prefix="") const
void showTreeForThis () const
void showTreeAndMark (const Node *markedNode1, const char *markedLabel1, const Node *markedNode2=0, const char *markedLabel2=0) const
void registerDynamicNodeList (DynamicNodeList *)
void unregisterDynamicNodeList (DynamicNodeList *)
void notifyNodeListsChildrenChanged ()
void notifyLocalNodeListsChildrenChanged ()
void notifyNodeListsAttributeChanged ()
void notifyLocalNodeListsAttributeChanged ()
PassRefPtr< NodeList > getElementsByTagName (const String &)
PassRefPtr< NodeList > getElementsByTagNameNS (const AtomicString &namespaceURI, const String &localName)
PassRefPtr< NodeList > getElementsByName (const String &elementName)
PassRefPtr< NodeList > getElementsByClassName (const String &classNames)
PassRefPtr< Element > querySelector (const String &selectors, ExceptionCode &)
PassRefPtr< NodeList > querySelectorAll (const String &selectors, ExceptionCode &)
unsigned short compareDocumentPosition (Node *)
virtual NodetoNode ()
virtual ScriptExecutionContext * scriptExecutionContext () const
virtual bool addEventListener (const AtomicString &eventType, PassRefPtr< EventListener >, bool useCapture)
virtual bool removeEventListener (const AtomicString &eventType, EventListener *, bool useCapture)
virtual void * preDispatchEventHandler (Event *)
virtual void postDispatchEventHandler (Event *, void *)
virtual bool dispatchEvent (PassRefPtr< Event >)
bool dispatchGenericEvent (PassRefPtr< Event >)
virtual void handleLocalEvents (Event *)
void dispatchSubtreeModifiedEvent ()
void dispatchUIEvent (const AtomicString &eventType, int detail, PassRefPtr< Event > underlyingEvent)
bool dispatchKeyEvent (const PlatformKeyboardEvent &)
void dispatchWheelEvent (PlatformWheelEvent &)
bool dispatchMouseEvent (const PlatformMouseEvent &, const AtomicString &eventType, int clickCount=0, Node *relatedTarget=0)
bool dispatchMouseEvent (const AtomicString &eventType, int button, int clickCount, int pageX, int pageY, int screenX, int screenY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool isSimulated, Node *relatedTarget, PassRefPtr< Event > underlyingEvent)
void dispatchSimulatedMouseEvent (const AtomicString &eventType, PassRefPtr< Event > underlyingEvent)
void dispatchSimulatedClick (PassRefPtr< Event > underlyingEvent, bool sendMouseEvents=false, bool showPressedLook=true)
virtual void dispatchFocusEvent ()
virtual void dispatchBlurEvent ()
virtual void defaultEventHandler (Event *)
virtual bool disabled () const
virtual EventTargetData * eventTargetData ()
virtual EventTargetData * ensureEventTargetData ()

Static Public Member Functions

static bool isSupported (const String &feature, const String &version)
static void startIgnoringLeaks ()
static void stopIgnoringLeaks ()
static void dumpStatistics ()
static StyleChange diff (const RenderStyle *, const RenderStyle *)
static bool isSVGElement ()
static bool isWMLElement ()
static bool isMathMLElement ()

Protected Types

enum  ConstructionType {
  CreateContainer, CreateElement, CreateOther, CreateText,
  CreateElementZeroRefCount
}

Protected Member Functions

 Node (Document *, ConstructionType)
virtual void willMoveToNewOwnerDocument ()
virtual void didMoveToNewOwnerDocument ()
virtual void addSubresourceAttributeURLs (ListHashSet< KURL > &) const
void setTabIndexExplicitly (short)
bool hasRareData () const
NodeRareData * rareData () const
NodeRareData * ensureRareData ()

Protected Attributes

bool m_parsingChildrenFinished: 1
bool m_isStyleAttributeValid: 1
bool m_synchronizingStyleAttribute: 1

Private Member Functions

virtual void refEventTarget ()
virtual void derefEventTarget ()
void removeAllEventListenersSlowCase ()
virtual NodeRareData * createRareData ()
NodecontainerChildNode (unsigned index) const
unsigned containerChildNodeCount () const
NodecontainerFirstChild () const
NodecontainerLastChild () const
bool rareDataFocused () const
virtual RenderStyle * nonRendererRenderStyle () const
virtual const AtomicString & virtualPrefix () const
virtual const AtomicString & virtualLocalName () const
virtual const AtomicString & virtualNamespaceURI () const
Element * ancestorElement () const
void appendTextContent (bool convertBRsToNewlines, StringBuilder &) const

Static Private Member Functions

static bool initialRefCount (ConstructionType)
static bool isContainer (ConstructionType)
static bool isElement (ConstructionType)
static bool isText (ConstructionType)

Private Attributes

Document * m_document
Nodem_previous
Nodem_next
RenderObject * m_renderer
unsigned m_styleChange: 2
bool m_hasId: 1
bool m_hasClass: 1
bool m_attached: 1
bool m_childNeedsStyleRecalc: 1
bool m_inDocument: 1
bool m_isLink: 1
bool m_active: 1
bool m_hovered: 1
bool m_inActiveChain: 1
bool m_inDetach: 1
bool m_hasRareData: 1
const bool m_isElement: 1
const bool m_isContainer: 1
const bool m_isText: 1

Friends

class Document

Detailed Description

Definition at line 80 of file Node.h.


Member Enumeration Documentation

Enumerator:
CreateContainer 
CreateElement 
CreateOther 
CreateText 
CreateElementZeroRefCount 

Definition at line 564 of file Node.h.

Enumerator:
ELEMENT_NODE 
ATTRIBUTE_NODE 
TEXT_NODE 
CDATA_SECTION_NODE 
ENTITY_REFERENCE_NODE 
ENTITY_NODE 
PROCESSING_INSTRUCTION_NODE 
COMMENT_NODE 
DOCUMENT_NODE 
DOCUMENT_TYPE_NODE 
DOCUMENT_FRAGMENT_NODE 
NOTATION_NODE 
XPATH_NAMESPACE_NODE 

Definition at line 83 of file Node.h.

Enumerator:
NoChange 
NoInherit 
Inherit 
Detach 
Force 

Definition at line 106 of file Node.h.


Constructor & Destructor Documentation

virtual WebCore::Node::~Node (  )  [virtual]
WebCore::Node::Node ( Document *  ,
ConstructionType   
) [protected]

Member Function Documentation

virtual void WebCore::Node::aboutToUnload (  )  [inline, virtual]

Definition at line 265 of file Node.h.

bool WebCore::Node::active (  )  const [inline]

Definition at line 272 of file Node.h.

References m_active.

virtual ContainerNode* WebCore::Node::addChild ( PassRefPtr< Node  )  [virtual]
virtual bool WebCore::Node::addEventListener ( const AtomicString &  eventType,
PassRefPtr< EventListener >  ,
bool  useCapture 
) [virtual]
virtual void WebCore::Node::addSubresourceAttributeURLs ( ListHashSet< KURL > &   )  const [inline, protected, virtual]

Definition at line 570 of file Node.h.

Element* WebCore::Node::ancestorElement (  )  const [private]
virtual bool WebCore::Node::appendChild ( PassRefPtr< Node newChild,
ExceptionCode ,
bool  shouldLazyAttach = false 
) [virtual]
void WebCore::Node::appendTextContent ( bool  convertBRsToNewlines,
StringBuilder &   
) const [private]
virtual void WebCore::Node::attach (  )  [virtual]

Attaches this node to the rendering tree. This calculates the style to be applied to the node and creates an appropriate RenderObject which will be inserted into the tree (except when the style has display: none). This makes the node visible in the FrameView.

bool WebCore::Node::attached (  )  const [inline]

Definition at line 277 of file Node.h.

References m_attached.

NamedNodeMap* WebCore::Node::attributes (  )  const
virtual KURL WebCore::Node::baseURI (  )  const [virtual]
virtual void WebCore::Node::beginParsingChildren (  )  [inline, virtual]

Definition at line 260 of file Node.h.

virtual bool WebCore::Node::canLazyAttach (  )  [virtual]
virtual bool WebCore::Node::canReplaceChild ( Node newChild,
Node oldChild 
) [virtual]
virtual bool WebCore::Node::canSelectAll (  )  const [inline, virtual]

Definition at line 409 of file Node.h.

virtual bool WebCore::Node::canStartSelection (  )  const [virtual]
void WebCore::Node::checkAddChild ( Node newChild,
ExceptionCode  
)
void WebCore::Node::checkReplaceChild ( Node newChild,
Node oldChild,
ExceptionCode  
)
void WebCore::Node::checkSetPrefix ( const AtomicString &  prefix,
ExceptionCode  
)
virtual bool WebCore::Node::childAllowed ( Node newChild  )  [virtual]
bool WebCore::Node::childNeedsStyleRecalc (  )  const [inline]

Definition at line 281 of file Node.h.

References m_childNeedsStyleRecalc.

Node* WebCore::Node::childNode ( unsigned  index  )  const [inline]

Definition at line 342 of file Node.h.

References containerChildNode(), and isContainerNode().

Here is the call graph for this function:

unsigned WebCore::Node::childNodeCount (  )  const [inline]

Definition at line 341 of file Node.h.

References containerChildNodeCount(), and isContainerNode().

Here is the call graph for this function:

PassRefPtr<NodeList> WebCore::Node::childNodes (  ) 
virtual void WebCore::Node::childrenChanged ( bool  = false,
Node = 0,
Node = 0,
int  = 0 
) [inline, virtual]

Notifies the node that it's list of children have changed (either by adding or removing child nodes), or a child node that is of the type CDATA_SECTION_NODE, TEXT_NODE or COMMENT_NODE has changed its value.

Definition at line 483 of file Node.h.

virtual bool WebCore::Node::childTypeAllowed ( NodeType   )  [inline, virtual]

Definition at line 340 of file Node.h.

virtual PassRefPtr<Node> WebCore::Node::cloneNode ( bool  deep  )  [pure virtual]
unsigned short WebCore::Node::compareDocumentPosition ( Node  ) 
virtual RenderStyle* WebCore::Node::computedStyle (  )  [virtual]
Node* WebCore::Node::containerChildNode ( unsigned  index  )  const [private]
unsigned WebCore::Node::containerChildNodeCount (  )  const [private]
Node* WebCore::Node::containerFirstChild (  )  const [private]
Node* WebCore::Node::containerLastChild (  )  const [private]
bool WebCore::Node::contains ( const Node  )  const
FloatPoint WebCore::Node::convertFromPage ( const FloatPoint &  p  )  const
FloatPoint WebCore::Node::convertToPage ( const FloatPoint &  p  )  const
virtual NodeRareData* WebCore::Node::createRareData (  )  [private, virtual]
virtual RenderObject* WebCore::Node::createRenderer ( RenderArena *  ,
RenderStyle *   
) [virtual]
void WebCore::Node::createRendererIfNeeded (  ) 
virtual void WebCore::Node::defaultEventHandler ( Event  )  [virtual]

Perform the default action for an event e.g. submitting a form

virtual void WebCore::Node::derefEventTarget (  )  [inline, private, virtual]

Definition at line 588 of file Node.h.

virtual void WebCore::Node::detach (  )  [virtual]

Detaches the node from the rendering tree, making it invisible in the rendered view. This method will remove the node's rendering object from the rendering tree and delete it.

virtual void WebCore::Node::didMoveToNewOwnerDocument (  )  [protected, virtual]
static StyleChange WebCore::Node::diff ( const RenderStyle *  ,
const RenderStyle *   
) [static]
virtual bool WebCore::Node::disabled (  )  const [virtual]

Used for disabled form elements; if true, prevents mouse events from being dispatched to event listeners, and prevents DOMActivate events from being sent at all.

virtual void WebCore::Node::dispatchBlurEvent (  )  [virtual]
virtual bool WebCore::Node::dispatchEvent ( PassRefPtr< Event  )  [virtual]
virtual void WebCore::Node::dispatchFocusEvent (  )  [virtual]
bool WebCore::Node::dispatchGenericEvent ( PassRefPtr< Event  ) 
bool WebCore::Node::dispatchKeyEvent ( const PlatformKeyboardEvent &   ) 
bool WebCore::Node::dispatchMouseEvent ( const AtomicString &  eventType,
int  button,
int  clickCount,
int  pageX,
int  pageY,
int  screenX,
int  screenY,
bool  ctrlKey,
bool  altKey,
bool  shiftKey,
bool  metaKey,
bool  isSimulated,
Node relatedTarget,
PassRefPtr< Event underlyingEvent 
)
bool WebCore::Node::dispatchMouseEvent ( const PlatformMouseEvent &  ,
const AtomicString &  eventType,
int  clickCount = 0,
Node relatedTarget = 0 
)
void WebCore::Node::dispatchSimulatedClick ( PassRefPtr< Event underlyingEvent,
bool  sendMouseEvents = false,
bool  showPressedLook = true 
)
void WebCore::Node::dispatchSimulatedMouseEvent ( const AtomicString &  eventType,
PassRefPtr< Event underlyingEvent 
)
void WebCore::Node::dispatchSubtreeModifiedEvent (  ) 
void WebCore::Node::dispatchUIEvent ( const AtomicString &  eventType,
int  detail,
PassRefPtr< Event underlyingEvent 
)
void WebCore::Node::dispatchWheelEvent ( PlatformWheelEvent &   ) 
Document* WebCore::Node::document (  )  const [inline]

Definition at line 323 of file Node.h.

References DOCUMENT_TYPE_NODE, inDocument(), m_document, and nodeType().

Here is the call graph for this function:

static void WebCore::Node::dumpStatistics (  )  [static]
Element* WebCore::Node::enclosingBlockFlowElement (  )  const
Element* WebCore::Node::enclosingInlineElement (  )  const
Node* WebCore::Node::enclosingLinkEventParentOrSelf (  ) 
virtual EventTargetData* WebCore::Node::ensureEventTargetData (  )  [virtual]
NodeRareData* WebCore::Node::ensureRareData (  )  [protected]
void WebCore::Node::eventAncestors ( Vector< RefPtr< ContainerNode > > &  ancestors  ) 
virtual ContainerNode* WebCore::Node::eventParentNode (  )  [virtual]
virtual EventTargetData* WebCore::Node::eventTargetData (  )  [virtual]
virtual void WebCore::Node::finishParsingChildren (  )  [inline, virtual]

Definition at line 259 of file Node.h.

Node* WebCore::Node::firstChild (  )  const [inline]

Definition at line 123 of file Node.h.

References containerFirstChild(), and isContainerNode().

Here is the call graph for this function:

Node* WebCore::Node::firstDescendant (  )  const
bool WebCore::Node::focused (  )  const [inline]

Definition at line 276 of file Node.h.

References hasRareData(), and rareDataFocused().

Here is the call graph for this function:

virtual void WebCore::Node::formatForDebugger ( char *  buffer,
unsigned  length 
) const [virtual]
PassRefPtr<NodeList> WebCore::Node::getElementsByClassName ( const String &  classNames  ) 
PassRefPtr<NodeList> WebCore::Node::getElementsByName ( const String &  elementName  ) 
PassRefPtr<NodeList> WebCore::Node::getElementsByTagName ( const String &   ) 
PassRefPtr<NodeList> WebCore::Node::getElementsByTagNameNS ( const AtomicString &  namespaceURI,
const String &  localName 
)
virtual IntRect WebCore::Node::getRect (  )  const [virtual]
void WebCore::Node::getSubresourceURLs ( ListHashSet< KURL > &   )  const
virtual void WebCore::Node::handleLocalEvents ( Event  )  [virtual]
bool WebCore::Node::hasAttributes (  )  const
bool WebCore::Node::hasChildNodes (  )  const [inline]

Definition at line 141 of file Node.h.

References firstChild().

Here is the call graph for this function:

bool WebCore::Node::hasClass (  )  const [inline]

Definition at line 271 of file Node.h.

References m_hasClass.

bool WebCore::Node::hasID (  )  const [inline]

Definition at line 270 of file Node.h.

References m_hasId.

bool WebCore::Node::hasRareData (  )  const [inline, protected]

Definition at line 573 of file Node.h.

References m_hasRareData.

bool WebCore::Node::hasTagName ( const QualifiedName &   )  const
bool WebCore::Node::hovered (  )  const [inline]

Definition at line 275 of file Node.h.

References m_hovered.

bool WebCore::Node::inActiveChain (  )  const [inline]

Definition at line 273 of file Node.h.

References m_inActiveChain.

bool WebCore::Node::inDetach (  )  const [inline]

Definition at line 274 of file Node.h.

References m_inDetach.

bool WebCore::Node::inDocument (  )  const [inline]

Definition at line 333 of file Node.h.

References m_document, and m_inDocument.

static bool WebCore::Node::initialRefCount ( ConstructionType   )  [static, private]
bool WebCore::Node::inSameContainingBlockFlowElement ( Node  ) 
virtual bool WebCore::Node::insertBefore ( PassRefPtr< Node newChild,
Node refChild,
ExceptionCode ,
bool  shouldLazyAttach = false 
) [virtual]
virtual void WebCore::Node::insertedIntoDocument (  )  [virtual]

Notifies the node that it has been inserted into the document. This is called during document parsing, and also when a node is added through the DOM methods insertBefore(), appendChild() or replaceChild(). Note that this only happens when the node becomes part of the document tree, i.e. only when the document is actually an ancestor of the node. The call happens _after_ the node has been added to the tree.

This is similar to the DOMNodeInsertedIntoDocument DOM event, but does not require the overhead of event dispatching.

virtual void WebCore::Node::insertedIntoTree ( bool   )  [inline, virtual]

Definition at line 476 of file Node.h.

virtual bool WebCore::Node::isAttributeNode (  )  const [inline, virtual]

Definition at line 192 of file Node.h.

bool WebCore::Node::isBlockFlow (  )  const
bool WebCore::Node::isBlockFlowOrBlockTable (  )  const
virtual bool WebCore::Node::isCharacterDataNode (  )  const [inline, virtual]

Definition at line 194 of file Node.h.

virtual bool WebCore::Node::isCommentNode (  )  const [inline, virtual]

Definition at line 193 of file Node.h.

static bool WebCore::Node::isContainer ( ConstructionType   )  [static, private]
bool WebCore::Node::isContainerNode (  )  const [inline]

Definition at line 165 of file Node.h.

References m_isContainer.

virtual bool WebCore::Node::isContentEditable (  )  const [virtual]
virtual bool WebCore::Node::isContentRichlyEditable (  )  const [virtual]
bool WebCore::Node::isDefaultNamespace ( const AtomicString &  namespaceURI  )  const
bool WebCore::Node::isDescendantOf ( const Node  )  const
bool WebCore::Node::isDocumentNode (  )  const
bool WebCore::Node::isEditableBlock (  )  const
static bool WebCore::Node::isElement ( ConstructionType   )  [static, private]
bool WebCore::Node::isElementNode (  )  const [inline]

Definition at line 164 of file Node.h.

References m_isElement.

bool WebCore::Node::isEqualNode ( Node  )  const
virtual bool WebCore::Node::isFocusable (  )  const [virtual]
virtual bool WebCore::Node::isFrameOwnerElement (  )  const [inline, virtual]

Definition at line 191 of file Node.h.

virtual bool WebCore::Node::isHTMLElement (  )  const [inline, virtual]

Definition at line 168 of file Node.h.

bool WebCore::Node::isInShadowTree (  ) 
virtual bool WebCore::Node::isKeyboardFocusable ( KeyboardEvent *   )  const [virtual]
bool WebCore::Node::isLink (  )  const [inline]

Definition at line 282 of file Node.h.

References m_isLink.

static bool WebCore::Node::isMathMLElement (  )  [inline, static]

Definition at line 185 of file Node.h.

virtual bool WebCore::Node::isMediaControlElement (  )  const [inline, virtual]

Definition at line 189 of file Node.h.

virtual bool WebCore::Node::isMouseFocusable (  )  const [virtual]
bool WebCore::Node::isReadOnlyNode (  )  const [inline]

Definition at line 339 of file Node.h.

References ENTITY_REFERENCE_NODE, and nodeType().

Here is the call graph for this function:

bool WebCore::Node::isSameNode ( Node other  )  const [inline]

Definition at line 149 of file Node.h.

virtual bool WebCore::Node::isShadowNode (  )  const [inline, virtual]

Definition at line 196 of file Node.h.

virtual bool WebCore::Node::isStyledElement (  )  const [inline, virtual]

Definition at line 190 of file Node.h.

static bool WebCore::Node::isSupported ( const String &  feature,
const String &  version 
) [static]
static bool WebCore::Node::isSVGElement (  )  [inline, static]

Definition at line 173 of file Node.h.

static bool WebCore::Node::isText ( ConstructionType   )  [static, private]
bool WebCore::Node::isTextNode (  )  const [inline]

Definition at line 166 of file Node.h.

References m_isText.

static bool WebCore::Node::isWMLElement (  )  [inline, static]

Definition at line 179 of file Node.h.

Node* WebCore::Node::lastChild (  )  const [inline]

Definition at line 124 of file Node.h.

References containerLastChild(), and isContainerNode().

Here is the call graph for this function:

Node* WebCore::Node::lastDescendant (  )  const
void WebCore::Node::lazyAttach (  ) 
const AtomicString& WebCore::Node::localName (  )  const [inline]

Definition at line 143 of file Node.h.

References virtualLocalName().

Here is the call graph for this function:

String WebCore::Node::lookupNamespacePrefix ( const AtomicString &  namespaceURI,
const Element *  originalElement 
) const
String WebCore::Node::lookupNamespaceURI ( const String &  prefix  )  const
String WebCore::Node::lookupPrefix ( const AtomicString &  namespaceURI  )  const
virtual int WebCore::Node::maxCharacterOffset (  )  const [virtual]
const AtomicString& WebCore::Node::namespaceURI (  )  const [inline]

Definition at line 144 of file Node.h.

References virtualNamespaceURI().

Here is the call graph for this function:

bool WebCore::Node::needsStyleRecalc (  )  const [inline]

Definition at line 279 of file Node.h.

References m_styleChange, and WebCore::NoStyleChange.

Node* WebCore::Node::nextEditable (  )  const
Node* WebCore::Node::nextLeafNode (  )  const

(Not part of the official DOM) Returns the next leaf node.

Using this function delivers leaf nodes as if the whole DOM tree were a linear chain of its leaf nodes.

Returns:
next leaf node or 0 if there are no more.
Node* WebCore::Node::nextNodeConsideringAtomicNodes (  )  const
RenderObject* WebCore::Node::nextRenderer (  ) 
Node* WebCore::Node::nextSibling (  )  const [inline]

Definition at line 121 of file Node.h.

References m_next.

unsigned WebCore::Node::nodeIndex (  )  const
virtual String WebCore::Node::nodeName (  )  const [pure virtual]
virtual NodeType WebCore::Node::nodeType (  )  const [pure virtual]
virtual String WebCore::Node::nodeValue (  )  const [virtual]
virtual RenderStyle* WebCore::Node::nonRendererRenderStyle (  )  const [private, virtual]
void WebCore::Node::normalize (  ) 
void WebCore::Node::notifyLocalNodeListsAttributeChanged (  ) 
void WebCore::Node::notifyLocalNodeListsChildrenChanged (  ) 
void WebCore::Node::notifyNodeListsAttributeChanged (  ) 
void WebCore::Node::notifyNodeListsChildrenChanged (  ) 
virtual bool WebCore::Node::offsetInCharacters (  )  const [virtual]
virtual Document* WebCore::Node::ownerDocument (  )  const [virtual]
Element* WebCore::Node::parentElement (  )  const
Node* WebCore::Node::parentNode (  )  const [inline]

Definition at line 118 of file Node.h.

virtual void WebCore::Node::postDispatchEventHandler ( Event ,
void *   
) [inline, virtual]

Definition at line 520 of file Node.h.

virtual void* WebCore::Node::preDispatchEventHandler ( Event  )  [inline, virtual]

Definition at line 519 of file Node.h.

const AtomicString& WebCore::Node::prefix (  )  const [inline]

Definition at line 145 of file Node.h.

References virtualPrefix().

Here is the call graph for this function:

Node* WebCore::Node::previousEditable (  )  const

Finds previous or next editable leaf node.

Node* WebCore::Node::previousLeafNode (  )  const

(Not part of the official DOM) Returns the previous leaf node.

Using this function delivers leaf nodes as if the whole DOM tree were a linear chain of its leaf nodes.

Returns:
previous leaf node or 0 if there are no more.
Node* WebCore::Node::previousNodeConsideringAtomicNodes (  )  const
RenderObject* WebCore::Node::previousRenderer (  ) 
Node* WebCore::Node::previousSibling (  )  const [inline]

Definition at line 120 of file Node.h.

References m_previous.

PassRefPtr<Element> WebCore::Node::querySelector ( const String &  selectors,
ExceptionCode  
)
PassRefPtr<NodeList> WebCore::Node::querySelectorAll ( const String &  selectors,
ExceptionCode  
)
NodeRareData* WebCore::Node::rareData (  )  const [protected]
bool WebCore::Node::rareDataFocused (  )  const [private]
virtual void WebCore::Node::recalcStyle ( StyleChange  = NoChange  )  [inline, virtual]

Definition at line 313 of file Node.h.

virtual void WebCore::Node::refEventTarget (  )  [inline, private, virtual]

Definition at line 587 of file Node.h.

void WebCore::Node::registerDynamicNodeList ( DynamicNodeList *   ) 
void WebCore::Node::remove ( ExceptionCode  ) 
void WebCore::Node::removeAllEventListenersSlowCase (  )  [private]
virtual bool WebCore::Node::removeChild ( Node child,
ExceptionCode  
) [virtual]
virtual void WebCore::Node::removedFromDocument (  )  [virtual]

Notifies the node that it is no longer part of the document tree, i.e. when the document is no longer an ancestor node.

This is similar to the DOMNodeRemovedFromDocument DOM event, but does not require the overhead of event dispatching, and is called _after_ the node is removed from the tree.

virtual void WebCore::Node::removedFromTree ( bool   )  [inline, virtual]

Definition at line 477 of file Node.h.

virtual bool WebCore::Node::removeEventListener ( const AtomicString &  eventType,
EventListener *  ,
bool  useCapture 
) [virtual]
RenderBox* WebCore::Node::renderBox (  )  const
RenderBoxModelObject* WebCore::Node::renderBoxModelObject (  )  const
RenderObject* WebCore::Node::renderer (  )  const [inline]

Definition at line 380 of file Node.h.

References m_renderer.

virtual bool WebCore::Node::rendererIsNeeded ( RenderStyle *   )  [virtual]
RenderStyle* WebCore::Node::renderStyle (  )  const
virtual bool WebCore::Node::replaceChild ( PassRefPtr< Node newChild,
Node oldChild,
ExceptionCode ,
bool  shouldLazyAttach = false 
) [virtual]
Element* WebCore::Node::rootEditableElement (  )  const
virtual ScriptExecutionContext* WebCore::Node::scriptExecutionContext (  )  const [virtual]
virtual void WebCore::Node::selectAll (  )  [inline, virtual]

Definition at line 410 of file Node.h.

virtual void WebCore::Node::setActive ( bool  b = true,
bool  = false 
) [inline, virtual]

Definition at line 295 of file Node.h.

References m_active.

void WebCore::Node::setAttached ( bool  b = true  )  [inline]

Definition at line 278 of file Node.h.

References m_attached.

void WebCore::Node::setChildNeedsStyleRecalc ( bool  b = true  )  [inline]

Definition at line 285 of file Node.h.

References m_childNeedsStyleRecalc.

void WebCore::Node::setDocument ( Document *   ) 
virtual void WebCore::Node::setFocus ( bool  b = true  )  [virtual]
void WebCore::Node::setHasClass ( bool  b = true  )  [inline]

Definition at line 284 of file Node.h.

References m_hasClass.

void WebCore::Node::setHasID ( bool  b = true  )  [inline]

Definition at line 283 of file Node.h.

References m_hasId.

virtual void WebCore::Node::setHovered ( bool  b = true  )  [inline, virtual]

Definition at line 296 of file Node.h.

References m_hovered.

void WebCore::Node::setInActiveChain ( bool  b = true  )  [inline]

Definition at line 287 of file Node.h.

References m_inActiveChain.

void WebCore::Node::setInDocument ( bool  b = true  )  [inline]

Definition at line 286 of file Node.h.

References m_inDocument.

void WebCore::Node::setIsLink ( bool  b = true  )  [inline]

Definition at line 289 of file Node.h.

References m_isLink.

void WebCore::Node::setNeedsStyleRecalc ( StyleChangeType  changeType = FullStyleChange  ) 
void WebCore::Node::setNextSibling ( Node next  )  [inline]

Definition at line 216 of file Node.h.

References m_next.

virtual void WebCore::Node::setNodeValue ( const String &  ,
ExceptionCode  
) [virtual]
virtual void WebCore::Node::setPrefix ( const AtomicString &  ,
ExceptionCode  
) [virtual]
void WebCore::Node::setPreviousSibling ( Node previous  )  [inline]

Definition at line 215 of file Node.h.

References m_previous.

void WebCore::Node::setRenderer ( RenderObject *  renderer  )  [inline]

Definition at line 383 of file Node.h.

References m_renderer.

virtual void WebCore::Node::setRenderStyle ( PassRefPtr< RenderStyle >   )  [virtual]
void WebCore::Node::setTabIndexExplicitly ( short   )  [protected]
void WebCore::Node::setTextContent ( const String &  ,
ExceptionCode  
)
Node* WebCore::Node::shadowAncestorNode (  ) 
virtual Node* WebCore::Node::shadowParentNode (  )  [inline, virtual]

Definition at line 197 of file Node.h.

Node* WebCore::Node::shadowTreeRootNode (  ) 
virtual bool WebCore::Node::sheetLoaded (  )  [inline, virtual]

Definition at line 268 of file Node.h.

virtual bool WebCore::Node::shouldUseInputMethod (  )  const [virtual]
void WebCore::Node::showNode ( const char *  prefix = ""  )  const
void WebCore::Node::showTreeAndMark ( const Node markedNode1,
const char *  markedLabel1,
const Node markedNode2 = 0,
const char *  markedLabel2 = 0 
) const
void WebCore::Node::showTreeForThis (  )  const
static void WebCore::Node::startIgnoringLeaks (  )  [static]
static void WebCore::Node::stopIgnoringLeaks (  )  [static]
StyleChangeType WebCore::Node::styleChangeType (  )  const [inline]

Definition at line 280 of file Node.h.

References m_styleChange.

PassRefPtr<RenderStyle> WebCore::Node::styleForRenderer (  ) 
virtual bool WebCore::Node::supportsFocus (  )  const [virtual]
virtual short WebCore::Node::tabIndex (  )  const [virtual]
String WebCore::Node::textContent ( bool  convertBRsToNewlines = false  )  const
virtual Node* WebCore::Node::toNode (  )  [inline, virtual]

Definition at line 510 of file Node.h.

Node* WebCore::Node::traverseNextNode ( const Node stayWithin = 0  )  const

Does a pre-order traversal of the tree to find the node next node after this one. This uses the same order that the tags appear in the source file.

Parameters:
stayWithin If not null, the traversal will stop once the specified node is reached. This can be used to restrict traversal to a particular sub-tree.
Returns:
The next node, in document order

see traversePreviousNode()

Node* WebCore::Node::traverseNextNodePostOrder (  )  const
Node* WebCore::Node::traverseNextSibling ( const Node stayWithin = 0  )  const
Node* WebCore::Node::traversePreviousNode ( const Node stayWithin = 0  )  const

Does a reverse pre-order traversal to find the node that comes before the current one in document order

see traverseNextNode()

Node* WebCore::Node::traversePreviousNodePostOrder ( const Node stayWithin = 0  )  const
Node* WebCore::Node::traversePreviousSiblingPostOrder ( const Node stayWithin = 0  )  const
void WebCore::Node::unregisterDynamicNodeList ( DynamicNodeList *   ) 
virtual const AtomicString& WebCore::Node::virtualLocalName (  )  const [private, virtual]
virtual const AtomicString& WebCore::Node::virtualNamespaceURI (  )  const [private, virtual]
virtual const AtomicString& WebCore::Node::virtualPrefix (  )  const [private, virtual]
virtual void WebCore::Node::willMoveToNewOwnerDocument (  )  [protected, virtual]
virtual void WebCore::Node::willRemove (  )  [virtual]

Friends And Related Function Documentation

friend class Document [friend]

Definition at line 81 of file Node.h.


Member Data Documentation

bool WebCore::Node::m_active [private]

Definition at line 621 of file Node.h.

bool WebCore::Node::m_attached [private]

Definition at line 617 of file Node.h.

Definition at line 618 of file Node.h.

Document* WebCore::Node::m_document [private]

Definition at line 609 of file Node.h.

bool WebCore::Node::m_hasClass [private]

Definition at line 616 of file Node.h.

bool WebCore::Node::m_hasId [private]

Definition at line 615 of file Node.h.

Definition at line 625 of file Node.h.

bool WebCore::Node::m_hovered [private]

Definition at line 622 of file Node.h.

Definition at line 623 of file Node.h.

bool WebCore::Node::m_inDetach [private]

Definition at line 624 of file Node.h.

Definition at line 619 of file Node.h.

const bool WebCore::Node::m_isContainer [private]

Definition at line 627 of file Node.h.

const bool WebCore::Node::m_isElement [private]

Definition at line 626 of file Node.h.

bool WebCore::Node::m_isLink [private]

Definition at line 620 of file Node.h.

bool WebCore::Node::m_isStyleAttributeValid [mutable, protected]

Definition at line 635 of file Node.h.

const bool WebCore::Node::m_isText [private]

Definition at line 628 of file Node.h.

Definition at line 611 of file Node.h.

Definition at line 634 of file Node.h.

Definition at line 610 of file Node.h.

RenderObject* WebCore::Node::m_renderer [private]

Definition at line 612 of file Node.h.

unsigned WebCore::Node::m_styleChange [private]

Definition at line 614 of file Node.h.

Definition at line 636 of file Node.h.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208