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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user