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