 package mx.graphics.baseClasses
 {
 
+import flash.display.DisplayObjectContainer;
 import flash.display.Graphics;
 import flash.display.Sprite;
 import flash.geom.Rectangle;
+import flash.text.engine.TextLine;
 
 import mx.core.mx_internal;
 import mx.styles.CSSStyleDeclaration;


    /**
     *  @private
     *  TODO Make this mx_internal.
     */
    protected function invalidateTextLines(cause:String):void
    {
    }
    
    /**
	 *  Use scrollRect to clip overset lines.
	 *  But don't read or write scrollRect if you can avoid it,

	 *  And if scrollRect is already set to a Rectangle instance,
	 *  reuse it rather than creating a new one.
     */
    mx_internal function clip(w:Number, h:Number):void
	{
        if (mx_internal::isOverset)
        {
            var r:Rectangle = displayObject.scrollRect;
            if (r)
