void nsSplitterFrameInner::AdjustChildren(nsPresContext* aPresContext, nsSplitterInfo* aChildInfos, PRInt32 aCount, bool aIsHorizontal) { ///printf("------- AdjustChildren------\n"); nsBoxLayoutState state(aPresContext); nscoord onePixel = nsPresContext::CSSPixelsToAppUnits(1); // first set all the widths. nsIFrame* child = mOuter->GetChildBox(); while(child) { SetPreferredSize(state, child, onePixel, aIsHorizontal, nullptr); child = child->GetNextBox(); } // now set our changed widths. for (int i=0; i < aCount; i++) { nscoord pref = aChildInfos[i].changed; nsIFrame* childBox = GetChildBoxForContent(mParentBox, aChildInfos[i].childElem); if (childBox) { SetPreferredSize(state, childBox, onePixel, aIsHorizontal, &pref); } } }