Bug 457353, Remove nsIListBoxObject::listboxBody

r+sr=bzbarsky
This commit is contained in:
Justin Wood 2008-09-27 11:38:18 -04:00
parent ec250c005f
commit 4bdd7e393e
3 changed files with 1 additions and 20 deletions

View File

@ -41,13 +41,9 @@
interface nsIDOMElement;
[scriptable, uuid(FDE7C970-0B4E-49f4-B1EB-974AE6C96336)]
[scriptable, uuid(AA9DEF4E-2E59-412d-A6DF-B76F52167795)]
interface nsIListBoxObject : nsISupports
{
// listboxBody is always null. It's only here to avoid changing the
// interface.
readonly attribute nsIListBoxObject listboxBody;
long getRowCount();
long getNumberOfVisibleRows();
long getIndexOfFirstVisibleRow();

View File

@ -500,14 +500,6 @@ nsListBoxBodyFrame::ReflowCallbackCanceled()
///////// nsIListBoxObject ///////////////
NS_IMETHODIMP
nsListBoxBodyFrame::GetListboxBody(nsIListBoxObject * *aListboxBody)
{
*aListboxBody = this;
NS_IF_ADDREF(*aListboxBody);
return NS_OK;
}
NS_IMETHODIMP
nsListBoxBodyFrame::GetRowCount(PRInt32* aResult)
{

View File

@ -79,13 +79,6 @@ nsListBoxObject::nsListBoxObject()
//////////////////////////////////////////////////////////////////////////
//// nsIListBoxObject
NS_IMETHODIMP
nsListBoxObject::GetListboxBody(nsIListBoxObject * *aListboxBody)
{
*aListboxBody = nsnull;
return NS_OK;
}
NS_IMETHODIMP
nsListBoxObject::GetRowCount(PRInt32 *aResult)
{