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