Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag

This commit is contained in:
dbaron%dbaron.org 2003-01-08 21:19:10 +00:00
parent 3ea0dc57d4
commit 14c5b6b776
56 changed files with 1 additions and 75 deletions

View File

@ -1272,8 +1272,6 @@ nsCSSFrameConstructor::nsCSSFrameConstructor(void)
mDocElementContainingBlock(nsnull),
mGfxScrollFrame(nsnull)
{
NS_INIT_ISUPPORTS();
#ifdef DEBUG
static PRBool gFirstTime = PR_TRUE;
if (gFirstTime) {

View File

@ -57,7 +57,6 @@ nsFrameContentIterator::nsFrameContentIterator(nsIPresContext* aPresContext,
nsIFrame* aFrame)
: mPresContext(aPresContext), mParentFrame(aFrame), mIsDone(PR_FALSE)
{
NS_INIT_ISUPPORTS();
First();
}

View File

@ -454,7 +454,6 @@ NS_NewFrameManager(nsIFrameManager** aInstancePtrResult)
FrameManager::FrameManager()
{
NS_INIT_ISUPPORTS();
}
FrameManager::~FrameManager()

View File

@ -769,8 +769,6 @@ nsDummyLayoutRequest::Create(nsIRequest** aResult, nsIPresShell* aPresShell)
nsDummyLayoutRequest::nsDummyLayoutRequest(nsIPresShell* aPresShell)
{
NS_INIT_ISUPPORTS();
if (gRefCnt++ == 0) {
nsresult rv;
rv = NS_NewURI(&gURI, "about:layout-dummy-request", nsnull);
@ -1519,7 +1517,6 @@ PresShell::PresShell():
mEnablePrefStyleSheet(PR_TRUE),
mScrollingEnabled(PR_TRUE)
{
NS_INIT_ISUPPORTS();
#ifdef MOZ_REFLOW_PERF
mReflowCountMgr = new ReflowCountMgr();
mReflowCountMgr->SetPresContext(mPresContext);
@ -7218,7 +7215,6 @@ NS_IMPL_ISUPPORTS2(PresShellViewEventListener, nsIScrollPositionListener, nsICom
PresShellViewEventListener::PresShellViewEventListener()
{
NS_INIT_ISUPPORTS();
mPresShell = 0;
mWasVisible = PR_FALSE;
mCallCount = 0;

View File

@ -140,7 +140,6 @@ class nsComboButtonListener: public nsIDOMMouseListener
nsComboButtonListener(nsComboboxControlFrame* aCombobox)
{
mComboBox = aCombobox;
NS_INIT_ISUPPORTS();
}
virtual ~nsComboButtonListener() {}

View File

@ -252,7 +252,6 @@ public:
: mPresContext(nsnull), mDelay(0), mHasBeenNotified(PR_FALSE),
mItemsAdded(PR_FALSE), mItemsRemoved(PR_FALSE), mItemsInxSet(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
virtual ~nsSelectUpdateTimer();
@ -3631,7 +3630,6 @@ NS_IMPL_RELEASE(nsListEventListener)
nsListEventListener::nsListEventListener()
{
NS_INIT_ISUPPORTS();
}
nsListEventListener::~nsListEventListener()

View File

@ -221,7 +221,6 @@ nsTextInputListener::nsTextInputListener()
, mHadUndoItems(PR_FALSE)
, mHadRedoItems(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
nsTextInputListener::~nsTextInputListener()
@ -509,7 +508,6 @@ NS_IMPL_ISUPPORTS3(nsTextInputSelectionImpl, nsISelectionController, nsISupports
nsTextInputSelectionImpl::nsTextInputSelectionImpl(nsIFrameSelection *aSel, nsIPresShell *aShell, nsIContent *aLimiter)
{
NS_INIT_ISUPPORTS();
if (aSel && aShell)
{
mFrameSelection = aSel;//we are the owner now!

View File

@ -1841,7 +1841,6 @@ NS_IMPL_ISUPPORTS2(nsBulletListener, imgIDecoderObserver, imgIContainerObserver)
nsBulletListener::nsBulletListener() :
mFrame(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsBulletListener::~nsBulletListener()

View File

@ -254,7 +254,6 @@ NS_IMPL_ISUPPORTS1(SelectionImageService, nsISelectionImageService)
SelectionImageService::SelectionImageService()
{
NS_INIT_ISUPPORTS();
}
SelectionImageService::~SelectionImageService()

View File

@ -1347,8 +1347,6 @@ nsHTMLFrameInnerFrame::GetDesiredSize(nsIPresContext* aPresContext,
*****************************************************************************/
FrameLoadingInfo::FrameLoadingInfo(const nsSize& aSize)
{
NS_INIT_ISUPPORTS();
mFrameSize = aSize;
}

View File

@ -905,7 +905,6 @@ nsGfxScrollFrameInner::nsGfxScrollFrameInner(nsGfxScrollFrame* aOuter):mHScrollb
mHasVerticalScrollbar(PR_FALSE),
mHasHorizontalScrollbar(PR_FALSE)
{
NS_INIT_ISUPPORTS();
mOuter = aOuter;
mMaxElementSize.width = 0;
mMaxElementSize.height = 0;

View File

@ -2313,7 +2313,6 @@ NS_IMPL_ISUPPORTS2(nsImageListener, imgIDecoderObserver, imgIContainerObserver)
nsImageListener::nsImageListener(nsImageFrame *aFrame) :
mFrame(aFrame)
{
NS_INIT_ISUPPORTS();
}
nsImageListener::~nsImageListener()

View File

@ -756,7 +756,6 @@ void CircleArea::GetRect(nsIPresContext* aCX, nsRect& aRect)
nsImageMap::nsImageMap()
{
NS_INIT_ISUPPORTS();
mDocument = nsnull;
mContainsBlockContents = PR_FALSE;
}

View File

@ -552,7 +552,6 @@ static nsLineBox* gDummyLines[1];
nsLineIterator::nsLineIterator()
{
NS_INIT_ISUPPORTS();
mLines = gDummyLines;
mNumLines = 0;
mIndex = 0;

View File

@ -2057,7 +2057,6 @@ NS_NewObjectFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame)
nsPluginDOMContextMenuListener::nsPluginDOMContextMenuListener()
{
NS_INIT_ISUPPORTS();
}
nsPluginDOMContextMenuListener::~nsPluginDOMContextMenuListener()
@ -2114,8 +2113,6 @@ nsresult nsPluginDOMContextMenuListener::Destroy(nsObjectFrame *aFrame)
nsPluginInstanceOwner::nsPluginInstanceOwner()
{
NS_INIT_ISUPPORTS();
// create nsPluginNativeWindow object, it is derived from nsPluginWindow
// struct and allows to manipulate native window procedure
nsCOMPtr<nsIPluginHost> ph = do_GetService(kCPluginManagerCID);

View File

@ -261,7 +261,6 @@ static PRTime gLastTick;
nsBlinkTimer::nsBlinkTimer()
{
NS_INIT_ISUPPORTS();
}
nsBlinkTimer::~nsBlinkTimer()

View File

@ -1841,7 +1841,6 @@ NS_IMPL_ISUPPORTS2(nsBulletListener, imgIDecoderObserver, imgIContainerObserver)
nsBulletListener::nsBulletListener() :
mFrame(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsBulletListener::~nsBulletListener()

View File

@ -254,7 +254,6 @@ NS_IMPL_ISUPPORTS1(SelectionImageService, nsISelectionImageService)
SelectionImageService::SelectionImageService()
{
NS_INIT_ISUPPORTS();
}
SelectionImageService::~SelectionImageService()

View File

@ -454,7 +454,6 @@ NS_NewFrameManager(nsIFrameManager** aInstancePtrResult)
FrameManager::FrameManager()
{
NS_INIT_ISUPPORTS();
}
FrameManager::~FrameManager()

View File

@ -905,7 +905,6 @@ nsGfxScrollFrameInner::nsGfxScrollFrameInner(nsGfxScrollFrame* aOuter):mHScrollb
mHasVerticalScrollbar(PR_FALSE),
mHasHorizontalScrollbar(PR_FALSE)
{
NS_INIT_ISUPPORTS();
mOuter = aOuter;
mMaxElementSize.width = 0;
mMaxElementSize.height = 0;

View File

@ -2313,7 +2313,6 @@ NS_IMPL_ISUPPORTS2(nsImageListener, imgIDecoderObserver, imgIContainerObserver)
nsImageListener::nsImageListener(nsImageFrame *aFrame) :
mFrame(aFrame)
{
NS_INIT_ISUPPORTS();
}
nsImageListener::~nsImageListener()

View File

@ -756,7 +756,6 @@ void CircleArea::GetRect(nsIPresContext* aCX, nsRect& aRect)
nsImageMap::nsImageMap()
{
NS_INIT_ISUPPORTS();
mDocument = nsnull;
mContainsBlockContents = PR_FALSE;
}

View File

@ -552,7 +552,6 @@ static nsLineBox* gDummyLines[1];
nsLineIterator::nsLineIterator()
{
NS_INIT_ISUPPORTS();
mLines = gDummyLines;
mNumLines = 0;
mIndex = 0;

View File

@ -2057,7 +2057,6 @@ NS_NewObjectFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame)
nsPluginDOMContextMenuListener::nsPluginDOMContextMenuListener()
{
NS_INIT_ISUPPORTS();
}
nsPluginDOMContextMenuListener::~nsPluginDOMContextMenuListener()
@ -2114,8 +2113,6 @@ nsresult nsPluginDOMContextMenuListener::Destroy(nsObjectFrame *aFrame)
nsPluginInstanceOwner::nsPluginInstanceOwner()
{
NS_INIT_ISUPPORTS();
// create nsPluginNativeWindow object, it is derived from nsPluginWindow
// struct and allows to manipulate native window procedure
nsCOMPtr<nsIPluginHost> ph = do_GetService(kCPluginManagerCID);

View File

@ -769,8 +769,6 @@ nsDummyLayoutRequest::Create(nsIRequest** aResult, nsIPresShell* aPresShell)
nsDummyLayoutRequest::nsDummyLayoutRequest(nsIPresShell* aPresShell)
{
NS_INIT_ISUPPORTS();
if (gRefCnt++ == 0) {
nsresult rv;
rv = NS_NewURI(&gURI, "about:layout-dummy-request", nsnull);
@ -1519,7 +1517,6 @@ PresShell::PresShell():
mEnablePrefStyleSheet(PR_TRUE),
mScrollingEnabled(PR_TRUE)
{
NS_INIT_ISUPPORTS();
#ifdef MOZ_REFLOW_PERF
mReflowCountMgr = new ReflowCountMgr();
mReflowCountMgr->SetPresContext(mPresContext);
@ -7218,7 +7215,6 @@ NS_IMPL_ISUPPORTS2(PresShellViewEventListener, nsIScrollPositionListener, nsICom
PresShellViewEventListener::PresShellViewEventListener()
{
NS_INIT_ISUPPORTS();
mPresShell = 0;
mWasVisible = PR_FALSE;
mCallCount = 0;

View File

@ -261,7 +261,6 @@ static PRTime gLastTick;
nsBlinkTimer::nsBlinkTimer()
{
NS_INIT_ISUPPORTS();
}
nsBlinkTimer::~nsBlinkTimer()

View File

@ -1347,8 +1347,6 @@ nsHTMLFrameInnerFrame::GetDesiredSize(nsIPresContext* aPresContext,
*****************************************************************************/
FrameLoadingInfo::FrameLoadingInfo(const nsSize& aSize)
{
NS_INIT_ISUPPORTS();
mFrameSize = aSize;
}

View File

@ -140,7 +140,6 @@ class nsComboButtonListener: public nsIDOMMouseListener
nsComboButtonListener(nsComboboxControlFrame* aCombobox)
{
mComboBox = aCombobox;
NS_INIT_ISUPPORTS();
}
virtual ~nsComboButtonListener() {}

View File

@ -252,7 +252,6 @@ public:
: mPresContext(nsnull), mDelay(0), mHasBeenNotified(PR_FALSE),
mItemsAdded(PR_FALSE), mItemsRemoved(PR_FALSE), mItemsInxSet(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
virtual ~nsSelectUpdateTimer();
@ -3631,7 +3630,6 @@ NS_IMPL_RELEASE(nsListEventListener)
nsListEventListener::nsListEventListener()
{
NS_INIT_ISUPPORTS();
}
nsListEventListener::~nsListEventListener()

View File

@ -221,7 +221,6 @@ nsTextInputListener::nsTextInputListener()
, mHadUndoItems(PR_FALSE)
, mHadRedoItems(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
nsTextInputListener::~nsTextInputListener()
@ -509,7 +508,6 @@ NS_IMPL_ISUPPORTS3(nsTextInputSelectionImpl, nsISelectionController, nsISupports
nsTextInputSelectionImpl::nsTextInputSelectionImpl(nsIFrameSelection *aSel, nsIPresShell *aShell, nsIContent *aLimiter)
{
NS_INIT_ISUPPORTS();
if (aSel && aShell)
{
mFrameSelection = aSel;//we are the owner now!

View File

@ -1272,8 +1272,6 @@ nsCSSFrameConstructor::nsCSSFrameConstructor(void)
mDocElementContainingBlock(nsnull),
mGfxScrollFrame(nsnull)
{
NS_INIT_ISUPPORTS();
#ifdef DEBUG
static PRBool gFirstTime = PR_TRUE;
if (gFirstTime) {

View File

@ -57,7 +57,6 @@ nsFrameContentIterator::nsFrameContentIterator(nsIPresContext* aPresContext,
nsIFrame* aFrame)
: mPresContext(aPresContext), mParentFrame(aFrame), mIsDone(PR_FALSE)
{
NS_INIT_ISUPPORTS();
First();
}

View File

@ -676,7 +676,6 @@ public:
nsGlyphTableList()
{
MOZ_COUNT_CTOR(nsGlyphTableList);
NS_INIT_ISUPPORTS();
mDefaultCount = 0;
}

View File

@ -57,7 +57,6 @@
nsBoxLayout::nsBoxLayout()
{
NS_INIT_ISUPPORTS();
}
void

View File

@ -83,7 +83,6 @@ NS_IMPL_RELEASE(nsBoxObject)
nsBoxObject::nsBoxObject(void)
:mContent(nsnull), mPresShell(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsBoxObject::~nsBoxObject(void)

View File

@ -77,7 +77,6 @@ nsBrowserBoxObject::QueryInterface(REFNSIID iid, void** aResult)
nsBrowserBoxObject::nsBrowserBoxObject()
:mSrcURL(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsBrowserBoxObject::~nsBrowserBoxObject()

View File

@ -69,7 +69,6 @@ nsEditorBoxObject::SetDocument(nsIDocument* aDocument)
nsEditorBoxObject::nsEditorBoxObject()
{
NS_INIT_ISUPPORTS();
}
nsEditorBoxObject::~nsEditorBoxObject()

View File

@ -76,7 +76,6 @@ nsIFrameBoxObject::QueryInterface(REFNSIID iid, void** aResult)
nsIFrameBoxObject::nsIFrameBoxObject()
{
NS_INIT_ISUPPORTS();
}
nsIFrameBoxObject::~nsIFrameBoxObject()

View File

@ -815,7 +815,6 @@ NS_IMPL_ISUPPORTS2(nsImageBoxListener, imgIDecoderObserver, imgIContainerObserve
nsImageBoxListener::nsImageBoxListener()
{
NS_INIT_ISUPPORTS();
}
nsImageBoxListener::~nsImageBoxListener()

View File

@ -115,7 +115,6 @@ public:
nsListScrollSmoother::nsListScrollSmoother(nsListBoxBodyFrame* aOuter)
{
NS_INIT_ISUPPORTS();
mDelta = 0;
mOuter = aOuter;
}

View File

@ -83,7 +83,6 @@ nsListBoxObject::QueryInterface(REFNSIID iid, void** aResult)
nsListBoxObject::nsListBoxObject()
{
NS_INIT_ISUPPORTS();
}
nsListBoxObject::~nsListBoxObject()

View File

@ -85,7 +85,6 @@ PRBool nsMenuBarListener::mAccessKeyFocuses = PR_FALSE;
nsMenuBarListener::nsMenuBarListener(nsMenuBarFrame* aMenuBar)
:mAccessKeyDown(PR_FALSE)
{
NS_INIT_ISUPPORTS();
mMenuBarFrame = aMenuBar;
}

View File

@ -75,7 +75,6 @@ nsMenuBoxObject::QueryInterface(REFNSIID iid, void** aResult)
nsMenuBoxObject::nsMenuBoxObject()
{
NS_INIT_ISUPPORTS();
}
nsMenuBoxObject::~nsMenuBoxObject()

View File

@ -56,7 +56,6 @@ NS_IMPL_QUERY_INTERFACE3(nsMenuDismissalListener, nsIDOMMouseListener, nsIMenuRo
nsMenuDismissalListener::nsMenuDismissalListener() :
mEnabled(PR_TRUE)
{
NS_INIT_ISUPPORTS();
mMenuParent = nsnull;
}

View File

@ -78,7 +78,6 @@ NS_IMPL_QUERY_INTERFACE3(nsMenuListener, nsIDOMKeyListener, nsIDOMFocusListener,
nsMenuListener::nsMenuListener(nsIMenuParent* aMenuParent)
{
NS_INIT_ISUPPORTS();
mMenuParent = aMenuParent;
}

View File

@ -87,7 +87,6 @@ nsPopupBoxObject::QueryInterface(REFNSIID iid, void** aResult)
nsPopupBoxObject::nsPopupBoxObject()
{
NS_INIT_ISUPPORTS();
}
nsPopupBoxObject::~nsPopupBoxObject()

View File

@ -58,7 +58,6 @@ nsRepeatService* nsRepeatService::gInstance = nsnull;
nsRepeatService::nsRepeatService()
: mFirstCall(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
nsRepeatService::~nsRepeatService()

View File

@ -75,7 +75,6 @@ NS_IMPL_RELEASE_INHERITED(nsScrollBoxObject, nsBoxObject)
nsScrollBoxObject::nsScrollBoxObject()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}

View File

@ -64,7 +64,7 @@ public:
nsSliderFrame* mSlider;
nsSliderMediator(nsSliderFrame* aSlider) { mSlider = aSlider; NS_INIT_ISUPPORTS(); }
nsSliderMediator(nsSliderFrame* aSlider) { mSlider = aSlider; }
virtual ~nsSliderMediator() {}
virtual void SetSlider(nsSliderFrame* aSlider) { mSlider = aSlider; }

View File

@ -101,7 +101,6 @@ public:
nsSplitterFrameInner(nsSplitterFrame* aSplitter)
{
NS_INIT_ISUPPORTS();
mOuter = aSplitter;
mPressed = PR_FALSE;
}

View File

@ -74,7 +74,6 @@ nsXULTooltipListener::nsXULTooltipListener()
, mNeedTitletip(PR_FALSE)
, mLastTreeRow(-1)
{
NS_INIT_ISUPPORTS();
}
nsXULTooltipListener::~nsXULTooltipListener()

View File

@ -3776,7 +3776,6 @@ NS_IMPL_ISUPPORTS3(nsTreeImageListener, imgIDecoderObserver, imgIContainerObserv
nsTreeImageListener::nsTreeImageListener(nsITreeBoxObject* aTree, const PRUnichar* aColID)
{
NS_INIT_ISUPPORTS();
mTree = aTree;
mColID = aColID;
mMin = -1; // min should start out "undefined"

View File

@ -97,7 +97,6 @@ nsTreeBoxObject::InvalidatePresentationStuff()
nsTreeBoxObject::nsTreeBoxObject()
{
NS_INIT_ISUPPORTS();
}
nsTreeBoxObject::~nsTreeBoxObject()

View File

@ -159,8 +159,6 @@ nsTreeContentView::nsTreeContentView(void) :
mBoxObject(nsnull), mSelection(nsnull), mRoot(nsnull), mDocument(nsnull),
mUpdateSelection(PR_FALSE)
{
NS_INIT_ISUPPORTS();
static const size_t kBucketSizes[] = {
sizeof(Row)
};

View File

@ -254,7 +254,6 @@ struct nsTreeRange
nsTreeSelection::nsTreeSelection(nsITreeBoxObject* aTree)
{
NS_INIT_ISUPPORTS();
mTree = aTree;
mSuppressed = PR_FALSE;
mFirstRange = nsnull;

View File

@ -51,7 +51,6 @@ static NS_DEFINE_CID(kAbSync, NS_ABSYNC_SERVICE_CID);
nsAbSyncDriver::nsAbSyncDriver()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
mTransactionID = -1;