Bug 656130 - Part 1: Make sure that the absolute containing frame to be returned is actually marked as such in the frame tree; r=bzbarsky

This commit is contained in:
Ehsan Akhgari
2011-05-11 19:53:34 -04:00
parent de3e3fd8ee
commit d406d037ea
24 changed files with 304 additions and 78 deletions

View File

@@ -88,6 +88,7 @@ void
nsHTMLButtonControlFrame::DestroyFrom(nsIFrame* aDestructRoot)
{
nsFormControlFrame::RegUnRegAccessKey(static_cast<nsIFrame*>(this), PR_FALSE);
DestroyAbsoluteFrames(aDestructRoot);
nsHTMLContainerFrame::DestroyFrom(aDestructRoot);
}
@@ -281,7 +282,7 @@ nsHTMLButtonControlFrame::Reflow(nsPresContext* aPresContext,
aDesiredSize.SetOverflowAreasToDesiredBounds();
ConsiderChildOverflow(aDesiredSize.mOverflowAreas, firstKid);
FinishAndStoreOverflow(&aDesiredSize);
FinishReflowWithAbsoluteFrames(aPresContext, aDesiredSize, aReflowState, aStatus);
aStatus = NS_FRAME_COMPLETE;