Logo Search packages:      
Sourcecode: xulrunner version File versions

PRBool nsContentList::ContainsRoot ( nsIContent aContent  )  [protected]

Does this subtree contain our mRootContent?

Parameters:
aContainer the root of the subtree
Returns:
PR_FALSE if mRootContent is null, otherwise whether mRootContent is a descendant of aContainer

Definition at line 908 of file nsContentList.cpp.

{
  if (!mRootContent || !aContent) {
    return PR_FALSE;
  }

  return nsContentUtils::ContentIsDescendantOf(mRootContent, aContent);
}


Generated by  Doxygen 1.6.0   Back to index