Pass a viewport to the rendering code

Part of servo/rust-layers#114