Change 20100915-maxcarlson-x by maxcarl...@friendly on 2010-09-15 14:46:56 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Create click containers only as needed

Bugs Fixed: LPP-6892 -  Generated File Sizes baseline complete; Performance 
Tuning ongoing

Technical Reviewer: ptw
QA Reviewer: hminsky

Overview: This change only creates click containers for clickable sprites.  
This drastically reduces the number of divs for each application.

Details: LzSprite - When addChild() sees a child sprite that has a clickdiv, it 
creates a clickdiv container tree and appends it.  setClickable() creates a 
click tree as-needed.  All setters, e.g. setX() only update the click div if 
present.  __updateClip() now tracks clip css in the _clip attribute.  
setContextMenu() now uses the __createContainerDivs() to create container divs. 
__copystyles() tries to avoid copying unneeded styles and uses cached sprite 
css values.

LzTextSprite - Don't create click divs.

LzInputTextSprite - Delay creating click divs until they're needed.

Tests: All apps run as before (but faster) in dhtml.

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

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20100915-maxcarlson-x.tar

Reply via email to