         //  - for non-inheriting styles, the global style sheet
         //  - for inheriting styles, my parent's style object
         var nonInheritChain:Object = StyleManager.stylesRoot;
-        
+
         if (nonInheritChain && nonInheritChain.effects)
             registerEffects(nonInheritChain.effects);
-        
+
         var p:IStyleClient = parent as IStyleClient;
         if (p)
         {

            // set on Application.
            if (isPopUp)
            {
                if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0 && _owner && _owner is IStyleClient)
                    inheritChain = IStyleClient(_owner).inheritingStyles;
                else
                    inheritChain = ApplicationGlobals.application.inheritingStyles;


            nonInheritChain =
                typeSelector.addStyleToProtoChain(nonInheritChain, this);

            if (typeSelector.effects)
                registerEffects(typeSelector.effects);
        }

        // Next are the class selectors
        for (i = 0; i < classSelectors.length; i++)
        {
            var classSelector:CSSStyleDeclaration = classSelectors[i];
            inheritChain =
                classSelector.addStyleToProtoChain(inheritChain, this);

            nonInheritChain =
                classSelector.addStyleToProtoChain(nonInheritChain, this);

            if (classSelector.effects)
                registerEffects(classSelector.effects);
        }
