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

On Mon, Sep 23, 2013 at 3:45 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Tue, Sep 24, 2013 at 10:30 AM, Simon Fraser <smfr@me.com> wrote:
>> On Sep 23, 2013, at 3:24 PM, Robert O'Callahan <robert@ocallahan.org>
>> wrote:
>>
>> On Tue, Sep 24, 2013 at 6:34 AM, Dirk Schulze <dschulze@adobe.com> wrote:
>>>
>>> On Sep 23, 2013, at 8:28 PM, Simon Fraser <smfr@me.com> wrote:
>>> > Also, why are the members of DOMPoint (and DOMRect/DOMQuad) readonly?
>>> > Do they have to be?
>>>
>>> They are not. (As long as I am not missing something.)
>>
>>
>> Hmm. This creates a problem: what does it mean to set
>> top/left/bottom/right of DOMQuad.bounds?
>>
>>
>> The bounds property itself should be readonly.
>
>
> That doesn't help.

Yeah, that just means you can't replace the .bounds property with
another object.

WebIDL makes it remarkably fiddly to create an interface that should
be readonly in some circumstances and mutable in others.

~TJ

Received on Monday, 23 September 2013 23:15:43 UTC