Ignore mLegendFrame as previous sibling since it does not live in the content area frame. b=345249 r+sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@203225 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mats.palmgren%bredband.net
2006-07-20 04:54:51 +00:00
parent af5f6eab28
commit bf19436661

View File

@@ -632,6 +632,9 @@ nsFieldSetFrame::InsertFrames(nsIAtom* aListName,
aFrameList = MaybeSetLegend(aFrameList, aListName);
if (aFrameList) {
ReParentFrameList(aFrameList);
if (NS_UNLIKELY(aPrevFrame == mLegendFrame)) {
aPrevFrame = nsnull;
}
return mContentFrame->InsertFrames(aListName, aPrevFrame, aFrameList);
}
return NS_OK;