aFrameList->GetNextSibling(&aFrameList);
MoveChildrenTo(nsIPresContext*  aPresContext,               nsIStyleContext* aNewParentSC,               nsIFrame*        aNewParent,               nsIFrame*        aFrameList){  PRBool setHasChildWithView = PR_FALSE;  while (aFrameList) {    if (! setHasChildWithView) {      nsFrameState state;      aFrameList->GetFrameState(&state);      if (state & (NS_FRAME_HAS_VIEW | NS_FRAME_HAS_CHILD_WITH_VIEW))        setHasChildWithView = PR_TRUE;    }    aFrameList->SetParent(aNewParent);    aFrameList->GetNextSibling(&aFrameList);#if 0    // XXX In the cases where this is used (specifically, {ib} frame    // mangling), it seems fine to leave the style contexts of the    // children of the anonymous block frame parented by the original    // inline frame. (In fact, one would expect some inheritance    // relationships to be broken if we reparented them to the    // anonymous block frame, but oddly they aren't -- need to    // investigate that...)    if (aNewParentSC)      aPresContext->ReParentStyleContext(aFrameList, aNewParentSC);#endif  }  if (setHasChildWithView) {    nsFrameState state;    aNewParent->GetFrameState(&state);    state |= NS_FRAME_HAS_CHILD_WITH_VIEW;    aNewParent->SetFrameState(state);  }}