void
nsListBoxObject::Clear()
{
  ClearCachedValues();

  nsBoxObject::Clear();
}
Example #2
0
void
nsTreeBoxObject::Clear()
{
  ClearCachedValues();

  // Drop the view's ref to us.
  if (mView) {
    nsCOMPtr<nsITreeSelection> sel;
    mView->GetSelection(getter_AddRefs(sel));
    if (sel)
      sel->SetTree(nsnull);
    mView->SetTree(nsnull); // Break the circular ref between the view and us.
  }
  mView = nsnull;

  nsBoxObject::Clear();
}
Example #3
0
void
ListBoxObject::Clear()
{
  ClearCachedValues();
  BoxObject::Clear();
}