child->GetNextSibling(child);
break; } else {   nsIFrame* child; parent->FirstChild(child); while ((nsnull != child) && (aFrame != child)) { nsSize  size;   child->GetSize(size); if (size.width > 0) {  return PR_FALSE; } child->GetNextSibling(child); }
PRBool nsBlockFrame::IsLeftMostChild(nsIFrame* aFrame){  do {    nsIFrame* parent;         aFrame->GetGeometricParent(parent);      // See if there are any non-zero sized child frames that precede aFrame    // in the child list    nsIFrame* child;         parent->FirstChild(child);    while ((nsnull != child) && (aFrame != child)) {      nsSize  size;      // Is the child zero-sized?      child->GetSize(size);      if ((size.width > 0) || (size.height > 0)) {        // We found a non-zero sized child frame that precedes aFrame        return PR_FALSE;      }        child->GetNextSibling(child);    }      // aFrame is the left-most non-zero sized frame in its geometric parent.    // Walk up one level and check that its parent is left-most as well    aFrame = parent;  } while (aFrame != this);  return PR_TRUE;}