      *  
      *  Possible values are <code>ALWAYS</code>, <code>WHEN_FOCUSED</code>, and <code>WHEN_ACTIVE</code>.
      *  
-     *  @see mx.components.TextSelectionVisibility
+     *  @see mx.components.TextSelectionHighlighting
      * 
-     *  @default TextSelectionVisibility.WHEN_FOCUSED
+     *  @default TextSelectionHighlighting.WHEN_FOCUSED
      *  
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function get selectionVisibility():String 
-    {
-        return _selectionVisibility;
-    }
-    
-    /**
-     *  @private
-     */
-    public function set selectionVisibility(value:String):void
-    {
-        if (value == _selectionVisibility)
+    public function get selectionHighlighting():String 
+    {
+        return _selectionHighlighting;
+    }
+    
+    /**
+     *  @private
+     */
+    public function set selectionHighlighting(value:String):void
+    {
+        if (value == _selectionHighlighting)
             return;
             
-        _selectionVisibility = value;
+        _selectionHighlighting = value;
         selectionFormatsChanged = true;
         
         invalidateProperties();

import flashx.textLayout.tlf_internal;
import flashx.undo.IUndoManager;

import mx.core.EmbeddedFont;
import mx.core.IEmbeddedFontRegistry;
import mx.core.IFlexModuleFactory;
import mx.core.IIMESupport;

            actuallyAutoSizing = false;
            return true;
        }
             
        // ToDo: consider moving to commitProperties()
        if (isNaN(widthInChars) && isNaN(heightInLines))
        {
            // Can only autoSize if this component isn't the viewport
            // of a scroller.  autoSize and scrolling don't play well together.
            actuallyAutoSizing = !_clipAndEnableScrolling;
            
            // If we're autoSizing, make sure we aren't scrolled from
            // previously not being autoSized.
            if (actuallyAutoSizing)
            {
                _textContainerManager.horizontalScrollPosition = 0;
                _textContainerManager.verticalScrollPosition = 0;
            }
        }
        else
        {
            actuallyAutoSizing = false;
        }
        
        return false;        
