Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

virtual PRBool nsIContent::IsContentOfType ( PRUint32  aFlags  )  const [pure virtual, inherited]

API for doing a quick check if a content object 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, eTEXT, eELEMENT, eHTML, eHTML_FORM_CONTROL, eXUL)
Returns:
whether the content matches ALL flags passed in

Implemented in nsGenericElement, nsTextNode, nsGenericHTMLElement, and nsGenericHTMLFormElement.

Referenced by nsGenericElement::BindToTree(), nsGenericHTMLElement::FindForm(), nsGenericHTMLElement::FromContent(), nsGenericElement::GetContentsAsText(), nsIFrame::GetExtremeCaretPosition(), nsFormControlHelper::GetName(), nsFormControlHelper::GetValueAttr(), nsFormControlHelper::GetWrapProperty(), nsIFrame::IsFocusable(), and nsContentList::Match().


Generated by  Doxygen 1.6.0   Back to index