 import flash.events.IEventDispatcher;
 import flash.system.ApplicationDomain;
 import flash.system.SecurityDomain;
+
 import mx.core.Singleton;
-import mx.core.mx_internal;
 
 /**
  *  The StyleManager class manages the following:

    {
        return impl.selectors;
    }
    
    /**
     *  Gets the CSSStyleDeclaration object that stores the rules
     *  for the specified CSS selector.

     *  not at static initialization time, in order to ensure
     *  that the Singleton registry has already been initialized.
     */
    private static var _impl:IStyleManager3;

    /**
     *  @private
     *  The singleton instance of StyleManagerImpl which was
     *  registered as implementing the IStyleManager2 interface.
     */
    private static function get impl():IStyleManager3
    {
        if (!_impl)
        {
            // TODO: Do we need to check compatibility first?

            _impl = IStyleManager3(
                Singleton.getInstance("mx.styles::IStyleManager3"));
        }

        return _impl;
    }

