W3C home > Mailing lists > Public > www-style@w3.org > September 2013

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

From: Dirk Schulze <dschulze@adobe.com>
Date: Tue, 24 Sep 2013 05:52:24 -0700
To: Cameron McCormack <cam@mcc.id.au>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, Simon Fraser <smfr@me.com>, www-style list <www-style@w3.org>
Message-ID: <48177052-6D50-449C-9F8C-7CF2A70564AA@adobe.com>

On Sep 24, 2013, at 1:30 PM, Cameron McCormack <cam@mcc.id.au> wrote:

> Dirk Schulze wrote:
>> How do you specify that without having two transformPoint() definitions, one with a DOMPoint argument and the other with a DOMPointLiteral argument?
> 
>   DOMPoint transformPoint((DOMPoint or DOMPointLiteral) point);

But in this case, does the author always want to get a DOMPoint in return? If the author passes a DOMPointLiteral, why not returning one?

To be honest, I understand the wish of having dictionaries where possible. But if it turns out that this is not enough (that we will need an interface for DOMPoint was the beginning of the discussion), I would rather not introduce two of the same things. On the other hand, dictionaries are less expensive.

Greetings,
Dirk
Received on Tuesday, 24 September 2013 12:52:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC