W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2014

Re: [geometry] DOMRectList with legacy

From: Rik Cabanier <cabanier@gmail.com>
Date: Thu, 17 Jul 2014 13:44:49 -0700
Message-ID: <CAGN7qDCL6zpzPhSNbeDsY6nMPWNFZ_eoRx2gvnQcWyNx3h_EzA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Domenic Denicola <domenic@domenicdenicola.com>, Anne van Kesteren <annevk@annevk.nl>, Dirk Schulze <dschulze@adobe.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, FX <public-fx@w3.org>
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:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC