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.

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

Implemented in nsGenericElement, nsTextNode, nsGenericHTMLElement, and nsGenericHTMLFormElement.

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


Generated by  Doxygen 1.6.0   Back to index