Clipping wasn't being set correctly in the PageContentFrame when the reflow was smaller than a page

Bug 122434  r=dcone sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@113310 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
2002-01-31 14:24:06 +00:00
parent 172a122344
commit e7492a75bb
8 changed files with 66 additions and 6 deletions

View File

@@ -257,6 +257,16 @@ NS_IMETHODIMP nsPageFrame::Reflow(nsIPresContext* aPresContext,
return NS_OK;
}
void nsPageFrame::SetClipRect(nsRect* aClipRect)
{
mClipRect = *aClipRect;
nsIFrame* firstFrame = mFrames.FirstChild();
nsPageContentFrame* contentPage = NS_STATIC_CAST(nsPageContentFrame*, firstFrame);
NS_ASSERTION(contentPage, "There should always be a content page");
contentPage->SetClipRect(aClipRect);
}
NS_IMETHODIMP
nsPageFrame::GetFrameType(nsIAtom** aType) const
{