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:
parent
48ae067e25
commit
309a941fea
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user