Re: [geometry] DOMRectList with legacy

On Thu, Jul 17, 2014 at 11:08 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 7/17/14, 1:55 PM, Rik Cabanier wrote:
>
>> WebKit does not implement [ArrayClass] so it would be more than 1 line
>> for them.
>>
>
> Looks to me like Source/WebCore/bindings/scripts/CodeGeneratorJS.pm, in
> the GenerateImplementation function, if you search for
>
>         if ($hasParent && $parentClassName ne "JSC::DOMNodeFilter") {
>
> in the else clause of that conditional it does:
>
>             my $prototype = $interface->isException ? "errorPrototype" :
> "objectPrototype";
>
> Looking at Source/JavaScriptCore/runtime/JSGlobalObject.h, there's an
> arrayPrototype() accessor there as well.  So modifying that "my $prototype"
> line to also check whether $interface is flagged as [ArrayClass] and if so
> using the arrayPrototype accessor should, I suspect, be fairly
> straightforward.  I can't tell you how much work it would be to expose
> whether $interface is thus flagged, of course.
>

I'm sure WebKit and Blink would welcome your patch :-)

Maybe we can get someone from the other browsers to chime in how much work
this would be.


> And again, this needs to be done for MediaList anyway, so it's not like it
> would be wasted effort.
>
> -Boris
>

Received on Thursday, 17 July 2014 20:45:18 UTC