зеркало из https://github.com/mozilla/pjs.git
Fixed a couple of cases where I missed calling the base class
This commit is contained in:
Родитель
1500b9eacf
Коммит
c73b30691c
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -35,8 +35,10 @@ public:
|
|||
friend nsresult NS_NewBodyFrame(nsIContent* aContent, nsIFrame* aParent,
|
||||
nsIFrame*& aResult, PRUint32 aFlags);
|
||||
|
||||
// nsISupports
|
||||
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
|
||||
|
||||
// nsIFrame
|
||||
NS_IMETHOD DeleteFrame(nsIPresContext& aPresContext);
|
||||
|
||||
NS_IMETHOD GetAdditionalChildListName(PRInt32 aIndex,
|
||||
|
|
Загрузка…
Ссылка в новой задаче