зеркало из https://github.com/mozilla/gecko-dev.git
Get the contentViewer from the docShell APIs instead of the webShell ones.
This commit is contained in:
Родитель
9df42ad8d6
Коммит
0766d0b302
|
@ -274,14 +274,15 @@ NS_IMETHODIMP nsAddressBook::PrintCard()
|
|||
nsresult rv = NS_ERROR_FAILURE;
|
||||
nsCOMPtr<nsIContentViewer> viewer;
|
||||
|
||||
if (!mWebShell) {
|
||||
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(mWebShell));
|
||||
if (!docShell) {
|
||||
#ifdef DEBUG_seth
|
||||
printf("can't print, there is no webshell\n");
|
||||
#endif
|
||||
return rv;
|
||||
}
|
||||
|
||||
mWebShell->GetContentViewer(getter_AddRefs(viewer));
|
||||
docShell->GetContentViewer(getter_AddRefs(viewer));
|
||||
|
||||
if (viewer)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче