Image() constructor's arguments should not have default values

Implementing them with [Default=Undefined] is equivalent to implementing
them with zero as the default value, which is semi-correct; the created
element's 'width' and 'height' IDL attributes should be zero.

However, per spec, calling Image() without the arguments should create
an element without the 'width' and 'height' content attributes, whereas
calling Image() with the arguments should create an element with the
content attributes, including if the argument values were zero. Thus we
need to distinguish between no argument and argument being zero.

BUG=253777

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187973 bbb929c8-8fbe-4397-9dbb-9b2b20218538
5 files changed
tree: cf6ce1fe1471b11b69e5c4fb41019417fb7b7a37
  1. third_party/