зеркало из https://github.com/mozilla/gecko-dev.git
b=127042 Fix background printing.. print preview image loading. r=pavlov sr=kin a=dbaron
This commit is contained in:
Родитель
a438357dcf
Коммит
c4c909190e
|
@ -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));
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче