b=127042 Fix background printing.. print preview image loading. r=pavlov sr=kin a=dbaron

This commit is contained in:
dcone%netscape.com 2002-02-22 05:41:27 +00:00
parent a438357dcf
commit c4c909190e
2 changed files with 2 additions and 8 deletions

View File

@ -1500,10 +1500,7 @@ nsPresContext::LoadImage(const nsString& aURL,
nsresult rv;
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(content));
if (!element) // this would seem bad(tm)
return NS_ERROR_FAILURE;
if (content) {
if (content && element) {
nsCOMPtr<nsIDocument> document;
rv = content->GetDocument(*getter_AddRefs(document));

View File

@ -1500,10 +1500,7 @@ nsPresContext::LoadImage(const nsString& aURL,
nsresult rv;
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(content));
if (!element) // this would seem bad(tm)
return NS_ERROR_FAILURE;
if (content) {
if (content && element) {
nsCOMPtr<nsIDocument> document;
rv = content->GetDocument(*getter_AddRefs(document));