W3C home > Mailing lists > Public > www-style@w3.org > October 2012

RE: [cssom] Make CSSStyleSheet constructable

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 19 Oct 2012 00:31:58 +0000
To: Boris Zbarsky <bzbarsky@MIT.EDU>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <3C4041FF83E1E04A986B6DC50F0178291BE603E2@TK5EX14MBXC221.redmond.corp.microsoft.com>

[Boris Zbarsky:]
> 
> On 10/17/12 8:33 PM, Boris Zbarsky wrote:
> > I'm not sure why.  Gecko already does such sharing on the style data
> > of linked stylesheets.  It would be easy to extend it to inline
> > stylesheets if needed.
> 
> One comment here, though: what Gecko actually does is a copy-on-access
> setup where sheets are shared as long as you don't touch their CSSOM.
> Once you do, the sharing stops, because at that point the sharing would be
> observable.
> 
Indeed I was wondering why this was a JS constructor issue vs. an 
implementation-level copy-on-write strategy?
Received on Friday, 19 October 2012 00:32:47 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT