if (mDisplayData && !(aBits & NS_STYLE_INHERIT_DISPLAY)) mDisplayData->Destroy(aContext); if (mMarginData && !(aBits & NS_STYLE_INHERIT_MARGIN)) mMarginData->Destroy(aContext); if (mBorderData && !(aBits & NS_STYLE_INHERIT_BORDER)) mBorderData->Destroy(aContext); if (mPaddingData && !(aBits & NS_STYLE_INHERIT_PADDING)) mPaddingData->Destroy(aContext); if (mOutlineData && !(aBits & NS_STYLE_INHERIT_OUTLINE)) mOutlineData->Destroy(aContext); if (mPositionData && !(aBits & NS_STYLE_INHERIT_POSITION)) mPositionData->Destroy(aContext); if (mTableData && !(aBits & NS_STYLE_INHERIT_TABLE)) mTableData->Destroy(aContext); if (mBackgroundData && !(aBits & NS_STYLE_INHERIT_BACKGROUND)) mBackgroundData->Destroy(aContext); if (mContentData && !(aBits & NS_STYLE_INHERIT_CONTENT)) mContentData->Destroy(aContext); if (mTextData && !(aBits & NS_STYLE_INHERIT_TEXT_RESET)) mTextData->Destroy(aContext); if (mUIData && !(aBits & NS_STYLE_INHERIT_UI_RESET)) mUIData->Destroy(aContext); #ifdef INCLUDE_XUL if (mXULData && !(aBits & NS_STYLE_INHERIT_XUL)) mXULData->Destroy(aContext); #endif aContext->FreeToShell(sizeof(nsResetStyleData), this); };
if (mResetData) mResetData->Destroy(aBits, aContext); if (mInheritedData) mInheritedData->Destroy(aBits, aContext); mResetData = nsnull; mInheritedData = nsnull; }
  void Destroy(PRUint32 aBits, nsIPresContext* aContext) {    if (mDisplayData && !(aBits & NS_STYLE_INHERIT_DISPLAY))      mDisplayData->Destroy(aContext);    if (mMarginData && !(aBits & NS_STYLE_INHERIT_MARGIN))      mMarginData->Destroy(aContext);    if (mBorderData && !(aBits & NS_STYLE_INHERIT_BORDER))      mBorderData->Destroy(aContext);    if (mPaddingData && !(aBits & NS_STYLE_INHERIT_PADDING))      mPaddingData->Destroy(aContext);    if (mOutlineData && !(aBits & NS_STYLE_INHERIT_OUTLINE))      mOutlineData->Destroy(aContext);    if (mPositionData && !(aBits & NS_STYLE_INHERIT_POSITION))      mPositionData->Destroy(aContext);    if (mTableData && !(aBits & NS_STYLE_INHERIT_TABLE))      mTableData->Destroy(aContext);    if (mBackgroundData && !(aBits & NS_STYLE_INHERIT_BACKGROUND))      mBackgroundData->Destroy(aContext);    if (mContentData && !(aBits & NS_STYLE_INHERIT_CONTENT))      mContentData->Destroy(aContext);    if (mTextData && !(aBits & NS_STYLE_INHERIT_TEXT_RESET))      mTextData->Destroy(aContext);    if (mUIData && !(aBits & NS_STYLE_INHERIT_UI_RESET))      mUIData->Destroy(aContext);#ifdef INCLUDE_XUL    if (mXULData && !(aBits & NS_STYLE_INHERIT_XUL))      mXULData->Destroy(aContext);#endif    aContext->FreeToShell(sizeof(nsResetStyleData), this);  };