[I believe this is a safe change that vastly improves the swf implementation of the box model, so I am going to check it in, in hopes that it fixes the bug Fred is seeing with shadows. Hopefully Henry and Fred can review when they are back, or if someone wants to volunteer... they would be welcome!]
Change ptw-20110319-AIi by [email protected] on 2011-03-19 17:57:32 EDT in /Users/ptw/OpenLaszlo/trunk-devo for http://svn.openlaszlo.org/openlaszlo/trunk Summary: Keep border/shadow with their view Bugs Fixed: LPP-9667 Shadows can't display if 'clip=true' Technical Reviewer: [email protected] (pending) QA Reviewer: [email protected] (pending) Overview: Somehow I think we had this lesson before... perhaps in swf8? But we seem to have forgotten it, so are doomed to repeat it. Details: Update the border and shadow transforms to match their view's each time you draw them. To comply with CSS3: Scale the shadowdistance by hand, since it is not scaled by the runtime (but CSS3 expects it to be). Scale the offset caused by the border by hand. Approximate a Gaussian blur for the shadow. Make sure the border and shadow track their view's x/y. Tests: Files: M WEB-INF/lps/lfc/kernel/swf9/LzSprite.as Changeset: http://svn.openlaszlo.org/openlaszlo/patches/ptw-20110319-AIi.tar
