mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 797797: Get the new device offset after pushing the new DT. r=roc
This commit is contained in:
parent
3f6cca789a
commit
e56c9a0c28
@ -1528,8 +1528,9 @@ gfxContext::PushGroupAndCopyBackground(gfxASurface::gfxContentType content)
|
||||
RefPtr<SourceSurface> source = mDT->Snapshot();
|
||||
Point oldDeviceOffset = CurrentState().deviceOffset;
|
||||
|
||||
Point offset = CurrentState().deviceOffset - oldDeviceOffset;
|
||||
PushNewDT(gfxASurface::CONTENT_COLOR);
|
||||
|
||||
Point offset = CurrentState().deviceOffset - oldDeviceOffset;
|
||||
Rect surfRect(0, 0, Float(mDT->GetSize().width), Float(mDT->GetSize().height));
|
||||
Rect sourceRect = surfRect;
|
||||
sourceRect.x += offset.x;
|
||||
|
Loading…
Reference in New Issue
Block a user