added reparent style context
git-svn-id: svn://10.0.0.236/trunk@45965 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4308,10 +4308,8 @@ nsBlockFrame::FixParentAndView(nsIPresContext* aPresContext, nsIFrame* aFrame)
|
||||
aFrame->SetParent(this);
|
||||
if (this != oldParent) {
|
||||
nsHTMLContainerFrame::ReparentFrameView(aFrame, oldParent, this);
|
||||
aPresContext->ReParentStyleContext(aFrame, mStyleContext);
|
||||
}
|
||||
aFrame->ReResolveStyleContext(aPresContext, mStyleContext,
|
||||
NS_STYLE_HINT_REFLOW,
|
||||
nsnull, nsnull);
|
||||
aFrame->GetNextSibling(&aFrame);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user