Clarify when ReParentStyleContext should be called and remove more bogus style

parentage warnings.  Bug 217225, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@149235 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2003-11-13 04:31:04 +00:00
parent efdc7bfac3
commit 0b45220a8c
12 changed files with 30 additions and 28 deletions

View File

@@ -993,8 +993,8 @@ nsFirstLineFrame::Reflow(nsIPresContext* aPresContext,
if (prevOverflowFrames) {
nsFrameList frames(prevOverflowFrames);
ReParentChildListStyle(aPresContext, mStyleContext, frames);
mFrames.InsertFrames(this, nsnull, prevOverflowFrames);
ReParentChildListStyle(aPresContext, mStyleContext, frames);
}
}
@@ -1004,8 +1004,8 @@ nsFirstLineFrame::Reflow(nsIPresContext* aPresContext,
NS_ASSERTION(mFrames.NotEmpty(), "overflow list w/o frames");
nsFrameList frames(overflowFrames);
ReParentChildListStyle(aPresContext, mStyleContext, frames);
mFrames.AppendFrames(nsnull, overflowFrames);
ReParentChildListStyle(aPresContext, mStyleContext, frames);
}
// Set our own reflow state (additional state above and beyond