Fix distorted image issue when open some images in a new browser window

This patch tries to fix a distorted image issue when opening certain
images in a new browser window. The root cause is because the image
size is needed before the image element's renderer (which contains the
information that determines whether the image's orientation will affect
the width and height) gets created.

Fix the issue by calling Document::updateStyleIfNeeded() to create the
image element's renderer before retrieving the image size.

BUG=320244
R=abarth@chromium.org
TEST=fast/images/exif-orientation-height-image-document.html

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

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