             }
             else
             {
-                var decl:CSSStyleDeclaration = styleManager.getStyleDeclaration(type);
+                var decl:CSSStyleDeclaration = styleManager.getMergedStyleDeclaration(type);
                 if (decl)
                     classDecls.push(decl);
             }

                {
                    if (styleNames[i].length)
                    {
                        styleDeclaration = styleManager.getStyleDeclaration("." + styleNames[i]);
                        if (styleDeclaration)
                            universalSelectors.push(styleDeclaration);
                    }

                    {
                        if (styleNames[c].length)
                        {
                            styleDeclarations.push(styleManager.getMergedStyleDeclaration("." + styleNames[c]));
                        }
                    }
                }
