      */
     public function getStyle(styleProp:String):*
     {
+        // If our style proto chain hasn't been set up yet, return any locally declared
+        // styles. This way any style set before we are added to the display list
+        // is correctly returned.
+        if (_inheritingStyles == StyleProtoChain.STYLE_UNINITIALIZED)
+        {
+            if (deferredSetStyles)
+                return this.deferredSetStyles[styleProp];
+            
+            if (styleDeclaration)
+                return styleDeclaration.getStyle(styleProp); 
+        }
+        
         return styleManager.inheritingStyles[styleProp] ?
                _inheritingStyles[styleProp] :
                _nonInheritingStyles[styleProp];

     *  hold the setStyles() calls that have been deferred untils a moduleFactory
     *  is set.
     */
    private var deferredSetStyles:Array;
    
    /**
     *  @private

package mx.core
{

import flash.accessibility.Accessibility;
import flash.accessibility.AccessibilityProperties;
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import flash.display.GradientType;
