This fixes a few glitches. We no longer give the page double the width it should have, and we mark the correct area of the page as needing repainting.
This will allow for implementing the screenshot action closer to the spec, as we can now use HTMLCanvasElement to encode the bitmap, and capture the screenshot on the animation frame loop.