Updated SizeOf methods to not waste space when doing a non-debug build
git-svn-id: svn://10.0.0.236/trunk@45397 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -452,13 +452,15 @@ nsAreaFrame::GetFrameName(nsString& aResult) const
|
||||
return MakeFrameName("Area", aResult);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsAreaFrame::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const
|
||||
{
|
||||
if (aResult) {
|
||||
nsBlockFrame::SizeOf(aHandler, aResult);
|
||||
*aResult += sizeof(*this) - sizeof(nsBlockFrame);
|
||||
return NS_OK;
|
||||
if (!aResult) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
nsBlockFrame::SizeOf(aHandler, aResult);
|
||||
*aResult += sizeof(*this) - sizeof(nsBlockFrame);
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user