Re: [matrix][cssom-view] DOMPoint, DOMPointLiteral definitions

On 9/24/13 4:22 PM, Rik Cabanier wrote:
> So a function that takes a DOMPointLiteral can be passed a DOMPoint.

That's automatic.  DOMPointLiteral is a structural type.  A function 
taking DOMPointLiteral can be passed any object, including a DOMPoint.

> Dictionary members are always optional.

Sure, possibly with default values.

Though the method implementation could in fact throw if they're not passed.

> So, it's Ok for DOMPointLiteral to not contain members

OK from the point of view of IDL.  The callee can refuse such literals.

-Boris

Received on Tuesday, 24 September 2013 20:25:07 UTC