зеркало из https://github.com/mozilla/gecko-dev.git
Fixed multiple mRefCnt problem.
This commit is contained in:
Родитель
66b920f8d6
Коммит
a60a14636f
|
@ -50,12 +50,6 @@ static const PRBool gsDebug = PR_FALSE;
|
|||
static const PRBool gsDebugNT = PR_FALSE;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
NS_IMPL_ADDREF(nsTableCellFrame)
|
||||
NS_IMPL_RELEASE(nsTableCellFrame)
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTableCellFrame::Init(nsIPresContext& aPresContext,
|
||||
nsIContent* aContent,
|
||||
|
@ -874,20 +868,7 @@ NS_METHOD nsTableCellFrame::DidSetStyleContext(nsIPresContext* aPresContext)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_METHOD
|
||||
nsTableCellFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
||||
{
|
||||
NS_PRECONDITION(0 != aInstancePtr, "null ptr");
|
||||
if (NULL == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
if (aIID.Equals(nsITableCellLayout::GetIID())) {
|
||||
*aInstancePtr = (void*)(nsISupports*)(nsITableCellLayout*)this;
|
||||
return NS_OK;
|
||||
}
|
||||
return nsContainerFrame::QueryInterface(aIID, aInstancePtr);
|
||||
}
|
||||
NS_IMPL_ISUPPORTS_INHERITED(nsTableCellFrame, nsHTMLContainerFrame, nsITableCellLayout)
|
||||
|
||||
/* ----- global methods ----- */
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ class nsTableCellFrame : public nsHTMLContainerFrame, nsITableCellLayout
|
|||
public:
|
||||
|
||||
// nsISupports
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
// default constructor supplied by the compiler
|
||||
|
||||
|
|
|
@ -50,12 +50,6 @@ static const PRBool gsDebug = PR_FALSE;
|
|||
static const PRBool gsDebugNT = PR_FALSE;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
NS_IMPL_ADDREF(nsTableCellFrame)
|
||||
NS_IMPL_RELEASE(nsTableCellFrame)
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTableCellFrame::Init(nsIPresContext& aPresContext,
|
||||
nsIContent* aContent,
|
||||
|
@ -874,20 +868,7 @@ NS_METHOD nsTableCellFrame::DidSetStyleContext(nsIPresContext* aPresContext)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_METHOD
|
||||
nsTableCellFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
||||
{
|
||||
NS_PRECONDITION(0 != aInstancePtr, "null ptr");
|
||||
if (NULL == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
if (aIID.Equals(nsITableCellLayout::GetIID())) {
|
||||
*aInstancePtr = (void*)(nsISupports*)(nsITableCellLayout*)this;
|
||||
return NS_OK;
|
||||
}
|
||||
return nsContainerFrame::QueryInterface(aIID, aInstancePtr);
|
||||
}
|
||||
NS_IMPL_ISUPPORTS_INHERITED(nsTableCellFrame, nsHTMLContainerFrame, nsITableCellLayout)
|
||||
|
||||
/* ----- global methods ----- */
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ class nsTableCellFrame : public nsHTMLContainerFrame, nsITableCellLayout
|
|||
public:
|
||||
|
||||
// nsISupports
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
// default constructor supplied by the compiler
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче