Change 20090408-ptw-e by ptw@dueling-banjos.home on 2009-04-08 14:03:38 EDT     in /Users/ptw/OpenLaszlo/trunk-3     for http://svn.openlaszlo.org/openlaszlo/trunk
Change 20090408-ptw-e by ptw@dueling-banjos.home on 2009-04-08 14:03:38 EDT
    in /Users/ptw/OpenLaszlo/trunk-3
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Reduce calls to LzTextSprite/getTextDimension

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

Technical Reviewer: hminsky (Message-ID: <8c61fad60904090922x488b493fl6ccb0a37aefff1e7@mail.gmail.com>)
QA Reviewer: mkolenda (pending)

Details:
    Moved the quick cache check into the callers of getTextDimension,
    avoiding the call if the cached value is still valid.

Tests:
    smokecheck
    test/lztest/lztest-textheight.lzx?debug=true&lzr=dhtml&lzt=testboth



git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@13642 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo,mcarlson/openlaszlo