use reparent style context

git-svn-id: svn://10.0.0.236/trunk@45967 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com 1999-09-03 23:37:37 +00:00
parent 94339ec788
commit 47f2dadc5e
2 changed files with 2 additions and 6 deletions

View File

@ -7892,9 +7892,7 @@ ReparentFrame(nsIPresContext* aPresContext,
nsIStyleContext* aParentStyleContext,
nsIFrame* aFrame)
{
aFrame->ReResolveStyleContext(aPresContext, aParentStyleContext,
NS_STYLE_HINT_REFLOW,
nsnull, nsnull);
aPresContext->ReParentStyleContext(aFrame, aParentStyleContext);
aFrame->SetParent(aNewParentFrame);
}

View File

@ -7892,9 +7892,7 @@ ReparentFrame(nsIPresContext* aPresContext,
nsIStyleContext* aParentStyleContext,
nsIFrame* aFrame)
{
aFrame->ReResolveStyleContext(aPresContext, aParentStyleContext,
NS_STYLE_HINT_REFLOW,
nsnull, nsnull);
aPresContext->ReParentStyleContext(aFrame, aParentStyleContext);
aFrame->SetParent(aNewParentFrame);
}