Beispiel #1
0
		public Stylesheet(WebBrowser control, nsIDOMStyleSheet stylesheet) : base (control)
		{
			if (control.platform != control.enginePlatform)
				unmanagedStyle = nsDOMStyleSheet.GetProxy (control, stylesheet);
			else
				unmanagedStyle = stylesheet;
			hashcode = unmanagedStyle.GetHashCode ();			
		}
Beispiel #2
0
		protected override  void Dispose (bool disposing)
		{
			if (!disposed) {
				if (disposing) {
					this.unmanagedStyle = null;
				}
			}
			base.Dispose(disposing);
		}		
Beispiel #3
0
 protected override void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             this.unmanagedStyle = null;
         }
     }
     base.Dispose(disposing);
 }
Beispiel #4
0
 public Stylesheet(WebBrowser control, nsIDOMStyleSheet stylesheet) : base(control)
 {
     if (control.platform != control.enginePlatform)
     {
         unmanagedStyle = nsDOMStyleSheet.GetProxy(control, stylesheet);
     }
     else
     {
         unmanagedStyle = stylesheet;
     }
     hashcode = unmanagedStyle.GetHashCode();
 }
Beispiel #5
0
        public static nsIDOMStyleSheet GetProxy(Mono.WebBrowser.IWebBrowser control, nsIDOMStyleSheet obj)
        {
            object o = Base.GetProxyForObject(control, typeof(nsIDOMStyleSheet).GUID, obj);

            return(o as nsIDOMStyleSheet);
        }
Beispiel #6
0
		public static nsIDOMStyleSheet GetProxy (Mono.WebBrowser.IWebBrowser control, nsIDOMStyleSheet obj)
		{
			object o = Base.GetProxyForObject (control, typeof(nsIDOMStyleSheet).GUID, obj);
			return o as nsIDOMStyleSheet;
		}