Bug 1279930 - Stop using gfxContext device offsets on the temporary gfxContext in the GTK code's nsWindow::OnExposeEvent. r=mstange

This commit is contained in:
Jonathan Watt 2016-06-14 07:30:20 +01:00
parent 5d246173ba
commit 6cbace6149

View File

@ -2276,11 +2276,11 @@ nsWindow::OnExposeEvent(cairo_t *cr)
if (!destDT || !destDT->IsValid()) {
return FALSE;
}
ctx = gfxContext::CreateOrNull(destDT, boundsRect.TopLeft());
destDT->SetTransform(Matrix::Translation(-boundsRect.TopLeft()));
ctx = gfxContext::CreatePreservingTransformOrNull(destDT);
} else {
gfxUtils::ClipToRegion(dt, region.ToUnknownRegion());
ctx = gfxContext::CreateOrNull(dt, offset);
ctx = gfxContext::CreatePreservingTransformOrNull(dt);
}
MOZ_ASSERT(ctx); // checked both dt and destDT valid draw target above