0 Replies Latest reply on Mar 4, 2010 9:58 AM by kevinklin

    [svn:fx-trunk] 14581: Merge revision 14567 from 4.x to trunk.

    kevinklin Adobe Employee

      Revision: 14581

      Revision: 14581

      Author:   klin@adobe.com

      Date:     2010-03-04 09:58:14 -0800 (Thu, 04 Mar 2010)

      Log Message:

      ***********

      Merge revision 14567 from 4.x to trunk.

       

      Fix for de-mirroring icons correctly including http://bugs.adobe.com/jira/browse/SDK-25657 and http://bugs.adobe.com/jira/browse/SDK-25684.

       

      In general, the fix for de-mirroring icons involves saving the original transform matrix before applying our scaling and translation. Our current method only partially does this resulting in bugs such as the vertical flipping. After saving the matrix, we can restore the original transform matrix when applying most properties that would affect our calculations (width, height, scaleX, scaleY, x). We also use backing variables for scaleX and scaleY since they may be affected by the matrix calculations and by setting width and height. I?\226?\128?\153ve also tried to simplify the case where we are switching back to not mirroring by restoring the original matrix and setting properties normally.

       

      -Modified validateTransformMatrix to only handle the mirroring case. It saves the original matrix to a private variable, origMatrix, and applies matrix transformations on the current transform matrix. The transformations are similar to the pattern in AdvancedLayoutFeatures.build2DMatrix. We must use matrix transformations in order to make sure our transformations work with other transformations (e.g. rotation).

      -In the addedHandler, I split the logic for mirroring and not mirroring. For the mirroring case, we also set the backing variables in addition to calling validateTransformMatrix. For the normal case, we restore the transform matrix to origMatrix.

      -In each of the property setters, we first restore the transform matrix to origMatrix before setting the property. After setting the property, we apply de-mirroring by calling validateTransformMatrix.

       

      QE notes: No

      Doc notes: No

      Bugs: SDK-25657, SDK-25684

      Reviewer: Jason

      Tests run: checkintests, Mirroring, Button, Alert, Tree

      Is noteworthy for integration: No

       

      Ticket Links:

      ***********

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

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

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

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

       

      Modified Paths:

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

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

       

      Property Changed:

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

          flex/sdk/trunk/