[webkit-dev] CSSGroupingRule and a bit of refactoring?
Elliott Sprehn
esprehn at chromium.org
Fri Dec 21 12:06:05 PST 2012
On Fri, Dec 21, 2012 at 6:09 AM, Antti Koivisto <koivisto at iki.fi> wrote:
> On Fri, Dec 21, 2012 at 3:33 AM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:
>
>> No, it's just a refactoring on the CSS side, so we don't have to
>> repeat a bunch of stuff every time we have an at-rule that contains
>> other rules. It just makes the WebIDL easier and less error-prone.
>>
>
> It seems bit strange to add a web-exposed type if it is just a spec
> writing helper. Each new type has non-zero cost (code size of generated
> bindings etc).
>
> Internally it obviously makes sense to share code, I'm just wondering why
> we would want to expose this via API.
>
>
It means you can add methods to the prototype across all the types, and you
can override methods across the types per the way they're described in IDL.
It also provides instanceof for type checking in JS.
If we're not going to expose it and be spec compliant then perhaps we
should take that up with the spec as an objection and see if they're
willing to use a NoInterfaceObject instead.
- E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20121221/9be13879/attachment.html>
More information about the webkit-dev
mailing list