[Laszlo-dev] For Review: Change 20071204-ptw-z Summary: Implement scriptlimits for SWF runtime

P T Withington ptw at pobox.com
Tue Dec 4 14:14:42 PST 2007


Change 20071204-ptw-z by ptw at dueling-banjos.local on 2007-12-04  
17:04:11 EST
     in /Users/ptw/OpenLaszlo/ringding-2
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Implement scriptlimits for SWF runtime

New Features: The canvas tag has a new attribute, swflimits which is
of type css, which can be used to override the default recursion (256)
and timeout (15s) limits.  To do so you say:
   <canvas scriptlimits="timeout: 30">
or to override both limits
   <canvas scriptlimits="recursion: 300; timeout: 30">

Bugs Fixed:

Technical Reviewer: henry.minsky at gmail.com (pending)
QA Reviewer: antun at laszlosystems.com (pending)
Doc Reviewer: lou at louiorio.com (pending)

Documentation:
See "New Features".  For complete example demonstration, see the test
case attached to the bug.

Details:
     schema/lfc: add scriptlimits attribute to canvas

     CanvasCompiler: parse scriptlimits and store in environment

     SWFWriter: Don't try to write scriptlimits immediately.  When
     closing the file, if the limits have been set (are non-zero) add
     them.

     ScriptLimits: Correct defaults.  If called with a 0 value, use  
the default.

Tests:
     smokecheck, test case from Jira

Files:
M      WEB-INF/lps/schema/lfc.lzx
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/ 
CanvasCompiler.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/SWFWriter.java
M      WEB-INF/lps/server/jgenerator-2.2/src/org/openlaszlo/iv/flash/ 
api/ScriptLimits.java


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071204-ptw-z.tar


More information about the Laszlo-dev mailing list