WebLocalFrameImpl::printPage needs to ensure layout, style, and compositing are up-to-date

Previously, we could try to paint without having our painting state up-to-date.
The codepath for printing multiple pages updatesLayoutAndStyleForPainting. This
CL makes the code path for printing single pages do the same.

R=adamk@chromium.org

Review URL: https://codereview.chromium.org/471623003

git-svn-id: svn://svn.chromium.org/blink/trunk@180200 bbb929c8-8fbe-4397-9dbb-9b2b20218538