Fix crash bug 322348 by making ReParentStyleContext more sane. r+sr=dbaron, a=dveditz

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@194751 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-04-20 02:48:06 +00:00
parent a7c3bec824
commit 2da9e5403d
7 changed files with 112 additions and 97 deletions

View File

@@ -217,7 +217,7 @@ nsHTMLButtonControlFrame::ReParentFrameList(nsFrameManager* aFrameManager,
for (nsIFrame* frame = aFrameList; frame; frame = frame->GetNextSibling()) {
frame->SetParent(mFrames.FirstChild());
// now reparent the contexts for the reparented frame too
aFrameManager->ReParentStyleContext(frame, newParentContext);
aFrameManager->ReParentStyleContext(frame);
}
// Set NS_FRAME_HAS_CHILD_WITH_VIEW on the area frame if needed, bug 276236.