[Lazarus] [patch] lhelp scrolling slowness - I might have found it
Dimitri Smits
smitco at telenet.be
Mon Dec 26 23:19:18 CET 2011
----- "Bernd" <prof7bit at googlemail.com> schreef:
> 2011/12/26 Hans-Peter Diettrich <DrDiettrich1 at 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
More information about the Lazarus
mailing list