W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

DOM Views

From: Sigurd Lerstad <slerstad@online.no>
Date: Thu, 3 May 2001 20:14:02 +0200
Message-ID: <002501c0d3fc$d520f4a0$6a274382@oemcomputer>
To: <www-dom@w3.org>, <www-svg@w3.org>

I'm writing an SVG Viewer/Editor and I'm trying to implement the DOM, I'm having some problems getting the logic with some of the interfaces, The specs say that a document (SVG for example) can have one or more views, but the SVGSVGElement extends the css::ViewCSS which is inherited from AbstractView, that doesn't make any sense to me, this leads me to believe that a SVG document must and can only have 1 view, and it seems generally odd to implement a view on the SVGSVGElement ??

Another implementing question, which is the better (?) solution?

Keep at all times a list of all the computed style properties on each element? con: memory consuming? pro: fast and easy to implement getComputedStyle() (which returns a list of all the properties that the language (SVG) supports)

Compute the property on demand, con: slow and very slow to implement getComputedStyle.

thanks for any help,

Sigurd Lerstad
Received on Thursday, 3 May 2001 14:10:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:08 UTC