private void OnShimAdded(HtmlShim addedShim)
 {
     if ((addedShim != null) && !(addedShim is HtmlWindow.HtmlWindowShim))
     {
         this.AddWindowShim(new HtmlWindow(this, addedShim.AssociatedWindow));
     }
 }
예제 #2
0
 private void OnShimAdded(HtmlShim addedShim)
 {
     Debug.Assert(addedShim != null, "Why are we calling this with a null shim?");
     if (addedShim != null)
     {
         if (!(addedShim is HtmlWindow.HtmlWindowShim))
         {
             // we need to add a window shim here for documents and elements
             // so we can sync Window.Unload.  The window shim itself will trap
             // the unload event and call back on us on OnWindowUnloaded.  When
             // that happens we know we can free all our ptrs to COM.
             AddWindowShim(new HtmlWindow(this, addedShim.AssociatedWindow));
         }
     }
 }
 private void OnShimAdded(HtmlShim addedShim) {
     
     Debug.Assert(addedShim != null, "Why are we calling this with a null shim?");
     if (addedShim != null) {
         if (!(addedShim is HtmlWindow.HtmlWindowShim)) {
             // we need to add a window shim here for documents and elements
             // so we can [....] Window.Unload.  The window shim itself will trap
             // the unload event and call back on us on OnWindowUnloaded.  When
             // that happens we know we can free all our ptrs to COM.
             AddWindowShim(new HtmlWindow(this, addedShim.AssociatedWindow));
         }
     }
 }
 private void OnShimAdded(HtmlShim addedShim)
 {
     if ((addedShim != null) && !(addedShim is HtmlWindow.HtmlWindowShim))
     {
         this.AddWindowShim(new HtmlWindow(this, addedShim.AssociatedWindow));
     }
 }