mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
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:
parent
5d246173ba
commit
6cbace6149
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user