      */
     private function measureUsingWidth(maxComposeWidth:Number):void
     {
-        var flowComposer:IFlowComposer = textFlow.flowComposer;
-        var containerController:ContainerController =
-            flowComposer.getControllerAt(0);
-
         // Never compose over the max width because the width will always
         // be adjusted down to this and it's easy to get into an infinite
         // measure/update display loop.
         var composeWidth:Number; 
-        if (textFlow.hostFormat.lineBreak == "toFit")
+        if (hostFormat.lineBreak == "toFit")
         {
             // Need to set a width to cause a wrap if text rather than 
             // formatted content.

        var format:Object = {};
        
        // Switch to the EditManager.
        var priorEditingMode:String = getEditingMode(textFlow.interactionManager);
        switchToEditingMode(textFlow, EditingMode.READ_WRITE);
        var selectionManager:ISelectionManager = textFlow.interactionManager;
                
        // This internal TLF object maps the names of format properties
        // to Property instances.

    /**
     *  @private
     *  The default is true.
     *  TODO! The default should be true.
     */
    private var _autoSize:Boolean = false;

    /**
     *  @private
