DescriptionAdd counters for add/removeEventListener() called with one argument
This was attempted previously but only worked for no arguments:
https://codereview.chromium.org/815503002
https://codereview.chromium.org/928103002
The enum values are added in their original positions in UseCounter.h,
as they were always unreachable and thus not polluted by anything else.
The reason was that there is no generated impl-> call with one
argument, as EventListener has special handling in the bindings
generator such that it's effectively treated as having a default null
argument.
Give all the arguments default values in the IDL so that there is only
one impl-> call in the generated code, with the prologue and epilogue
immediately before and after it. This makes it more clear that the
prologue will always be called, and makes this purely a bindings bug.
The removed FIXMEs in EventTarget.cpp were wrong, it should be
possible to pass null for the listener argument and per spec that
should do nothing.
Rather than extending support for [Conditional] here, remove it for
[Custom=CallEpilogue] as it's actually never used there, nor tested.
BUG=353484
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198681
Patch Set 1 #
Total comments: 2
Patch Set 2 : Count in CallPrologue instead #
Total comments: 6
Patch Set 3 : No [Conditional] support #Messages
Total messages: 22 (6 generated)
|