[Laszlo-dev] For Review: Change 20090308-bargull-Yej Summary: defer drawImage() for incomplete images
André Bargull
andre.bargull at udo.edu
Sun Mar 8 04:56:08 PDT 2009
Change 20090308-bargull-Yej by bargull at dell--p4--2-53 on 2009-03-08 12:08:30
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: defer drawImage() for incomplete images
New Features:
Bugs Fixed: LPP-7874 (DHTML: exception in test/drawing/drawing.lzx)
Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
drawview:
- if image isn't loaded yet (complete-flag isn't set), drawImage() needs
to defered, cf.
"http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-drawimage"
- also added a check to protect against invalid an image-argument
- and changed getImage() to save an image under the resource-name and
the load url in order to prevent resource-images to be loaded over and
over again
LzSprite:
- getResourceUrls():
o moved all code which changes sprite-properties out of the function
o added a note that the function is used in drawview
Tests:
test/drawing/drawing.lzx?lzr=dhtml, tested with FF3, Saf3, Opera9, IE6
Files:
M lps/components/extensions/drawview.lzx
M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20090308-bargull-Yej.tar
More information about the Laszlo-dev
mailing list