0 Replies Latest reply on Oct 30, 2009 5:25 PM by Peter Farland

    [svn:fx-trunk] 11344: Adding a work around for TLF-based Spark Components that need to preserve whitespace between text content nodes .

    Peter Farland Level 3

      Revision: 11344

      Author:   pfarland@adobe.com

      Date:     2009-10-30 17:25:44 -0700 (Fri, 30 Oct 2009)

       

      Log Message:

      ***********

      Adding a work around for TLF-based Spark Components that need to preserve whitespace between text content nodes. This change isn't ideal but given the limitations of the parser this does not yet support preserving whitespace in arbitrary subclasses of our well-known spark text components.

       

      This change attempts to support whitespace preservation whether or not a default property was explicitly defined, including whitespace between the text content markup tags and their default properties, but not between normal properties set via MXML child tags.

       

      QE notes: Watch out for pixel comparisons for tests that make use of our spark text components but set collapseWhitespace="preserve".

      Doc notes: N/A

      Bugs:

      SDK-22601 - Spaces surrounded by don't appear at runtime

      SDK-23160 - XML whitespace removal breaks TextFlow's whiteSpaceCollapse="preserve" setting

      Reviewer: Paul

      Tests run: Checkintests, Bug Test Cases, Mustella Label (All pass), TextInput (all passed), TextArea (all passed), RichText (all passed but 3 failures which need to be updated due to whitespace changes).

      Is noteworthy for integration: Yes

       

      Ticket Links:

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

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

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

       

      Modified Paths:

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

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jj

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/MxmlScanner.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/Node.java

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