turbopower_ipro: Cache the CSS properties and also did some refactoring.
Original Reporter info from Mantis: 7bit
-
Reporter name: Bernd Kreuss
Original Reporter info from Mantis: 7bit
- Reporter name: Bernd Kreuss
Description:
This patch should further increase rendering speed (important for scrolling).
The LoadCSSProps() method was rewritten (and also renamed to reflect what it actually does). The TCSSProps objects from all applicable CSS selectors and the one from the style attribute are now first applied together into only one TCSSProps object and the result of this operation is cached to avoid having to look them all up and apply them again during the next render. This rewrite also fixes some strange inconsistencies in the previous implementation. Also this method now takes no arguments anymore, they have never been used anyways.
Some Variables (the ones of type TCSSProps) have been renamed to give them more meaningfuil names. Documentation has been added to the class definitions of TCSSProps and TCSSGlobalProps.
If you have questions, feel free to ask.
I hope this patch will be applied, IMHO it makes these parts of the code better understandable (and also faster).
Mantis conversion info:
- Mantis ID: 20975
- Version: 0.9.30.3 (SVN)
- Fixed in revision: r34480 (#a67a78e8)