Bug 379922: Canvas frame's invalidation no longer correct. r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@230382 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sharparrow1%yahoo.com 2007-07-20 20:14:43 +00:00
parent 48ae067e25
commit 309a941fea

View File

@ -592,7 +592,8 @@ CanvasFrame::Reflow(nsPresContext* aPresContext,
// (0, 0). We only want to invalidate GetRect() since GetOverflowRect()
// could also include overflow to our top and left (out of the viewport)
// which doesn't need to be painted.
Invalidate(GetRect(), PR_FALSE);
nsIFrame* viewport = PresContext()->GetPresShell()->GetRootFrame();
viewport->Invalidate(nsRect(nsPoint(0, 0), viewport->GetSize()));
}
// Return our desired size (which doesn't matter)