78771 - autocomplete popup results are empty in 2nd browser instance and mail compose, r=ben, sr=hyatt

git-svn-id: svn://10.0.0.236/trunk@95837 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hewitt%netscape.com
2001-05-23 22:47:54 +00:00
parent a5fc56637a
commit 7c8331ce45
2 changed files with 20 additions and 4 deletions

View File

@@ -158,8 +158,16 @@ NS_IMETHODIMP nsOutlinerBoxObject::GetView(nsIOutlinerView * *aView)
NS_IMETHODIMP nsOutlinerBoxObject::SetView(nsIOutlinerView * aView)
{
nsIOutlinerBoxObject* body = GetOutlinerBody();
if (body)
return body->SetView(aView);
if (body) {
body->SetView(aView);
// only return if the body frame was able to store the view,
// else we need to cache the property below
nsCOMPtr<nsIOutlinerView> view;
body->GetView(getter_AddRefs(view));
if (view)
return NS_OK;
}
nsCOMPtr<nsISupports> suppView(do_QueryInterface(aView));
if (suppView)

View File

@@ -158,8 +158,16 @@ NS_IMETHODIMP nsOutlinerBoxObject::GetView(nsIOutlinerView * *aView)
NS_IMETHODIMP nsOutlinerBoxObject::SetView(nsIOutlinerView * aView)
{
nsIOutlinerBoxObject* body = GetOutlinerBody();
if (body)
return body->SetView(aView);
if (body) {
body->SetView(aView);
// only return if the body frame was able to store the view,
// else we need to cache the property below
nsCOMPtr<nsIOutlinerView> view;
body->GetView(getter_AddRefs(view));
if (view)
return NS_OK;
}
nsCOMPtr<nsISupports> suppView(do_QueryInterface(aView));
if (suppView)