             {
                 if (headerStyleName is String)
                 {
-                    headerStyleName =
-                        owner.styleManager.getMergedStyleDeclaration(String(headerStyleName));
+                    chain = addStylesToProtoChain(String(headerStyleName), chain, target);
                 }
 
                 if (headerStyleName is CSSStyleDeclaration)

            {
                if (headerStyleName is String)
                {
                    headerStyleName =
                        owner.styleManager.getMergedStyleDeclaration(String(headerStyleName));
                }

                if (headerStyleName is CSSStyleDeclaration)

                owner.systemManager);
        return fontContext != oldEmbeddedFontContext;
    }
	
	/**
	 *  @private
	 */
	private function addStylesToProtoChain(styles:String, chain:Object, target:DisplayObject):Object
	{
		var styleNames:Array = styles.split(/\s+/);
		for (var c:int=0; c < styleNames.length; c++)
		{
			if (styleNames[c].length) 
			{
				var declaration:CSSStyleDeclaration = 
					owner.styleManager.getMergedStyleDeclaration("." + styleNames[c]);
				
				if (declaration)
					chain = declaration.addStyleToProtoChain(chain, target);
			}
		}
		return chain;
	}

    /**
     *  @private
