Bug 923542 - Draw to the correct destination rect when computing alpha masks. r=ajones

This commit is contained in:
Matt Woodrow 2013-10-15 14:55:15 +13:00
parent bef0b990ad
commit 7f649f59e5

View File

@ -2267,7 +2267,7 @@ nsWindow::UpdateAlpha(gfxPattern* aPattern, nsIntRect aBoundsRect)
stride, FORMAT_A8);
if (drawTarget) {
drawTarget->FillRect(ToRect(aBoundsRect),
drawTarget->FillRect(Rect(0, 0, aBoundsRect.width, aBoundsRect.height),
*aPattern->GetPattern(drawTarget),
DrawOptions(1.0, OP_SOURCE));
}