Expose MediaQueryList interface and make arguments non-optional

http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface

In Firefox Nightly and IE11, the interface is already exposed and
calling addListener() or removeListener() throws an exception, making
this change likely Web compatible.

The added early returns in the implementation are per spec, but
redudant with similar checks decorated with FIXMEs in EventTarget.
Save some trouble for the time when those are removed.

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

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