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

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 25 Sep 2013 20:48:06 +1200
Message-ID: <CAOp6jLbZFvGaHcZpdApeeTSdtFa_UYxD7uQZ99T0nPjkfyE09A@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style list <www-style@w3.org>
On Wed, Sep 25, 2013 at 5:42 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> As in, do we really just want to have an immutable DOMRect type and a
> DOMRectLiteral dictionary, and have things like getBoundingClientRect()
> return the latter, say?
>

The only problem with that is we can't have methods on dictionaries. At the
implementation level we probably have to reify all the attributes, too,
which is sort of annoying ... a rectangle only needs 4 scalar values, but
the dictionary version would need at least 6.

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w  *
*
Received on Wednesday, 25 September 2013 08:48:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 25 September 2013 08:48:38 UTC