Support non-function object values assigned to EventHandler attributes

In HTML, the type EventHandler, used for event handler IDL attributes,
is defined

  [TreatNonObjectAsNull]
  callback EventHandlerNonNull = any (Event event);

  typedef EventHandlerNonNull? EventHandler;

Aside from treating non-object values as null, the extended attribute
means non-callable object values should be allowed by the attribute's
setter (and returned by its getter) and should be treated as if they
were no-op functions returning undefined.

BUG=475428

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

git-svn-id: svn://svn.chromium.org/blink/trunk@193516 bbb929c8-8fbe-4397-9dbb-9b2b20218538
4 files changed
tree: 89deb70b3bf91c91fa1087dc1cd0c3b4c4dfe973
  1. third_party/