Revision: 12133
Revision: 12133
Author: pfarland@adobe.com
Date: 2009-11-23 18:25:03 -0800 (Mon, 23 Nov 2009)
Log Message:
***********
Preserving whitespace for Spark text components and text-related child tags. Whitespace that appears inside a text component but outside of text-related children should be ignored. The presence of any non-text related child tag removes whitespace at that level to avoid multiple-initializer errors for values.
Note: This change is a work around for now as the MXML compiler wasn't setup to customize whitespace handling on a per-component basis. Longer term we need a way for components to opt in, perhaps via a manifest entry.
QE notes: Please look out for testcases that now have whitespace preserved around text content.
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
SDK-24341 - CTFXG 2476563 Inconsistent word spacing results between MXMLC static and runtime compilation
Reviewer: Paul
Tests run: checkintests
Is noteworthy for integration: Yes
Ticket Links:
***********
http://bugs.adobe.com/jira/browse/SDK-22601
http://bugs.adobe.com/jira/browse/SDK-23160
http://bugs.adobe.com/jira/browse/SDK-24341
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/CDATANode.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/MxmlScanner.ja va
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/Node.java