nsIStyleContext*         aNewParentSC,
nsStyleContext*          aNewParentSC,
MoveChildrenTo(nsIPresContext*          aPresContext,               nsIStyleContext*         aNewParentSC,               nsIFrame*                aNewParent,               nsIFrame*                aFrameList,               nsFrameConstructorState* aState){  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);    // If aState is not null, the caller expects us to make adjustments    // so that placeholder out of flow frames point to the correct parent.    if (aState)      AdjustOutOfFlowFrameParentPtrs(aPresContext, aFrameList, aState);#if 0    // XXX When this is used with {ib} frame hierarchies, 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    aFrameList->GetNextSibling(&aFrameList);  }  if (setHasChildWithView) {    nsFrameState state;    aNewParent->GetFrameState(&state);    state |= NS_FRAME_HAS_CHILD_WITH_VIEW;    aNewParent->SetFrameState(state);  }}