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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user