The size of the viewport rectangle needs to be in the device-independent pixels; otherwise there will be visual artifacts when panning a zoomed in translucent image.
BUG: 417342 BUG: 428397 BUG: 414776