0 Replies Latest reply on Aug 28, 2009 10:04 AM by Paul Reilly

    [svn:fx-trunk] 9753: * Implemented support for setting the SWF and HTML backgroundColor via

    Paul Reilly

      Revision: 9753

      Author:   preilly@adobe.com

      Date:     2009-08-28 10:03:40 -0700 (Fri, 28 Aug 2009)

       

      Log Message:

      ***********

      • Implemented support for setting the SWF and HTML backgroundColor via

        CSS.  This is part of the "More styles for Spark skins" feature.

       

      QE notes: See me for a suggested testing matrix.

      Doc notes: SWF and HTML backgroundColor can be set via CSS now.

      Bugs: SDK-22659

      Reviewer: Pete F.

      Tests run: checkintests, mustella tests/Application

      Is noteworthy for integration: yes, should help unblock "MX Only"

      Code-level description of changes:

       

        flex2/tools/PreLink.java

       

          Modified processMainUnit() to call lookupBackgroundColor() if the

          backgroundColor hasn't been set inline.

       

          Added lookupBackgroundColor(),

          lookupTypeSelectorBackgroundColor(),

          lookupClassSelectorBackgroundColor(), and lookupStyleName().

       

        flex2/compiler/CompilationUnit.java

       

          Added styleName variable for holding a potential inline styleName

          value.

       

        flex2/compiler/as3/EmbedExtension.java

       

          Modified generate() to format the className before calling getClass().

       

        flex2/compiler/css/StyleModule.java

       

          Added getStyleDef().

       

        flex2/compiler/css/StyleDef.java

       

          Changed styles from List.

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-22659

       

      Modified Paths:

      **************

          flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleDeclaration.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilationUnit.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SymbolTable.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedExtension.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java