According to CSSOM-View, interface HTMLImageElement,
The x attribute must return the x-coordinate.
If style is not updated when x() is called, it can't return anything.
Style and layout should be done before getting value for x() and y().
The patch was originally written by me <je_julie.kim@samsung.com> in wkrev.com/166833 
and the test case was originally written by Alan Stearns<stearns@adobe.com>.

BUG=392094
R=esprehn@chromium.org
TEST=cssom/cssom-view-img-attributes-001.html

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

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