HTMLImageElement intrinsicSize attribute override intrinsic aspect ratio for responsive images

The CL https://chromium.googlesource.com/chromium/src/+/bd4c33b5e81d495ecdac66b0375924d9565330cb
did not handle responsive images correctly. This CL resets
overridden_intrinsic_size_:
When source is chosen using W descriptor, 'sizes' sets the new width
of the overridden_intrinsic_size_, and the new height is calculated
by the aspect ratio defined by the intrinsicSize attribute.

Bug: 874629
Change-Id: I16b2f6c2fb9ae741144ba509c57f1e033c8cdc17
Reviewed-on: https://chromium-review.googlesource.com/1195801
Commit-Queue: Luna Lu <loonybear@chromium.org>
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#587774}
3 files changed