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

PRBool nsIContent::IsInNativeAnonymousSubtree (  )  const [inline, inherited]

Returns PR_TRUE if |this| or any of its ancestors is native anonymous.

Definition at line 172 of file nsIContent.h.

References nsIContent::GetBindingParent(), nsINode::HasFlag(), and nsIContent::IsNativeAnonymous().

Referenced by nsGenericElement::BindToTree().

  {
#ifdef DEBUG
    if (HasFlag(NODE_IS_IN_ANONYMOUS_SUBTREE)) {
      return PR_TRUE;
    }
    nsIContent* content = GetBindingParent();
    while (content) {
      if (content->IsNativeAnonymous()) {
        NS_ERROR("Element not marked to be in native anonymous subtree!");
        break;
      }
      content = content->GetBindingParent();
    }
    return PR_FALSE;
#else
    return HasFlag(NODE_IS_IN_ANONYMOUS_SUBTREE);
#endif
  }


Generated by  Doxygen 1.6.0   Back to index