Re: [geometry] DOMRectList with legacy

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.

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 18:08:59 UTC