         var styleName:Object = obj.styleName;
         var styleDeclarations:Array;
         var decl:CSSStyleDeclaration;
-        var styleManager:IStyleManager2 = null;
-        
-        if (target is UIComponent)
-            styleManager = UIComponent(target).styleManager;
-    
-        if (!styleManager)
-            styleManager = StyleManager.getStyleManager(null);
+        var styleManager:IStyleManager2 = getStyleManager(target);
         
         // If we have an advanced style client, we handle this separately
         // because of the considerably more complex selector matches...

     */
    public static function styleChanged(object:IInvalidating, styleProp:String):void
    {
        var styleManager:IStyleManager2;
        
        if (object is UIComponent)
            styleManager = UIComponent(object).styleManager;
        else
            styleManager = StyleManager.getStyleManager(null);
        
        // If font changed, then invalidateProperties so
        // we can re-create the text field in commitProperties
        // FIXME (gosmith): Should hasFontContextChanged() be added to IFontContextComponent?

     */
    public static function matchesCSSType(object:IAdvancedStyleClient, cssType:String):Boolean
    {
        var styleManager:IStyleManager2 = getStyleManager(object);
        var qualified:Boolean = styleManager.qualifiedTypeSelectors;
        var typeHierarchy:OrderedObject = getTypeHierarchy(object, qualified);
        return typeHierarchy.object_proxy::getObjectProperty(cssType) != null;
