Bug 1458174 - Remove nsIDOMElement from SeaMonkey. r=frg
authorBill Gianopoulos <wgianopoulos@gmail.com>
Mon, 09 Mar 2020 11:59:38 +0100
changeset 37527 3fd01064df4abd64305696b87b944c22c5bc3147
parent 37526 fdb6e75b389e60cbf1cef014ff0a4b6cd6336968
child 37528 555da51727e5aed9006b55d872d881ffb6a05af7
push id2566
push userclokep@gmail.com
push dateMon, 09 Mar 2020 19:20:31 +0000
treeherdercomm-beta@a352facfa0a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrg
bugs1458174, 1455674
Bug 1458174 - Remove nsIDOMElement from SeaMonkey. r=frg Fix Port of Bug 1455674 [Remove nsIDOMElement].
suite/components/shell/nsWindowsShellService.cpp
--- a/suite/components/shell/nsWindowsShellService.cpp
+++ b/suite/components/shell/nsWindowsShellService.cpp
@@ -589,17 +589,16 @@ WriteBitmap(nsIFile* aFile, imgIContaine
   return rv;
 }
 
 NS_IMETHODIMP
 nsWindowsShellService::SetDesktopBackground(dom::Element* aElement,
                                             int32_t aPosition,
                                             const nsACString& aImageName)
 {
-  nsCOMPtr<nsIContent> content(do_QueryInterface(aElement));
   if (!aElement || !aElement->IsHTMLElement(nsGkAtoms::img)) {
     // XXX write background loading stuff!
     return NS_ERROR_NOT_AVAILABLE;
   }
 
   nsresult rv;
   nsCOMPtr<nsIImageLoadingContent> imageContent =
     do_QueryInterface(aElement, &rv);