Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

virtual PRBool nsINode::IsNodeOfType ( PRUint32  aFlags  )  const [pure virtual]

API for doing a quick check if a content is of a given type, such as HTML, XUL, Text, ... Use this when you can instead of checking the tag.

aFlags what types you want to test for (see above)
whether the content matches ALL flags passed in

Implemented in nsGenericElement, nsTextNode, nsGenericHTMLElement, and nsGenericHTMLFormElement.

Referenced by nsNode3Tearoff::AreNodesEqual(), nsXULContentBuilder::BuildContentFromTemplate(), nsGenericHTMLElement::FromContent(), nsFrameSelection::GetFrameForNodeOffset(), nsObjectLoadingContent::GetPluginSupportState(), nsHTMLOptGroupElement::GetSelect(), nsHTMLOptionElement::GetSelect(), GetSelectionRootContent(), nsIFrame::IsFocusable(), nsContentList::Match(), and nsListControlFrame::PaintFocus().

Generated by  Doxygen 1.6.0   Back to index