0 Replies Latest reply on Oct 26, 2009 1:35 PM by Darrell Loverin

    [svn:fx-trunk] 11163: Changes to turn on the per-module style feature by default.

    Darrell Loverin Level 4

      Revision: 11163

      Author:   dloverin@adobe.com

      Date:     2009-10-26 13:35:33 -0700 (Mon, 26 Oct 2009)

       

      Log Message:

      ***********

      Changes to turn on the per-module style feature by default.

       

      The feature can be turned off by compiling with -isolateStyles=false.

       

      QE notes: None.

      Doc notes: None.

      Bugs:

      Reviewer: Alex, Paul

      Tests run: checkintests, all mustella

      Is noteworthy for integration: Yes.

       

      Summary of changes:

       

      frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as

      Propagate the module factory in setFlexContent.

       

      frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as

      Implement IFlexModule

       

      frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as

      Move getting style declaration from the constructor to the override of the module factory setter.

       

      frameworks/projects/framework/src/mx/controls/Alert.as

      Set moduleFactory to parent if parent is an IFlexModuleFactory.

       

      frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as

      Pass styleManager in CSSStyleDeclaration.

       

      frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as

      Pass styleManager in CSSStyleDeclaration.

       

      frameworks/projects/framework/src/mx/controls/RadioButton.as

      Move getting style declaration from the constructor to the override of the module factory setter.

       

      frameworks/projects/framework/src/mx/controls/SWFLoader.as

      Handle the ?\226?\128?\156get parent module factory?\226?\128?\157 request from an embedded swf.

       

      frameworks/projects/framework/src/mx/core/Container.as

      Pass styleManager in CSSStyleDeclaration.

       

      frameworks/projects/framework/src/mx/core/UIComponent.as

      Defer setting styles until a module factory is set.

       

      frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as

      Set the module factory of an added child.

       

      frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as

      Set the module factory of the tooltip to be the same as the target.

       

      frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as

      Rename parameter based on PARB feedback.

       

      frameworks/projects/framework/src/mx/styles/IStyleModule.as

      Add setStyleDeclarations per spec.

       

      frameworks/projects/framework/src/mx/styles/StyleManager.as

      Deprecate old static StyleManager API.

       

      frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as

      Use IStyleModule.setStyleDeclarations.

       

      frameworks/projects/framework/src/mx/styles/StyleProtoChain.as

      A fix to get the correct style manager and pass styleManager in CSSStyleDeclaration.

       

      frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as

      Pass styleManager in CSSStyleDeclaration.

       

      frameworks/projects/spark/src/spark/components/Group.as

      Propagate moduleFactory in elementAdded().

       

      modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java

      Rename ?\226?\128?\147create-style-manager option to ?\226?\128?\147isloateStyles. The option has been changed from hidden to advanced.

       

      modules/compiler/src/java/flex2/compiler/css/StyleDef.vm

      Fix bug to not add a default factory that is not needed.

       

      modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm

      Initialize styles in a module factory setter override.

       

      modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm

      Changed emitComponentInitializers_1 to not emit style related code if the document implements IFlexModule. Created emitComponentStyleInitializers to emit those styles.

       

      modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java

      Generate code to match ClassDef.vm and ClassDefLib.vm changes.

       

      modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java

      Add IFlexModuleFactory to standard imports.

       

      modules/compiler/src/java/flex2/configuration_en.properties

      Rename ?\226?\128?\147create-style-manager option to ?\226?\128?\147isloateStyles.

       

      modules/compiler/src/java/flex2/tools/PreLink.java

      Rename ?\226?\128?\147create-style-manager option to ?\226?\128?\147isloateStyles.

       

       

      Modified Paths:

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

          flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as

          flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItem Renderer.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.a s

          flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as

          flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemR enderer.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java

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

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

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties

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