diff --git a/gfx/thebes/PrintTarget.cpp b/gfx/thebes/PrintTarget.cpp index 68e9c9fbc0a2..f404c38a7ce6 100644 --- a/gfx/thebes/PrintTarget.cpp +++ b/gfx/thebes/PrintTarget.cpp @@ -172,7 +172,8 @@ already_AddRefed PrintTarget::CreateWrapAndRecordDrawTarget( if (aRecorder) { // It doesn't really matter what we pass as the DrawTarget here. - dt = gfx::Factory::CreateWrapAndRecordDrawTarget(aRecorder, aDrawTarget); + dt = gfx::Factory::CreateRecordingDrawTarget(aRecorder, aDrawTarget, + aDrawTarget->GetRect()); } if (!dt || !dt->IsValid()) { diff --git a/gfx/thebes/PrintTargetRecording.cpp b/gfx/thebes/PrintTargetRecording.cpp index b3e017c2392e..98f995f4e331 100644 --- a/gfx/thebes/PrintTargetRecording.cpp +++ b/gfx/thebes/PrintTargetRecording.cpp @@ -95,7 +95,8 @@ PrintTargetRecording::CreateWrapAndRecordDrawTarget( if (aRecorder) { // It doesn't really matter what we pass as the DrawTarget here. - dt = gfx::Factory::CreateWrapAndRecordDrawTarget(aRecorder, aDrawTarget); + dt = gfx::Factory::CreateRecordingDrawTarget(aRecorder, aDrawTarget, + aDrawTarget->GetRect()); } if (!dt || !dt->IsValid()) {