----- "Bernd" <prof7...@googlemail.com> schreef:

> 2011/12/26 Hans-Peter Diettrich <drdiettri...@aol.com>:
> But shouldn't the work of loading and applying all the different CSS
> properties of that node only be needed once after parsing is complete
> and not each time it is rendered? Ideally I think this entire method
> (LoadCSSProps) should not be called during render. If I understand it
> correctly then all it is supposed to do is to find all the different
> CSS props that apply to a node of this type and class and merge them
> in the correct order into the props object of that node. After that
> is
> done (once) it could be rendered. I wouldn't expect any of the CSS
> properties (or any properties at all) to *change* between two
> consecutive renders of the same document.

I could be mistaken, but it is common in javascript to change a class of a node 
(or add/remove different classes) on the fly. That would require a new render 
and a new gathering of css props for that node(tree).

kind regards,
Dimitri Smits

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to