Don't instantiate unneeded gfx::IntSize
[viewport] Don't recalculate viewport until before-first-paint is emitted