[Laszlo-dev] For Review: Change 20090430-maxcarlson-n Summary: Reduce calls to getTextDimension()

Max Carlson max at openlaszlo.org
Thu Apr 30 15:00:01 PDT 2009


Change 20090430-maxcarlson-n by maxcarlson at Bank on 2009-04-30 14:56:24  
PDT
     in /Users/maxcarlson/openlaszlo/trunk-clean
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Reduce calls to getTextDimension()

Bugs Fixed: LPP-8016 - Performance differences between OL 4.0.x and  
4.3.x

Technical Reviewer: ptw
QA Reviewer: hminsky

Details: LzSprite - Clear out additional cache to prevent leaks in IE.

LzTextSprite - Cache lineheight when the CSS value is set directly to  
prevent measuring it later.  Reuse measurement divs when the style is  
equivalent.

Tests: test/lztest/lztest-textheight.lzx? 
debug=true&lzr=dhtml&lzt=testboth runs as before, webtop has around  
half the number of calls to getTextDimension().

Files:
M      WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090430-maxcarlson-n.tar


More information about the Laszlo-dev mailing list