Author: max
Date: 2007-08-10 15:32:41 -0700 (Fri, 10 Aug 2007)
New Revision: 6014
Modified:
openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/core/LzNode.lzs
Log:
Change 20070810-maxcarlson-y by [EMAIL PROTECTED] on 2007-08-10 15:19:49 PDT
in /Users/maxcarlson/openlaszlo/wafflecone
for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone
Summary: Don't evalueate CSS that would be overridden by a static attribute
New Features:
Bugs Fixed: LPP-4443 - Don't warn on undefined style constraints when constant
specified
Technical Reviewer: ben
QA Reviewer: promanik
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details: LzNode.lzs - Don't get CSS value if it would be overridden by a
instance/class attribute later
Tests:
http://localhost:8080/wafflecone/test/style/constraints/main.lzx?lzr=swf8
passes without warning for 'dyson' instance.
http://localhost:8080/wafflecone/diamond-legals/client/future/lzmail-silver/main.lzx?lzr=swf8&debug=true
has far fewer spurious warnings.
Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/core/LzNode.lzs
===================================================================
--- openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/core/LzNode.lzs
2007-08-10 22:26:02 UTC (rev 6013)
+++ openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/core/LzNode.lzs
2007-08-10 22:32:41 UTC (rev 6014)
@@ -498,6 +498,10 @@
for ( var k in stylemap ){
//we are going to bypass the CSS API and call the underlying
//implementation because we're concerned about speed
+ if (initialArgs[k] != null) {
+ // Don't get CSS value if it would be overridden by a
instance/class attribute later
+ continue;
+ }
var v = LzCSSStyle.getPropertyValueFor( this , stylemap[ k ] );
// This is a hack because people want to give color styles as
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins