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

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

From: Simon Pieters <simonp@opera.com>
Date: Wed, 25 Sep 2013 14:46:42 +0200
To: "Simon Fraser" <smfr@me.com>, "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "Dirk Schulze" <dschulze@adobe.com>, "www-style list" <www-style@w3.org>
Message-ID: <op.w3ywf4m5idj3kv@simons-macbook-pro.local>
On Mon, 23 Sep 2013 21:30:06 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> On Mon, Sep 23, 2013 at 11:28 AM, Simon Fraser <smfr@me.com> wrote:
>> Why do we need both DOMPoint and DOMPointLiteral?
>
> DOMPointLiteral exists so that you can call methods that expect points
> without having to wrap it in a verbose DOMPoint() constructor at
> call-time.
>
> That is, you can say "el.transformPoint({x:5, y:10})" instead of
> "el.transformPoint(new DOMPoint(5, 10))".

transformPoint, is that convertPointFromNode or something else?

-- 
Simon Pieters
Opera Software
Received on Wednesday, 25 September 2013 12:47:52 UTC

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