Fixed a couple of cases where I missed calling the base class

git-svn-id: svn://10.0.0.236/trunk@14856 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-11-18 04:06:19 +00:00
parent 84e44d7068
commit e6e0bfb280
2 changed files with 8 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ nsBodyFrame::~nsBodyFrame()
}
/////////////////////////////////////////////////////////////////////////////
// nsIUnknown
// nsISupports
nsresult
nsBodyFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
@@ -87,7 +87,7 @@ nsBodyFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
*aInstancePtr = (void*) tmp;
return NS_OK;
}
return nsHTMLContainerFrame::QueryInterface(aIID, aInstancePtr);
return nsBlockFrame::QueryInterface(aIID, aInstancePtr);
}
/////////////////////////////////////////////////////////////////////////////
@@ -104,11 +104,12 @@ NS_IMETHODIMP
nsBodyFrame::GetAdditionalChildListName(PRInt32 aIndex,
nsIAtom*& aListName) const
{
if (aIndex < 0) {
return NS_ERROR_INVALID_ARG;
if (aIndex < 2) {
return nsBlockFrame::GetAdditionalChildListName(aIndex, aListName);
}
nsIAtom* atom = nsnull;
if (0 == aIndex) {
if (2 == aIndex) {
atom = gAbsoluteAtom;
NS_ADDREF(atom);
}