Re: SVG12: Text Layout vs Scripting

At 06:21 AM 1/12/2005, Thomas DeWeese wrote:
    My point is that if you already have the code to make forceRedraw
>work.  Which would be as you say, to first force a full update of the
>DOM, and then update the display, there is no reason not to have
>getBBox first check a dirty bit (is the DOM for this node up to date?)
>and if not bring the DOM up to date using the same code as is in the
>first step of forceRedraw.

Yes, Thomas, I agree that this is way user agents must behave. getBBox() 
needs to work correctly whenever it is called. You don't need a 
forceRedraw() to ensure that the DOM returns reliable results.

Jon 

Received on Wednesday, 12 January 2005 15:34:45 UTC