0 Replies Latest reply on Jan 26, 2009 11:58 AM by (Paul_Reilly)

    [svn] 4671: * Added PropertyReference() support for CSS.

    Level 1
      Revision: 4671
      Author: preilly@adobe.com
      Date: 2009-01-26 11:58:43 -0800 (Mon, 26 Jan 2009)

      Log Message:
      -----------
      * Added PropertyReference() support for CSS. PropertyReference()
      support was not added for I18N due to lack of a good use case.
      PropertyReference() works like ClassReference(), except instead of a
      class name argument, a property name should be used. For example

      private var right:String;


        textAlign: PropertyReference("right")


      * Disabled pseudo data binding support in CSS for Flex 4 apps.
      PropertyReference() allows for explicit property references, so the
      implicit pseudo data binding support should no longer be used in
      CSS.

      tests Passed: checkintests

      Needs QA: YES

      Needs DOC: YES

      Bug fixes: SDK-17787

      API Change: Yes, added PropertyReference() support for CSS.

      Reviewer: Pete, Evtim, Rob

      Code-level description of changes:

      flash/css/Descriptor.java

      Modified getLexicalUnitAsString() to handle the
      PropertyReference() function.

      flex2/compiler/css/StyleDef.java

      Renamed processClassReference() to processReference() and modified
      it to handle ClassReference() and PropertyReference(). Also,
      disabled the pseudo data binding support unless the
      compatibility-version is 3.0 or less.

      Renamed InvalidClassReference compiler error to InvalidReference.

      flex2/compiler_en.properties

      Renamed css.StyleDef.InvalidClassReference message to
      css.StyleDef.InvalidReference.

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-17787

      Modified Paths:
      --------------
      flex/sdk/trunk/modules/compiler/src/java/flash/css/Descriptor.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties