     /**
      *  @private
      */
-    override protected function updateDisplayList(unscaledWidth:Number, 
-                                                  unscaledHeight:Number):void
-    {
-        /*
-        var g:Graphics = Sprite(displayObject).graphics;
+    override protected function measure():void
+    {
+        super.measure();
         
-        // TODO EGeorgie: clearing the graphics needs to be shared when
-        // the display objects are shared.
-        g.clear();
-
-        g.lineStyle()
-        g.beginFill(0xCCCCCC);
-        g.drawRect(0, 0, unscaledWidth, unscaledHeight);
-        g.endFill();
-        */
-    }
-
+        // The measure() method of a GraphicElement can get called
+        // when its style chain hasn't been initialized.
+        // In that case, composeTextLines() must not be called.
+        if (!mx_internal::styleChainInitialized)
+            return;
+
+        composeTextLines(explicitWidth, explicitHeight);
+
+        measuredWidth = Math.ceil(mx_internal::bounds.width);
+        measuredHeight = Math.ceil(mx_internal::bounds.height);
+    }
+            
     //--------------------------------------------------------------------------
     //
     //  Methods: ISimpleStyleClient

package mx.graphics.baseClasses
{

import flash.display.Graphics;
import flash.display.Sprite;
import flash.geom.Rectangle;

import mx.core.mx_internal;
import mx.styles.CSSStyleDeclaration;

    //  Overridden properties: GraphicElement
    //
    //--------------------------------------------------------------------------
        
    //----------------------------------
    //  baselinePosition
    //----------------------------------

    [Inspectable(category="General")]

    /**
     *  @private
     */
    override public function get baselinePosition():Number
    {
        mx_internal::validateBaselinePosition();
        
        // Return the baseline of the first line of composed text.
        return mx_internal::textLines.length > 0 ?
			   mx_internal::textLines[0].y : 0;
    }

    //----------------------------------
    //  needsDisplayObject
    //----------------------------------
