From 30879d2c9e4d72125416b01685b0c3f5228d241d Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Wed, 8 Jan 2003 19:24:38 +0000 Subject: [PATCH] Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag git-svn-id: svn://10.0.0.236/trunk@135991 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/calendar/libxpical/oeDateTimeImpl.cpp | 1 - .../libxpical/oeICalContainerImpl.cpp | 2 -- .../calendar/libxpical/oeICalEventImpl.cpp | 2 -- mozilla/calendar/libxpical/oeICalImpl.cpp | 4 ---- .../libxpical/oeICalStartupHandler.cpp | 1 - mozilla/calendar/libxpical/oeICalTodoImpl.cpp | 1 - mozilla/caps/src/nsAggregatePrincipal.cpp | 1 - mozilla/caps/src/nsCertificatePrincipal.cpp | 1 - mozilla/caps/src/nsCodebasePrincipal.cpp | 1 - mozilla/caps/src/nsScriptSecurityManager.cpp | 1 - mozilla/caps/src/nsSecurityManagerFactory.cpp | 1 - mozilla/caps/src/nsSystemPrincipal.cpp | 1 - .../base/src/mozSanitizingSerializer.cpp | 1 - .../base/src/nsContentAreaDragDrop.cpp | 1 - .../content/base/src/nsContentIterator.cpp | 1 - mozilla/content/base/src/nsContentList.cpp | 2 -- mozilla/content/base/src/nsContentPolicy.cpp | 1 - mozilla/content/base/src/nsDOMAttribute.cpp | 1 - .../content/base/src/nsDOMAttributeMap.cpp | 1 - mozilla/content/base/src/nsDOMBuilder.cpp | 1 - .../content/base/src/nsDOMDocumentType.cpp | 1 - mozilla/content/base/src/nsDocument.cpp | 3 --- .../content/base/src/nsDocumentEncoder.cpp | 1 - mozilla/content/base/src/nsDocumentViewer.cpp | 4 ---- mozilla/content/base/src/nsFrameLoader.cpp | 1 - .../content/base/src/nsGeneratedIterator.cpp | 1 - .../content/base/src/nsGenericDOMDataNode.cpp | 1 - .../content/base/src/nsGenericDOMNodeList.cpp | 1 - mozilla/content/base/src/nsGenericElement.cpp | 2 -- mozilla/content/base/src/nsGenericElement.h | 1 - mozilla/content/base/src/nsNodeInfo.cpp | 1 - .../content/base/src/nsNodeInfoManager.cpp | 1 - mozilla/content/base/src/nsPagePrintTimer.cpp | 1 - .../base/src/nsPlainTextSerializer.cpp | 1 - mozilla/content/base/src/nsPrintEngine.cpp | 1 - .../base/src/nsPrintPreviewListener.cpp | 1 - mozilla/content/base/src/nsRange.cpp | 2 -- .../content/base/src/nsScriptEventManager.cpp | 1 - mozilla/content/base/src/nsScriptLoader.cpp | 2 -- mozilla/content/base/src/nsSelection.cpp | 5 ----- mozilla/content/base/src/nsStyleContext.cpp | 1 - mozilla/content/base/src/nsStyleSet.cpp | 1 - .../content/base/src/nsSyncLoadService.cpp | 3 --- .../base/src/nsTextContentChangeData.cpp | 1 - mozilla/content/base/src/nsTreeWalker.cpp | 1 - .../base/src/nsXMLContentSerializer.cpp | 1 - mozilla/content/build/nsContentDLF.cpp | 1 - mozilla/content/build/nsContentHTTPStartup.h | 2 +- mozilla/content/build/nsContentModule.cpp | 2 +- mozilla/content/events/src/nsDOMEvent.cpp | 1 - .../content/events/src/nsDOMEventGroup.cpp | 1 - .../events/src/nsEventListenerManager.cpp | 1 - .../events/src/nsEventStateManager.cpp | 1 - .../content/events/src/nsPrivateTextRange.cpp | 2 -- .../html/content/src/nsAttributeContent.cpp | 1 - .../html/content/src/nsFormSubmission.cpp | 2 +- .../src/nsGenericDOMHTMLCollection.cpp | 1 - .../html/content/src/nsGenericHTMLElement.cpp | 1 - .../html/content/src/nsHTMLBodyElement.cpp | 1 - .../html/content/src/nsHTMLFormElement.cpp | 2 -- .../html/content/src/nsHTMLInputElement.cpp | 2 +- .../html/content/src/nsHTMLScriptElement.cpp | 1 - .../html/content/src/nsHTMLSelectElement.cpp | 1 - .../html/document/src/nsHTMLContentSink.cpp | 3 --- .../src/nsHTMLFragmentContentSink.cpp | 1 - .../html/document/src/nsImageDocument.cpp | 1 - .../html/document/src/nsWyciwygChannel.cpp | 1 - .../document/src/nsWyciwygProtocolHandler.cpp | 1 - .../content/html/style/src/nsCSSLoader.cpp | 4 ---- .../content/html/style/src/nsCSSOMFactory.cpp | 1 - .../content/html/style/src/nsCSSParser.cpp | 1 - mozilla/content/html/style/src/nsCSSRule.cpp | 2 -- mozilla/content/html/style/src/nsCSSRules.cpp | 1 - .../content/html/style/src/nsCSSStyleRule.cpp | 1 - .../html/style/src/nsCSSStyleSheet.cpp | 6 ------ .../html/style/src/nsComputedDOMStyle.cpp | 1 - .../html/style/src/nsDOMCSSDeclaration.cpp | 1 - .../html/style/src/nsDOMCSSRGBColor.cpp | 1 - .../content/html/style/src/nsDOMCSSRect.cpp | 1 - .../html/style/src/nsDOMCSSValueList.cpp | 1 - .../html/style/src/nsHTMLAttributes.cpp | 2 -- .../html/style/src/nsHTMLCSSStyleSheet.cpp | 2 -- .../html/style/src/nsHTMLStyleSheet.cpp | 3 --- .../html/style/src/nsInspectorCSSUtils.cpp | 1 - .../html/style/src/nsROCSSPrimitiveValue.cpp | 1 - .../content/html/style/src/nsStyleUtil.cpp | 1 - .../svg/content/src/nsSVGAnimatedLength.cpp | 1 - .../svg/content/src/nsSVGAnimatedRect.cpp | 1 - .../src/nsSVGAnimatedTransformList.cpp | 1 - .../svg/content/src/nsSVGAttributes.cpp | 2 -- .../svg/content/src/nsSVGElementFactory.cpp | 1 - .../content/src/nsSVGGenericStringValue.cpp | 1 - .../content/svg/content/src/nsSVGLength.cpp | 1 - .../content/svg/content/src/nsSVGMatrix.cpp | 1 - .../content/svg/content/src/nsSVGPathSeg.cpp | 19 ------------------- .../svg/content/src/nsSVGPathSegList.cpp | 1 - .../content/svg/content/src/nsSVGPoint.cpp | 1 - .../svg/content/src/nsSVGPointList.cpp | 1 - mozilla/content/svg/content/src/nsSVGRect.cpp | 2 -- .../svg/content/src/nsSVGStyleValue.cpp | 1 - mozilla/layout/base/nsDocumentViewer.cpp | 4 ---- mozilla/layout/build/nsContentDLF.cpp | 1 - mozilla/layout/build/nsContentHTTPStartup.h | 2 +- mozilla/layout/generic/nsSelection.cpp | 5 ----- mozilla/layout/printing/nsPagePrintTimer.cpp | 1 - mozilla/layout/printing/nsPrintEngine.cpp | 1 - .../printing/nsPrintPreviewListener.cpp | 1 - mozilla/layout/style/nsCSSLoader.cpp | 4 ---- mozilla/layout/style/nsCSSOMFactory.cpp | 1 - mozilla/layout/style/nsCSSParser.cpp | 1 - mozilla/layout/style/nsCSSRule.cpp | 2 -- mozilla/layout/style/nsCSSRules.cpp | 1 - mozilla/layout/style/nsCSSStyleRule.cpp | 1 - mozilla/layout/style/nsCSSStyleSheet.cpp | 6 ------ mozilla/layout/style/nsComputedDOMStyle.cpp | 1 - mozilla/layout/style/nsDOMCSSDeclaration.cpp | 1 - mozilla/layout/style/nsDOMCSSRGBColor.cpp | 1 - mozilla/layout/style/nsDOMCSSRect.cpp | 1 - mozilla/layout/style/nsDOMCSSValueList.cpp | 1 - mozilla/layout/style/nsHTMLCSSStyleSheet.cpp | 2 -- mozilla/layout/style/nsHTMLStyleSheet.cpp | 3 --- mozilla/layout/style/nsInspectorCSSUtils.cpp | 1 - .../layout/style/nsROCSSPrimitiveValue.cpp | 1 - mozilla/layout/style/nsStyleContext.cpp | 1 - mozilla/layout/style/nsStyleSet.cpp | 1 - mozilla/layout/style/nsStyleUtil.cpp | 1 - 126 files changed, 5 insertions(+), 202 deletions(-) diff --git a/mozilla/calendar/libxpical/oeDateTimeImpl.cpp b/mozilla/calendar/libxpical/oeDateTimeImpl.cpp index c3b36db747e..4cf9d00c3c6 100644 --- a/mozilla/calendar/libxpical/oeDateTimeImpl.cpp +++ b/mozilla/calendar/libxpical/oeDateTimeImpl.cpp @@ -66,7 +66,6 @@ NS_NewDateTime( oeIDateTime** inst ) oeDateTimeImpl::oeDateTimeImpl() { - NS_INIT_ISUPPORTS(); /* member initializers and constructor code */ m_datetime = icaltime_null_time(); } diff --git a/mozilla/calendar/libxpical/oeICalContainerImpl.cpp b/mozilla/calendar/libxpical/oeICalContainerImpl.cpp index f3a1ad7f645..51cdf9f8c47 100644 --- a/mozilla/calendar/libxpical/oeICalContainerImpl.cpp +++ b/mozilla/calendar/libxpical/oeICalContainerImpl.cpp @@ -46,7 +46,6 @@ oeICalContainerImpl::oeICalContainerImpl() #ifdef ICAL_DEBUG printf( "oeICalContainerImpl::oeICalContainerImpl()\n" ); #endif - NS_INIT_ISUPPORTS(); m_batchMode = false; @@ -1326,7 +1325,6 @@ NS_IMPL_ISUPPORTS1(oeFilterDateTime, oeIDateTime) oeFilterDateTime::oeFilterDateTime() { - NS_INIT_ISUPPORTS(); m_datetime = icaltime_null_time(); } diff --git a/mozilla/calendar/libxpical/oeICalEventImpl.cpp b/mozilla/calendar/libxpical/oeICalEventImpl.cpp index a7d3c8e7a36..f73aef98a25 100644 --- a/mozilla/calendar/libxpical/oeICalEventImpl.cpp +++ b/mozilla/calendar/libxpical/oeICalEventImpl.cpp @@ -222,7 +222,6 @@ oeICalEventImpl::oeICalEventImpl() #ifdef ICAL_DEBUG printf( "oeICalEventImpl::oeICalEventImpl(): %d\n", ++gEventCount ); #endif - NS_INIT_ISUPPORTS(); /* member initializers and constructor code */ nsresult rv; if( NS_FAILED( rv = NS_NewDateTime((oeIDateTime**) &m_start ))) { @@ -2517,7 +2516,6 @@ oeICalEventDisplayImpl::oeICalEventDisplayImpl( oeIICalEvent* event ) #ifdef ICAL_DEBUG_ALL printf( "oeICalEventDisplayImpl::oeICalEventDisplayImpl(): %d\n", ++gEventDisplayCount ); #endif - NS_INIT_ISUPPORTS(); nsresult rv; if( event == nsnull ) { mEvent = do_CreateInstance(OE_ICALEVENTDISPLAY_CONTRACTID, &rv); diff --git a/mozilla/calendar/libxpical/oeICalImpl.cpp b/mozilla/calendar/libxpical/oeICalImpl.cpp index a996ab81e3c..dce20930dfe 100644 --- a/mozilla/calendar/libxpical/oeICalImpl.cpp +++ b/mozilla/calendar/libxpical/oeICalImpl.cpp @@ -95,7 +95,6 @@ oeEventEnumerator::oeEventEnumerator( ) : mCurrentIndex( 0 ) { - NS_INIT_ISUPPORTS(); } oeEventEnumerator::~oeEventEnumerator() @@ -151,7 +150,6 @@ oeDateEnumerator::oeDateEnumerator( ) : mCurrentIndex( 0 ) { - NS_INIT_ISUPPORTS(); } oeDateEnumerator::~oeDateEnumerator() @@ -237,7 +235,6 @@ oeICalImpl::oeICalImpl() #ifdef ICAL_DEBUG printf( "oeICalImpl::oeICalImpl()\n" ); #endif - NS_INIT_ISUPPORTS(); m_batchMode = false; @@ -2046,7 +2043,6 @@ NS_IMPL_ISUPPORTS1(oeICalFilter, oeIICalTodo) oeICalFilter::oeICalFilter() { - NS_INIT_ISUPPORTS(); nsresult rv; if( NS_FAILED( rv = NS_NewDateTime((oeIDateTime**) &m_completed ))) { diff --git a/mozilla/calendar/libxpical/oeICalStartupHandler.cpp b/mozilla/calendar/libxpical/oeICalStartupHandler.cpp index ec06bd06b91..07a43e01026 100644 --- a/mozilla/calendar/libxpical/oeICalStartupHandler.cpp +++ b/mozilla/calendar/libxpical/oeICalStartupHandler.cpp @@ -41,7 +41,6 @@ NS_IMPL_ISUPPORTS1(oeICalStartupHandler, nsICmdLineHandler); oeICalStartupHandler::oeICalStartupHandler() { - NS_INIT_ISUPPORTS(); } oeICalStartupHandler::~oeICalStartupHandler() diff --git a/mozilla/calendar/libxpical/oeICalTodoImpl.cpp b/mozilla/calendar/libxpical/oeICalTodoImpl.cpp index d5719d21bbd..56765b1bfe7 100644 --- a/mozilla/calendar/libxpical/oeICalTodoImpl.cpp +++ b/mozilla/calendar/libxpical/oeICalTodoImpl.cpp @@ -79,7 +79,6 @@ oeICalTodoImpl::oeICalTodoImpl() #ifdef ICAL_DEBUG printf( "oeICalTodoImpl::oeICalTodoImpl()\n" ); #endif - NS_INIT_ISUPPORTS(); mEvent = new oeICalEventImpl(); diff --git a/mozilla/caps/src/nsAggregatePrincipal.cpp b/mozilla/caps/src/nsAggregatePrincipal.cpp index 12712f32ec4..e92bbc1d4e9 100644 --- a/mozilla/caps/src/nsAggregatePrincipal.cpp +++ b/mozilla/caps/src/nsAggregatePrincipal.cpp @@ -444,7 +444,6 @@ nsAggregatePrincipal::Write(nsIObjectOutputStream* aStream) nsAggregatePrincipal::nsAggregatePrincipal() : mCodebaseWasChanged(PR_FALSE) { - NS_INIT_ISUPPORTS(); } nsAggregatePrincipal::~nsAggregatePrincipal() diff --git a/mozilla/caps/src/nsCertificatePrincipal.cpp b/mozilla/caps/src/nsCertificatePrincipal.cpp index bf51ff2fcea..b8fefcecf58 100644 --- a/mozilla/caps/src/nsCertificatePrincipal.cpp +++ b/mozilla/caps/src/nsCertificatePrincipal.cpp @@ -220,7 +220,6 @@ nsCertificatePrincipal::Init(const char* aCertificateID) nsCertificatePrincipal::nsCertificatePrincipal() { - NS_INIT_ISUPPORTS(); } nsCertificatePrincipal::~nsCertificatePrincipal() diff --git a/mozilla/caps/src/nsCodebasePrincipal.cpp b/mozilla/caps/src/nsCodebasePrincipal.cpp index f1671f83f31..89d9dc8011a 100644 --- a/mozilla/caps/src/nsCodebasePrincipal.cpp +++ b/mozilla/caps/src/nsCodebasePrincipal.cpp @@ -239,7 +239,6 @@ nsCodebasePrincipal::Write(nsIObjectOutputStream* aStream) nsCodebasePrincipal::nsCodebasePrincipal() : mTrusted(PR_FALSE) { - NS_INIT_ISUPPORTS(); } nsresult diff --git a/mozilla/caps/src/nsScriptSecurityManager.cpp b/mozilla/caps/src/nsScriptSecurityManager.cpp index 197785edb6a..bfe8f6a0540 100644 --- a/mozilla/caps/src/nsScriptSecurityManager.cpp +++ b/mozilla/caps/src/nsScriptSecurityManager.cpp @@ -2529,7 +2529,6 @@ nsScriptSecurityManager::nsScriptSecurityManager(void) { NS_ASSERTION(sizeof(long) == sizeof(void*), "long and void* have different lengths on this platform. This may cause a security failure."); - NS_INIT_ISUPPORTS(); JSContext* cx = GetSafeJSContext(); if (sCallerID == JSVAL_VOID) diff --git a/mozilla/caps/src/nsSecurityManagerFactory.cpp b/mozilla/caps/src/nsSecurityManagerFactory.cpp index ac6d866a0a7..161f7f283b4 100644 --- a/mozilla/caps/src/nsSecurityManagerFactory.cpp +++ b/mozilla/caps/src/nsSecurityManagerFactory.cpp @@ -77,7 +77,6 @@ public: nsSecurityNameSet::nsSecurityNameSet() { - NS_INIT_ISUPPORTS(); } nsSecurityNameSet::~nsSecurityNameSet() diff --git a/mozilla/caps/src/nsSystemPrincipal.cpp b/mozilla/caps/src/nsSystemPrincipal.cpp index 6384085cebc..c5095037fc8 100644 --- a/mozilla/caps/src/nsSystemPrincipal.cpp +++ b/mozilla/caps/src/nsSystemPrincipal.cpp @@ -168,7 +168,6 @@ nsSystemPrincipal::Write(nsIObjectOutputStream* aStream) nsSystemPrincipal::nsSystemPrincipal() { - NS_INIT_ISUPPORTS(); } NS_IMETHODIMP diff --git a/mozilla/content/base/src/mozSanitizingSerializer.cpp b/mozilla/content/base/src/mozSanitizingSerializer.cpp index 9c84516439d..dcd920c2ed1 100644 --- a/mozilla/content/base/src/mozSanitizingSerializer.cpp +++ b/mozilla/content/base/src/mozSanitizingSerializer.cpp @@ -88,7 +88,6 @@ nsresult NS_NewSanitizingHTMLSerializer(nsIContentSerializer** aSerializer) mozSanitizingHTMLSerializer::mozSanitizingHTMLSerializer() : mAllowedTags(30) // Just some initial buffer size { - NS_INIT_ISUPPORTS(); mOutputString = nsnull; } diff --git a/mozilla/content/base/src/nsContentAreaDragDrop.cpp b/mozilla/content/base/src/nsContentAreaDragDrop.cpp index 319b2f19c45..2e31bd62a8c 100644 --- a/mozilla/content/base/src/nsContentAreaDragDrop.cpp +++ b/mozilla/content/base/src/nsContentAreaDragDrop.cpp @@ -116,7 +116,6 @@ NS_INTERFACE_MAP_END nsContentAreaDragDrop::nsContentAreaDragDrop ( ) : mListenerInstalled(PR_FALSE), mNavigator(nsnull), mOverrideDrag(nsnull), mOverrideDrop(nsnull) { - NS_INIT_ISUPPORTS(); } // ctor diff --git a/mozilla/content/base/src/nsContentIterator.cpp b/mozilla/content/base/src/nsContentIterator.cpp index e82ac646bad..5877ef5aac8 100644 --- a/mozilla/content/base/src/nsContentIterator.cpp +++ b/mozilla/content/base/src/nsContentIterator.cpp @@ -362,7 +362,6 @@ nsContentIterator::nsContentIterator() : // don't need to explicitly initialize |nsCOMPtr|s, they will automatically be NULL mCachedIndex(0), mIsDone(PR_FALSE), mPre(PR_FALSE) { - NS_INIT_ISUPPORTS(); } diff --git a/mozilla/content/base/src/nsContentList.cpp b/mozilla/content/base/src/nsContentList.cpp index 604848b6d97..40f81ba8c54 100644 --- a/mozilla/content/base/src/nsContentList.cpp +++ b/mozilla/content/base/src/nsContentList.cpp @@ -60,7 +60,6 @@ static nsIContentList *gCachedContentList; nsBaseContentList::nsBaseContentList() { - NS_INIT_ISUPPORTS(); } nsBaseContentList::~nsBaseContentList() @@ -223,7 +222,6 @@ nsFormContentList::nsFormContentList(nsIDOMHTMLFormElement *aForm, nsBaseContentList& aContentList) : nsBaseContentList() { - NS_INIT_ISUPPORTS(); // move elements that belong to mForm into this content list diff --git a/mozilla/content/base/src/nsContentPolicy.cpp b/mozilla/content/base/src/nsContentPolicy.cpp index dfd86bbf7f7..4d67d7078ab 100644 --- a/mozilla/content/base/src/nsContentPolicy.cpp +++ b/mozilla/content/base/src/nsContentPolicy.cpp @@ -47,7 +47,6 @@ NS_NewContentPolicy(nsIContentPolicy **aResult) */ nsContentPolicy::nsContentPolicy() { - NS_INIT_ISUPPORTS(); nsresult rv; nsCOMPtr catman = do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv); diff --git a/mozilla/content/base/src/nsDOMAttribute.cpp b/mozilla/content/base/src/nsDOMAttribute.cpp index f4434cbccf2..aba59544c8e 100644 --- a/mozilla/content/base/src/nsDOMAttribute.cpp +++ b/mozilla/content/base/src/nsDOMAttribute.cpp @@ -55,7 +55,6 @@ nsDOMAttribute::nsDOMAttribute(nsIContent* aContent, nsINodeInfo *aNodeInfo, { NS_ABORT_IF_FALSE(mNodeInfo, "We must get a nodeinfo here!"); - NS_INIT_ISUPPORTS(); // We don't add a reference to our content. It will tell us // to drop our reference when it goes away. diff --git a/mozilla/content/base/src/nsDOMAttributeMap.cpp b/mozilla/content/base/src/nsDOMAttributeMap.cpp index f8bf9acacd7..701086eb108 100644 --- a/mozilla/content/base/src/nsDOMAttributeMap.cpp +++ b/mozilla/content/base/src/nsDOMAttributeMap.cpp @@ -49,7 +49,6 @@ nsDOMAttributeMap::nsDOMAttributeMap(nsIContent* aContent) : mContent(aContent) { - NS_INIT_ISUPPORTS(); // We don't add a reference to our content. If it goes away, // we'll be told to drop our reference } diff --git a/mozilla/content/base/src/nsDOMBuilder.cpp b/mozilla/content/base/src/nsDOMBuilder.cpp index 556403a2a39..c668fb34355 100644 --- a/mozilla/content/base/src/nsDOMBuilder.cpp +++ b/mozilla/content/base/src/nsDOMBuilder.cpp @@ -63,7 +63,6 @@ nsDOMBuilder::nsDOMBuilder(PRUint16 aMode, const nsAString& aSchemaType, nsIDOMDOMImplementation* aDOMImplementation) { - NS_INIT_ISUPPORTS(); mDOMImplementation = aDOMImplementation; } diff --git a/mozilla/content/base/src/nsDOMDocumentType.cpp b/mozilla/content/base/src/nsDOMDocumentType.cpp index 1d4ccbeedf1..c4fd07cec24 100644 --- a/mozilla/content/base/src/nsDOMDocumentType.cpp +++ b/mozilla/content/base/src/nsDOMDocumentType.cpp @@ -77,7 +77,6 @@ nsDOMDocumentType::nsDOMDocumentType(const nsAString& aName, mSystemId(aSystemId), mInternalSubset(aInternalSubset) { - NS_INIT_ISUPPORTS(); mEntities = aEntities; mNotations = aNotations; diff --git a/mozilla/content/base/src/nsDocument.cpp b/mozilla/content/base/src/nsDocument.cpp index 1cc672a70d2..a8c3b3b78a6 100644 --- a/mozilla/content/base/src/nsDocument.cpp +++ b/mozilla/content/base/src/nsDocument.cpp @@ -164,7 +164,6 @@ struct nsRadioGroupStruct nsDOMStyleSheetList::nsDOMStyleSheetList(nsIDocument *aDocument) { - NS_INIT_ISUPPORTS(); mLength = -1; // Not reference counted to avoid circular references. // The document will tell us when its going away. @@ -328,7 +327,6 @@ NS_NewDOMImplementation(nsIDOMDOMImplementation** aInstancePtrResult) nsDOMImplementation::nsDOMImplementation(nsIURI* aBaseURI) { - NS_INIT_ISUPPORTS(); mBaseURI = aBaseURI; } @@ -507,7 +505,6 @@ nsDocument::nsDocument() : mSubDocuments(nsnull), mCSSLoader(nsnull), mXPathDocument(nsnull) { - NS_INIT_ISUPPORTS(); mArena = nsnull; mDocumentURL = nsnull; diff --git a/mozilla/content/base/src/nsDocumentEncoder.cpp b/mozilla/content/base/src/nsDocumentEncoder.cpp index c557cde7370..e8f00c348ab 100644 --- a/mozilla/content/base/src/nsDocumentEncoder.cpp +++ b/mozilla/content/base/src/nsDocumentEncoder.cpp @@ -182,7 +182,6 @@ NS_INTERFACE_MAP_END nsDocumentEncoder::nsDocumentEncoder() { - NS_INIT_ISUPPORTS(); mMimeType.Assign(NS_LITERAL_STRING("text/plain")); diff --git a/mozilla/content/base/src/nsDocumentViewer.cpp b/mozilla/content/base/src/nsDocumentViewer.cpp index 2ed56819333..4ffbd2dc2be 100644 --- a/mozilla/content/base/src/nsDocumentViewer.cpp +++ b/mozilla/content/base/src/nsDocumentViewer.cpp @@ -270,7 +270,6 @@ public: , mGotSelectionState(PR_FALSE) , mSelectionWasCollapsed(PR_FALSE) { - NS_INIT_ISUPPORTS(); } virtual ~nsDocViewerSelectionListener() {} @@ -493,7 +492,6 @@ NS_NewDocumentViewer(nsIDocumentViewer** aResult) DocumentViewerImpl::DocumentViewerImpl() : mIsSticky(PR_TRUE) { - NS_INIT_ISUPPORTS(); PrepareToStartLoad(); mParentWidget = nsnull; @@ -530,7 +528,6 @@ void DocumentViewerImpl::PrepareToStartLoad() DocumentViewerImpl::DocumentViewerImpl(nsIPresContext* aPresContext) : mPresContext(aPresContext), mAllowPlugins(PR_TRUE), mIsSticky(PR_TRUE) { - NS_INIT_ISUPPORTS(); mHintCharsetSource = kCharsetUninitialized; PrepareToStartLoad(); } @@ -3012,7 +3009,6 @@ NS_IMPL_ISUPPORTS1(nsDocViewerFocusListener, nsIDOMFocusListener); nsDocViewerFocusListener::nsDocViewerFocusListener() :mDocViewer(nsnull) { - NS_INIT_ISUPPORTS(); } nsDocViewerFocusListener::~nsDocViewerFocusListener(){} diff --git a/mozilla/content/base/src/nsFrameLoader.cpp b/mozilla/content/base/src/nsFrameLoader.cpp index bfaab09e21f..f0e8767a2aa 100644 --- a/mozilla/content/base/src/nsFrameLoader.cpp +++ b/mozilla/content/base/src/nsFrameLoader.cpp @@ -111,7 +111,6 @@ NS_NewFrameLoader(nsIFrameLoader **aFrameLoader) nsFrameLoader::nsFrameLoader() : mOwnerContent(nsnull) { - NS_INIT_ISUPPORTS(); } nsFrameLoader::~nsFrameLoader() diff --git a/mozilla/content/base/src/nsGeneratedIterator.cpp b/mozilla/content/base/src/nsGeneratedIterator.cpp index 8704ca6f8bd..35074fadf61 100644 --- a/mozilla/content/base/src/nsGeneratedIterator.cpp +++ b/mozilla/content/base/src/nsGeneratedIterator.cpp @@ -247,7 +247,6 @@ nsGeneratedContentIterator::nsGeneratedContentIterator() : // don't need to explicitly initialize |nsCOMPtr|s, they will automatically be NULL mIsDone(PR_FALSE) { - NS_INIT_ISUPPORTS(); } diff --git a/mozilla/content/base/src/nsGenericDOMDataNode.cpp b/mozilla/content/base/src/nsGenericDOMDataNode.cpp index e597174d5ed..096df4c4d74 100644 --- a/mozilla/content/base/src/nsGenericDOMDataNode.cpp +++ b/mozilla/content/base/src/nsGenericDOMDataNode.cpp @@ -69,7 +69,6 @@ nsGenericDOMDataNode::Shutdown() nsGenericDOMDataNode::nsGenericDOMDataNode() : mText(), mDocument(nsnull), mParentPtrBits(0) { - NS_INIT_ISUPPORTS(); } nsGenericDOMDataNode::~nsGenericDOMDataNode() diff --git a/mozilla/content/base/src/nsGenericDOMNodeList.cpp b/mozilla/content/base/src/nsGenericDOMNodeList.cpp index fd251758f0f..4dcec948d93 100644 --- a/mozilla/content/base/src/nsGenericDOMNodeList.cpp +++ b/mozilla/content/base/src/nsGenericDOMNodeList.cpp @@ -41,7 +41,6 @@ nsGenericDOMNodeList::nsGenericDOMNodeList() { - NS_INIT_ISUPPORTS(); } nsGenericDOMNodeList::~nsGenericDOMNodeList() diff --git a/mozilla/content/base/src/nsGenericElement.cpp b/mozilla/content/base/src/nsGenericElement.cpp index f7185f387c0..f5584405c2e 100644 --- a/mozilla/content/base/src/nsGenericElement.cpp +++ b/mozilla/content/base/src/nsGenericElement.cpp @@ -411,7 +411,6 @@ PRUint32 nsDOMEventRTTearoff::mCachedEventTearoffCount = 0; nsDOMEventRTTearoff::nsDOMEventRTTearoff(nsIContent *aContent) : mContent(aContent) { - NS_INIT_ISUPPORTS(); } nsDOMEventRTTearoff::~nsDOMEventRTTearoff() @@ -740,7 +739,6 @@ nsGenericElement::nsGenericElement() : mDocument(nsnull), mParent(nsnull), mNodeInfo(nsnull), mFlagsOrSlots(GENERIC_ELEMENT_DOESNT_HAVE_DOMSLOTS) { - NS_INIT_ISUPPORTS(); } nsGenericElement::~nsGenericElement() diff --git a/mozilla/content/base/src/nsGenericElement.h b/mozilla/content/base/src/nsGenericElement.h index 8cd0b8e5413..fd07bf95684 100644 --- a/mozilla/content/base/src/nsGenericElement.h +++ b/mozilla/content/base/src/nsGenericElement.h @@ -235,7 +235,6 @@ class nsNode3Tearoff : public nsIDOM3Node nsNode3Tearoff(nsIContent *aContent) : mContent(aContent) { - NS_INIT_ISUPPORTS(); } virtual ~nsNode3Tearoff() {}; diff --git a/mozilla/content/base/src/nsNodeInfo.cpp b/mozilla/content/base/src/nsNodeInfo.cpp index 488f3a7158f..1d31f5dd932 100644 --- a/mozilla/content/base/src/nsNodeInfo.cpp +++ b/mozilla/content/base/src/nsNodeInfo.cpp @@ -50,7 +50,6 @@ nsNodeInfo::nsNodeInfo() : nsINodeInfo(), mOwnerManager(nsnull) { - NS_INIT_ISUPPORTS(); } diff --git a/mozilla/content/base/src/nsNodeInfoManager.cpp b/mozilla/content/base/src/nsNodeInfoManager.cpp index 9ec0c85160e..9149290c93d 100644 --- a/mozilla/content/base/src/nsNodeInfoManager.cpp +++ b/mozilla/content/base/src/nsNodeInfoManager.cpp @@ -95,7 +95,6 @@ nsNodeInfoManager::NodeInfoInnerKeyCompare(const void *key1, const void *key2) nsNodeInfoManager::nsNodeInfoManager() : mDocument(nsnull) { - NS_INIT_ISUPPORTS(); if (gNodeManagerCount == 1 && gAnonymousNodeInfoManager) { /* diff --git a/mozilla/content/base/src/nsPagePrintTimer.cpp b/mozilla/content/base/src/nsPagePrintTimer.cpp index ba4114888c0..534c8a1bbc3 100644 --- a/mozilla/content/base/src/nsPagePrintTimer.cpp +++ b/mozilla/content/base/src/nsPagePrintTimer.cpp @@ -48,7 +48,6 @@ nsPagePrintTimer::nsPagePrintTimer() : mPrintSettings(nsnull), mDelay(0) { - NS_INIT_ISUPPORTS(); } nsPagePrintTimer::~nsPagePrintTimer() diff --git a/mozilla/content/base/src/nsPlainTextSerializer.cpp b/mozilla/content/base/src/nsPlainTextSerializer.cpp index 0bc3f9fe6a6..0dc7ca5d018 100644 --- a/mozilla/content/base/src/nsPlainTextSerializer.cpp +++ b/mozilla/content/base/src/nsPlainTextSerializer.cpp @@ -97,7 +97,6 @@ nsresult NS_NewPlainTextSerializer(nsIContentSerializer** aSerializer) nsPlainTextSerializer::nsPlainTextSerializer() : kSpace(NS_LITERAL_STRING(" ")) // Init of "constant" { - NS_INIT_ISUPPORTS(); mOutputString = nsnull; mInHead = PR_FALSE; diff --git a/mozilla/content/base/src/nsPrintEngine.cpp b/mozilla/content/base/src/nsPrintEngine.cpp index fa977b549be..89c1a7052b5 100644 --- a/mozilla/content/base/src/nsPrintEngine.cpp +++ b/mozilla/content/base/src/nsPrintEngine.cpp @@ -273,7 +273,6 @@ nsPrintEngine::nsPrintEngine() : mDebugFile(nsnull) { - NS_INIT_ISUPPORTS(); } //------------------------------------------------------- diff --git a/mozilla/content/base/src/nsPrintPreviewListener.cpp b/mozilla/content/base/src/nsPrintPreviewListener.cpp index 298c90a610d..40d2b53f649 100644 --- a/mozilla/content/base/src/nsPrintPreviewListener.cpp +++ b/mozilla/content/base/src/nsPrintPreviewListener.cpp @@ -43,7 +43,6 @@ nsPrintPreviewListener::nsPrintPreviewListener (nsIDOMEventReceiver* aEVRec) : mEventReceiver(aEVRec), mRegFlags(REG_NONE_LISTENER) { - NS_INIT_ISUPPORTS(); NS_ADDREF_THIS(); } // ctor diff --git a/mozilla/content/base/src/nsRange.cpp b/mozilla/content/base/src/nsRange.cpp index 142b4b25779..236c18ebe58 100644 --- a/mozilla/content/base/src/nsRange.cpp +++ b/mozilla/content/base/src/nsRange.cpp @@ -322,7 +322,6 @@ NS_NewRangeUtils(nsIRangeUtils** aResult) nsRangeUtils::nsRangeUtils() { - NS_INIT_ISUPPORTS(); } nsRangeUtils::~nsRangeUtils() @@ -422,7 +421,6 @@ nsRange::nsRange() : mStartParent(), mEndParent() { - NS_INIT_ISUPPORTS(); } nsRange::~nsRange() diff --git a/mozilla/content/base/src/nsScriptEventManager.cpp b/mozilla/content/base/src/nsScriptEventManager.cpp index a85eebfea84..3c5ae4b6d45 100644 --- a/mozilla/content/base/src/nsScriptEventManager.cpp +++ b/mozilla/content/base/src/nsScriptEventManager.cpp @@ -55,7 +55,6 @@ nsScriptEventManager::nsScriptEventManager(nsIDOMDocument *aDocument) { nsresult rv; - NS_INIT_ISUPPORTS(); rv = aDocument->GetElementsByTagName(NS_LITERAL_STRING("script"), getter_AddRefs(mScriptElements)); diff --git a/mozilla/content/base/src/nsScriptLoader.cpp b/mozilla/content/base/src/nsScriptLoader.cpp index fa96a4a0c4e..fd736286bd3 100644 --- a/mozilla/content/base/src/nsScriptLoader.cpp +++ b/mozilla/content/base/src/nsScriptLoader.cpp @@ -85,7 +85,6 @@ nsScriptLoadRequest::nsScriptLoadRequest(nsIDOMHTMLScriptElement* aElement, mLoading(PR_TRUE), mWasPending(PR_FALSE), mIsInline(PR_TRUE), mJSVersion(aVersionString), mLineNo(1) { - NS_INIT_ISUPPORTS(); } nsScriptLoadRequest::~nsScriptLoadRequest() @@ -125,7 +124,6 @@ nsScriptLoadRequest::FireScriptEvaluated(nsresult aResult) nsScriptLoader::nsScriptLoader() : mDocument(nsnull), mEnabled(PR_TRUE) { - NS_INIT_ISUPPORTS(); } nsScriptLoader::~nsScriptLoader() diff --git a/mozilla/content/base/src/nsSelection.cpp b/mozilla/content/base/src/nsSelection.cpp index 5c3309957bc..e3eebbe07ba 100644 --- a/mozilla/content/base/src/nsSelection.cpp +++ b/mozilla/content/base/src/nsSelection.cpp @@ -573,7 +573,6 @@ public: nsAutoScrollTimer() : mSelection(0), mView(0), mPresContext(0), mPoint(0,0), mDelay(30) { - NS_INIT_ISUPPORTS(); } virtual ~nsAutoScrollTimer() @@ -799,7 +798,6 @@ IsValidSelectionPoint(nsSelection *aFrameSel, nsIContent *aContent) nsSelectionIterator::nsSelectionIterator(nsTypedSelection *aList) :mIndex(0) { - NS_INIT_ISUPPORTS(); if (!aList) { NS_NOTREACHED("nsSelection"); @@ -947,7 +945,6 @@ nsSelectionIterator::QueryInterface(REFNSIID aIID, void** aInstancePtr) nsSelection::nsSelection() { - NS_INIT_ISUPPORTS(); PRInt32 i; for (i = 0;imControls->mNotInElements.Count(); diff --git a/mozilla/content/html/content/src/nsHTMLInputElement.cpp b/mozilla/content/html/content/src/nsHTMLInputElement.cpp index 4b4ff49bf6a..8f293296bd7 100644 --- a/mozilla/content/html/content/src/nsHTMLInputElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLInputElement.cpp @@ -2778,7 +2778,7 @@ nsHTMLInputElement::VisitGroup(nsIRadioVisitor* aVisitor) // class nsRadioVisitor : public nsIRadioVisitor { public: - nsRadioVisitor() { NS_INIT_ISUPPORTS(); } + nsRadioVisitor() { } virtual ~nsRadioVisitor() { }; NS_DECL_ISUPPORTS diff --git a/mozilla/content/html/content/src/nsHTMLScriptElement.cpp b/mozilla/content/html/content/src/nsHTMLScriptElement.cpp index 28acf6af4c1..e2f8d3d4c8b 100644 --- a/mozilla/content/html/content/src/nsHTMLScriptElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLScriptElement.cpp @@ -95,7 +95,6 @@ protected: nsHTMLScriptEventHandler::nsHTMLScriptEventHandler(nsIDOMHTMLScriptElement *aOuter) { - NS_INIT_ISUPPORTS(); // Weak reference... mOuter = aOuter; diff --git a/mozilla/content/html/content/src/nsHTMLSelectElement.cpp b/mozilla/content/html/content/src/nsHTMLSelectElement.cpp index fab0729e546..8acd186d5f9 100644 --- a/mozilla/content/html/content/src/nsHTMLSelectElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLSelectElement.cpp @@ -157,7 +157,6 @@ class nsSelectState : public nsISupports { public: nsSelectState() { - NS_INIT_ISUPPORTS(); } virtual ~nsSelectState() { diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index 37b12611233..b66dca6b960 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -709,7 +709,6 @@ DummyParserRequest::Create(nsIRequest** aResult, nsIHTMLContentSink* aSink) DummyParserRequest::DummyParserRequest(nsIHTMLContentSink* aSink) { - NS_INIT_ISUPPORTS(); if (gRefCnt++ == 0) { #ifdef DEBUG @@ -1084,7 +1083,6 @@ NS_NewHTMLElementFactory(nsIElementFactory** aInstancePtrResult) nsHTMLElementFactory::nsHTMLElementFactory() { - NS_INIT_ISUPPORTS(); } nsHTMLElementFactory::~nsHTMLElementFactory() @@ -2289,7 +2287,6 @@ HTMLContentSink::HTMLContentSink() { // Note: operator new zeros our memory - NS_INIT_ISUPPORTS(); #ifdef NS_DEBUG if (!gSinkLogModuleInfo) { diff --git a/mozilla/content/html/document/src/nsHTMLFragmentContentSink.cpp b/mozilla/content/html/document/src/nsHTMLFragmentContentSink.cpp index 69b8c483a29..619d1b1fed8 100644 --- a/mozilla/content/html/document/src/nsHTMLFragmentContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLFragmentContentSink.cpp @@ -203,7 +203,6 @@ NS_NewHTMLFragmentContentSink(nsIHTMLFragmentContentSink** aResult) nsHTMLFragmentContentSink::nsHTMLFragmentContentSink() { - NS_INIT_ISUPPORTS(); mHitSentinel = PR_FALSE; mSeenBody = PR_TRUE; mRoot = nsnull; diff --git a/mozilla/content/html/document/src/nsImageDocument.cpp b/mozilla/content/html/document/src/nsImageDocument.cpp index 6a7238f5b8e..790af353815 100644 --- a/mozilla/content/html/document/src/nsImageDocument.cpp +++ b/mozilla/content/html/document/src/nsImageDocument.cpp @@ -131,7 +131,6 @@ public: ImageListener::ImageListener(nsImageDocument* aDoc) { - NS_INIT_ISUPPORTS(); mDocument = aDoc; NS_ADDREF(aDoc); } diff --git a/mozilla/content/html/document/src/nsWyciwygChannel.cpp b/mozilla/content/html/document/src/nsWyciwygChannel.cpp index 10466bb0e3e..a4b643e8859 100644 --- a/mozilla/content/html/document/src/nsWyciwygChannel.cpp +++ b/mozilla/content/html/document/src/nsWyciwygChannel.cpp @@ -39,7 +39,6 @@ nsWyciwygChannel::nsWyciwygChannel() mLoadFlags(LOAD_NORMAL), mIsPending(PR_FALSE) { - NS_INIT_ISUPPORTS(); } nsWyciwygChannel::~nsWyciwygChannel() diff --git a/mozilla/content/html/document/src/nsWyciwygProtocolHandler.cpp b/mozilla/content/html/document/src/nsWyciwygProtocolHandler.cpp index f8e050042d6..f11a92013c9 100644 --- a/mozilla/content/html/document/src/nsWyciwygProtocolHandler.cpp +++ b/mozilla/content/html/document/src/nsWyciwygProtocolHandler.cpp @@ -32,7 +32,6 @@ static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID); nsWyciwygProtocolHandler::nsWyciwygProtocolHandler() { - NS_INIT_ISUPPORTS(); #if defined(PR_LOGGING) gWyciwygLog = PR_NewLogModule("nsWyciwygChannel"); diff --git a/mozilla/content/html/style/src/nsCSSLoader.cpp b/mozilla/content/html/style/src/nsCSSLoader.cpp index 2584092bc69..0ca04d068ba 100644 --- a/mozilla/content/html/style/src/nsCSSLoader.cpp +++ b/mozilla/content/html/style/src/nsCSSLoader.cpp @@ -467,7 +467,6 @@ SheetLoadData::SheetLoadData(CSSLoaderImpl* aLoader, mOwningElement(aOwningElement), mObserver(aObserver) { - NS_INIT_ISUPPORTS(); NS_PRECONDITION(mLoader, "Must have a loader!"); NS_ADDREF(mLoader); @@ -492,7 +491,6 @@ SheetLoadData::SheetLoadData(CSSLoaderImpl* aLoader, mOwningElement(nsnull), mObserver(aObserver) { - NS_INIT_ISUPPORTS(); NS_PRECONDITION(mLoader, "Must have a loader!"); NS_ADDREF(mLoader); @@ -523,7 +521,6 @@ SheetLoadData::SheetLoadData(CSSLoaderImpl* aLoader, mOwningElement(nsnull), mObserver(aObserver) { - NS_INIT_ISUPPORTS(); NS_PRECONDITION(mLoader, "Must have a loader!"); NS_ADDREF(mLoader); @@ -546,7 +543,6 @@ CSSLoaderImpl::CSSLoaderImpl(void) mEnabled(PR_TRUE), mCompatMode(eCompatibility_FullStandards) { - NS_INIT_ISUPPORTS(); } CSSLoaderImpl::~CSSLoaderImpl(void) diff --git a/mozilla/content/html/style/src/nsCSSOMFactory.cpp b/mozilla/content/html/style/src/nsCSSOMFactory.cpp index 749ef3be7c1..390c109818d 100644 --- a/mozilla/content/html/style/src/nsCSSOMFactory.cpp +++ b/mozilla/content/html/style/src/nsCSSOMFactory.cpp @@ -42,7 +42,6 @@ nsCSSOMFactory::nsCSSOMFactory() { - NS_INIT_ISUPPORTS(); } nsCSSOMFactory::~nsCSSOMFactory() diff --git a/mozilla/content/html/style/src/nsCSSParser.cpp b/mozilla/content/html/style/src/nsCSSParser.cpp index c624859b47d..9b556ee1295 100644 --- a/mozilla/content/html/style/src/nsCSSParser.cpp +++ b/mozilla/content/html/style/src/nsCSSParser.cpp @@ -435,7 +435,6 @@ CSSParserImpl::CSSParserImpl() mGroupStack(nsnull), mParsingCompoundProperty(PR_FALSE) { - NS_INIT_ISUPPORTS(); } NS_IMETHODIMP diff --git a/mozilla/content/html/style/src/nsCSSRule.cpp b/mozilla/content/html/style/src/nsCSSRule.cpp index a10c0267842..55537414998 100644 --- a/mozilla/content/html/style/src/nsCSSRule.cpp +++ b/mozilla/content/html/style/src/nsCSSRule.cpp @@ -45,7 +45,6 @@ nsCSSRule::nsCSSRule(void) mSheet(nsnull), mParentRule(nsnull) { - NS_INIT_ISUPPORTS(); } nsCSSRule::nsCSSRule(const nsCSSRule& aCopy) @@ -53,7 +52,6 @@ nsCSSRule::nsCSSRule(const nsCSSRule& aCopy) mSheet(aCopy.mSheet), mParentRule(aCopy.mParentRule) { - NS_INIT_ISUPPORTS(); } diff --git a/mozilla/content/html/style/src/nsCSSRules.cpp b/mozilla/content/html/style/src/nsCSSRules.cpp index 1529be96f25..7743e516303 100644 --- a/mozilla/content/html/style/src/nsCSSRules.cpp +++ b/mozilla/content/html/style/src/nsCSSRules.cpp @@ -107,7 +107,6 @@ private: CSSGroupRuleRuleListImpl::CSSGroupRuleRuleListImpl(nsICSSGroupRule *aGroupRule) { - NS_INIT_ISUPPORTS(); // Not reference counted to avoid circular references. // The rule will tell us when its going away. mGroupRule = aGroupRule; diff --git a/mozilla/content/html/style/src/nsCSSStyleRule.cpp b/mozilla/content/html/style/src/nsCSSStyleRule.cpp index 8ba25f59f41..06fff78c943 100644 --- a/mozilla/content/html/style/src/nsCSSStyleRule.cpp +++ b/mozilla/content/html/style/src/nsCSSStyleRule.cpp @@ -967,7 +967,6 @@ CSSImportantRule::CSSImportantRule(nsICSSStyleSheet* aSheet, nsCSSDeclaration* a : mDeclaration(aDeclaration), mSheet(aSheet) { - NS_INIT_ISUPPORTS(); } CSSImportantRule::~CSSImportantRule(void) diff --git a/mozilla/content/html/style/src/nsCSSStyleSheet.cpp b/mozilla/content/html/style/src/nsCSSStyleSheet.cpp index 8779cedfb6f..e82dd804f39 100644 --- a/mozilla/content/html/style/src/nsCSSStyleSheet.cpp +++ b/mozilla/content/html/style/src/nsCSSStyleSheet.cpp @@ -970,7 +970,6 @@ public: CSSRuleListImpl::CSSRuleListImpl(CSSStyleSheetImpl *aStyleSheet) { - NS_INIT_ISUPPORTS(); // Not reference counted to avoid circular references. // The style sheet will tell us when its going away. mStyleSheet = aStyleSheet; @@ -1089,7 +1088,6 @@ DOMMediaListImpl::DOMMediaListImpl(nsISupportsArray *aArray, CSSStyleSheetImpl *aStyleSheet) : mArray(aArray), mStyleSheet(aStyleSheet) { - NS_INIT_ISUPPORTS(); NS_ABORT_IF_FALSE(mArray, "This can't be used without an array!!"); } @@ -1409,7 +1407,6 @@ protected: CSSImportsCollectionImpl::CSSImportsCollectionImpl(nsICSSStyleSheet *aStyleSheet) { - NS_INIT_ISUPPORTS(); // Not reference counted to avoid circular references. // The style sheet will tell us when its going away. mStyleSheet = aStyleSheet; @@ -1735,7 +1732,6 @@ CSSStyleSheetImpl::CSSStyleSheetImpl() mDirty(PR_FALSE), mRuleProcessors(nsnull) { - NS_INIT_ISUPPORTS(); mInner = new CSSStyleSheetInner(this); } @@ -1758,7 +1754,6 @@ CSSStyleSheetImpl::CSSStyleSheetImpl(const CSSStyleSheetImpl& aCopy) mInner(aCopy.mInner), mRuleProcessors(nsnull) { - NS_INIT_ISUPPORTS(); mInner->AddSheet(this); @@ -3294,7 +3289,6 @@ CSSRuleProcessor::CSSRuleProcessor(void) : mSheets(nsnull), mRuleCascades(nsnull) { - NS_INIT_ISUPPORTS(); } static PRBool diff --git a/mozilla/content/html/style/src/nsComputedDOMStyle.cpp b/mozilla/content/html/style/src/nsComputedDOMStyle.cpp index 4409ff748a8..b60b08a8efc 100644 --- a/mozilla/content/html/style/src/nsComputedDOMStyle.cpp +++ b/mozilla/content/html/style/src/nsComputedDOMStyle.cpp @@ -97,7 +97,6 @@ NS_NewComputedDOMStyle(nsIComputedDOMStyle** aComputedStyle) nsComputedDOMStyle::nsComputedDOMStyle() : mInner(nsnull), mPresShellWeak(nsnull), mT2P(0.0f) { - NS_INIT_ISUPPORTS(); } diff --git a/mozilla/content/html/style/src/nsDOMCSSDeclaration.cpp b/mozilla/content/html/style/src/nsDOMCSSDeclaration.cpp index 3f7d75cb68a..2986938f1d2 100644 --- a/mozilla/content/html/style/src/nsDOMCSSDeclaration.cpp +++ b/mozilla/content/html/style/src/nsDOMCSSDeclaration.cpp @@ -51,7 +51,6 @@ nsDOMCSSDeclaration::nsDOMCSSDeclaration() : mInner(nsnull) { - NS_INIT_ISUPPORTS(); } nsDOMCSSDeclaration::~nsDOMCSSDeclaration() diff --git a/mozilla/content/html/style/src/nsDOMCSSRGBColor.cpp b/mozilla/content/html/style/src/nsDOMCSSRGBColor.cpp index 78fcd6e7dae..1653a87520b 100644 --- a/mozilla/content/html/style/src/nsDOMCSSRGBColor.cpp +++ b/mozilla/content/html/style/src/nsDOMCSSRGBColor.cpp @@ -48,7 +48,6 @@ nsDOMCSSRGBColor::nsDOMCSSRGBColor(nsIDOMCSSPrimitiveValue* aRed, nsIDOMCSSPrimitiveValue* aBlue) : mRed(aRed), mGreen(aGreen), mBlue(aBlue) { - NS_INIT_ISUPPORTS(); } nsDOMCSSRGBColor::~nsDOMCSSRGBColor(void) diff --git a/mozilla/content/html/style/src/nsDOMCSSRect.cpp b/mozilla/content/html/style/src/nsDOMCSSRect.cpp index 2dfc6197ec5..6cd5488e777 100644 --- a/mozilla/content/html/style/src/nsDOMCSSRect.cpp +++ b/mozilla/content/html/style/src/nsDOMCSSRect.cpp @@ -48,7 +48,6 @@ nsDOMCSSRect::nsDOMCSSRect(nsIDOMCSSPrimitiveValue* aTop, nsIDOMCSSPrimitiveValue* aLeft) : mTop(aTop), mRight(aRight), mBottom(aBottom), mLeft(aLeft) { - NS_INIT_ISUPPORTS(); } nsDOMCSSRect::~nsDOMCSSRect(void) diff --git a/mozilla/content/html/style/src/nsDOMCSSValueList.cpp b/mozilla/content/html/style/src/nsDOMCSSValueList.cpp index 25699ec44e3..d5bb166bdc6 100644 --- a/mozilla/content/html/style/src/nsDOMCSSValueList.cpp +++ b/mozilla/content/html/style/src/nsDOMCSSValueList.cpp @@ -44,7 +44,6 @@ nsDOMCSSValueList::nsDOMCSSValueList(PRBool aCommaDelimited, PRBool aReadonly) : mCommaDelimited(aCommaDelimited), mReadonly(aReadonly) { - NS_INIT_ISUPPORTS(); } nsDOMCSSValueList::~nsDOMCSSValueList() diff --git a/mozilla/content/html/style/src/nsHTMLAttributes.cpp b/mozilla/content/html/style/src/nsHTMLAttributes.cpp index 60c24de3023..6621cc076ae 100644 --- a/mozilla/content/html/style/src/nsHTMLAttributes.cpp +++ b/mozilla/content/html/style/src/nsHTMLAttributes.cpp @@ -379,7 +379,6 @@ nsHTMLMappedAttributes::nsHTMLMappedAttributes(void) mRuleMapper(nsnull), mUniqued(PR_FALSE) { - NS_INIT_ISUPPORTS(); } nsHTMLMappedAttributes::nsHTMLMappedAttributes(const nsHTMLMappedAttributes& aCopy) @@ -390,7 +389,6 @@ nsHTMLMappedAttributes::nsHTMLMappedAttributes(const nsHTMLMappedAttributes& aCo mRuleMapper(aCopy.mRuleMapper), mUniqued(PR_FALSE) { - NS_INIT_ISUPPORTS(); HTMLAttribute::CopyHTMLAttributes(aCopy.mFirst.mNext, &(mFirst.mNext)); } diff --git a/mozilla/content/html/style/src/nsHTMLCSSStyleSheet.cpp b/mozilla/content/html/style/src/nsHTMLCSSStyleSheet.cpp index 6d8361af5ab..c2ebe2d0650 100644 --- a/mozilla/content/html/style/src/nsHTMLCSSStyleSheet.cpp +++ b/mozilla/content/html/style/src/nsHTMLCSSStyleSheet.cpp @@ -84,7 +84,6 @@ public: CSSFirstLineRule::CSSFirstLineRule(nsIHTMLCSSStyleSheet* aSheet) : mSheet(aSheet) { - NS_INIT_ISUPPORTS(); } CSSFirstLineRule::~CSSFirstLineRule() @@ -263,7 +262,6 @@ HTMLCSSStyleSheetImpl::HTMLCSSStyleSheetImpl() mFirstLineRule(nsnull), mFirstLetterRule(nsnull) { - NS_INIT_ISUPPORTS(); } HTMLCSSStyleSheetImpl::~HTMLCSSStyleSheetImpl() diff --git a/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp b/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp index f5a5e0218d9..9400f2caa72 100644 --- a/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp +++ b/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp @@ -111,7 +111,6 @@ protected: HTMLColorRule::HTMLColorRule(nsIHTMLStyleSheet* aSheet) : mSheet(aSheet) { - NS_INIT_ISUPPORTS(); } HTMLColorRule::~HTMLColorRule() @@ -297,7 +296,6 @@ public: GenericTableRule::GenericTableRule(nsIHTMLStyleSheet* aSheet) { - NS_INIT_ISUPPORTS(); mSheet = aSheet; } @@ -832,7 +830,6 @@ HTMLStyleSheetImpl::HTMLStyleSheetImpl(void) mActiveRule(nsnull), mDocumentColorRule(nsnull) { - NS_INIT_ISUPPORTS(); mMappedAttrTable.ops = nsnull; } diff --git a/mozilla/content/html/style/src/nsInspectorCSSUtils.cpp b/mozilla/content/html/style/src/nsInspectorCSSUtils.cpp index c08fd6f05b3..39bbda42f95 100644 --- a/mozilla/content/html/style/src/nsInspectorCSSUtils.cpp +++ b/mozilla/content/html/style/src/nsInspectorCSSUtils.cpp @@ -44,7 +44,6 @@ nsInspectorCSSUtils::nsInspectorCSSUtils() { - NS_INIT_ISUPPORTS(); nsCSSProps::AddRefTable(); } diff --git a/mozilla/content/html/style/src/nsROCSSPrimitiveValue.cpp b/mozilla/content/html/style/src/nsROCSSPrimitiveValue.cpp index 4d328f46b68..a6f09c5ac16 100644 --- a/mozilla/content/html/style/src/nsROCSSPrimitiveValue.cpp +++ b/mozilla/content/html/style/src/nsROCSSPrimitiveValue.cpp @@ -49,7 +49,6 @@ nsROCSSPrimitiveValue::nsROCSSPrimitiveValue(float aT2P) : mType(CSS_PX), mT2P(aT2P) { mValue.mTwips = 0; - NS_INIT_ISUPPORTS(); } diff --git a/mozilla/content/html/style/src/nsStyleUtil.cpp b/mozilla/content/html/style/src/nsStyleUtil.cpp index 5c63d6fbaaf..76354029d66 100644 --- a/mozilla/content/html/style/src/nsStyleUtil.cpp +++ b/mozilla/content/html/style/src/nsStyleUtil.cpp @@ -143,7 +143,6 @@ NS_IMPL_ISUPPORTS1(nsFontAlgorithmPrefObserver, nsIObserver) nsFontAlgorithmPrefObserver::nsFontAlgorithmPrefObserver() { - NS_INIT_ISUPPORTS(); } nsFontAlgorithmPrefObserver::~nsFontAlgorithmPrefObserver() diff --git a/mozilla/content/svg/content/src/nsSVGAnimatedLength.cpp b/mozilla/content/svg/content/src/nsSVGAnimatedLength.cpp index 75ed55f7876..68a80d62e2e 100644 --- a/mozilla/content/svg/content/src/nsSVGAnimatedLength.cpp +++ b/mozilla/content/svg/content/src/nsSVGAnimatedLength.cpp @@ -86,7 +86,6 @@ protected: nsSVGAnimatedLength::nsSVGAnimatedLength() { - NS_INIT_ISUPPORTS(); } nsSVGAnimatedLength::~nsSVGAnimatedLength() diff --git a/mozilla/content/svg/content/src/nsSVGAnimatedRect.cpp b/mozilla/content/svg/content/src/nsSVGAnimatedRect.cpp index 63f1afaa526..1775654172c 100644 --- a/mozilla/content/svg/content/src/nsSVGAnimatedRect.cpp +++ b/mozilla/content/svg/content/src/nsSVGAnimatedRect.cpp @@ -85,7 +85,6 @@ protected: nsSVGAnimatedRect::nsSVGAnimatedRect() { - NS_INIT_ISUPPORTS(); } nsSVGAnimatedRect::~nsSVGAnimatedRect() diff --git a/mozilla/content/svg/content/src/nsSVGAnimatedTransformList.cpp b/mozilla/content/svg/content/src/nsSVGAnimatedTransformList.cpp index 2b558e2c396..ad1f9fc6c88 100644 --- a/mozilla/content/svg/content/src/nsSVGAnimatedTransformList.cpp +++ b/mozilla/content/svg/content/src/nsSVGAnimatedTransformList.cpp @@ -86,7 +86,6 @@ protected: nsSVGAnimatedTransformList::nsSVGAnimatedTransformList() { - NS_INIT_ISUPPORTS(); } nsSVGAnimatedTransformList::~nsSVGAnimatedTransformList() diff --git a/mozilla/content/svg/content/src/nsSVGAttributes.cpp b/mozilla/content/svg/content/src/nsSVGAttributes.cpp index 7e05e8899b5..0c9891ed44a 100644 --- a/mozilla/content/svg/content/src/nsSVGAttributes.cpp +++ b/mozilla/content/svg/content/src/nsSVGAttributes.cpp @@ -95,7 +95,6 @@ nsSVGAttribute::nsSVGAttribute(nsINodeInfo* aNodeInfo, mNodeInfo(aNodeInfo), mValue(value) { - NS_INIT_ISUPPORTS(); } nsSVGAttribute::~nsSVGAttribute() @@ -402,7 +401,6 @@ nsSVGAttribute::GetQualifiedName(nsAString& aQualifiedName)const nsSVGAttributes::nsSVGAttributes(nsIContent* aContent) : mContent(aContent) { - NS_INIT_ISUPPORTS(); } diff --git a/mozilla/content/svg/content/src/nsSVGElementFactory.cpp b/mozilla/content/svg/content/src/nsSVGElementFactory.cpp index 86f704f2800..a781b5fb5d0 100644 --- a/mozilla/content/svg/content/src/nsSVGElementFactory.cpp +++ b/mozilla/content/svg/content/src/nsSVGElementFactory.cpp @@ -75,7 +75,6 @@ public: nsSVGElementFactory::nsSVGElementFactory() { - NS_INIT_ISUPPORTS(); } nsSVGElementFactory::~nsSVGElementFactory() diff --git a/mozilla/content/svg/content/src/nsSVGGenericStringValue.cpp b/mozilla/content/svg/content/src/nsSVGGenericStringValue.cpp index 84405627882..48a4bbf6c69 100644 --- a/mozilla/content/svg/content/src/nsSVGGenericStringValue.cpp +++ b/mozilla/content/svg/content/src/nsSVGGenericStringValue.cpp @@ -78,7 +78,6 @@ NS_CreateSVGGenericStringValue(const nsAString& aValue, nsSVGGenericStringValue::nsSVGGenericStringValue(const nsAString& aValue) { - NS_INIT_ISUPPORTS(); mValue = aValue; } diff --git a/mozilla/content/svg/content/src/nsSVGLength.cpp b/mozilla/content/svg/content/src/nsSVGLength.cpp index a0d00623382..84bc6bd6609 100644 --- a/mozilla/content/svg/content/src/nsSVGLength.cpp +++ b/mozilla/content/svg/content/src/nsSVGLength.cpp @@ -123,7 +123,6 @@ nsSVGLength::nsSVGLength(float value, mSpecifiedUnitType(unit), mDirection(dir) { - NS_INIT_ISUPPORTS(); } nsresult nsSVGLength::Init(nsIDOMSVGElement* owner) diff --git a/mozilla/content/svg/content/src/nsSVGMatrix.cpp b/mozilla/content/svg/content/src/nsSVGMatrix.cpp index 3df5f45a283..c060701008d 100644 --- a/mozilla/content/svg/content/src/nsSVGMatrix.cpp +++ b/mozilla/content/svg/content/src/nsSVGMatrix.cpp @@ -55,7 +55,6 @@ nsSVGMatrix::nsSVGMatrix(float a, float b, float c, float d, float e, float f) : mA(a), mB(b), mC(c), mD(d), mE(e), mF(f) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- diff --git a/mozilla/content/svg/content/src/nsSVGPathSeg.cpp b/mozilla/content/svg/content/src/nsSVGPathSeg.cpp index 097703e6b1e..a73409edaca 100644 --- a/mozilla/content/svg/content/src/nsSVGPathSeg.cpp +++ b/mozilla/content/svg/content/src/nsSVGPathSeg.cpp @@ -111,7 +111,6 @@ NS_NewSVGPathSegClosePath(nsIDOMSVGPathSeg** result) nsSVGPathSegClosePath::nsSVGPathSegClosePath() { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -185,7 +184,6 @@ NS_NewSVGPathSegMovetoAbs(nsIDOMSVGPathSeg** result, nsSVGPathSegMovetoAbs::nsSVGPathSegMovetoAbs(float x, float y) : mX(x), mY(y) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -294,7 +292,6 @@ NS_NewSVGPathSegMovetoRel(nsIDOMSVGPathSeg** result, nsSVGPathSegMovetoRel::nsSVGPathSegMovetoRel(float x, float y) : mX(x), mY(y) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -402,7 +399,6 @@ NS_NewSVGPathSegLinetoAbs(nsIDOMSVGPathSeg** result, nsSVGPathSegLinetoAbs::nsSVGPathSegLinetoAbs(float x, float y) : mX(x), mY(y) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -511,7 +507,6 @@ NS_NewSVGPathSegLinetoRel(nsIDOMSVGPathSeg** result, nsSVGPathSegLinetoRel::nsSVGPathSegLinetoRel(float x, float y) : mX(x), mY(y) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -626,7 +621,6 @@ nsSVGPathSegCurvetoCubicAbs::nsSVGPathSegCurvetoCubicAbs(float x, float y, float x2, float y2) : mX(x), mY(y), mX1(x1), mY1(y1), mX2(x2), mY2(y2) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -798,7 +792,6 @@ nsSVGPathSegCurvetoCubicRel::nsSVGPathSegCurvetoCubicRel(float x, float y, float x2, float y2) : mX(x), mY(y), mX1(x1), mY1(y1), mX2(x2), mY2(y2) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -966,7 +959,6 @@ nsSVGPathSegCurvetoQuadraticAbs::nsSVGPathSegCurvetoQuadraticAbs(float x, float float x1, float y1) : mX(x), mY(y), mX1(x1), mY1(y1) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -1107,7 +1099,6 @@ nsSVGPathSegCurvetoQuadraticRel::nsSVGPathSegCurvetoQuadraticRel(float x, float float x1, float y1) : mX(x), mY(y), mX1(x1), mY1(y1) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -1254,7 +1245,6 @@ nsSVGPathSegArcAbs::nsSVGPathSegArcAbs(float x, float y, : mX(x), mY(y), mR1(r1), mR2(r2), mAngle(angle), mLargeArcFlag(largeArcFlag), mSweepFlag(sweepFlag) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -1444,7 +1434,6 @@ nsSVGPathSegArcRel::nsSVGPathSegArcRel(float x, float y, : mX(x), mY(y), mR1(r1), mR2(r2), mAngle(angle), mLargeArcFlag(largeArcFlag), mSweepFlag(sweepFlag) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -1623,7 +1612,6 @@ NS_NewSVGPathSegLinetoHorizontalAbs(nsIDOMSVGPathSeg** result, float x) nsSVGPathSegLinetoHorizontalAbs::nsSVGPathSegLinetoHorizontalAbs(float x) : mX(x) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -1716,7 +1704,6 @@ NS_NewSVGPathSegLinetoHorizontalRel(nsIDOMSVGPathSeg** result, float x) nsSVGPathSegLinetoHorizontalRel::nsSVGPathSegLinetoHorizontalRel(float x) : mX(x) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -1809,7 +1796,6 @@ NS_NewSVGPathSegLinetoVerticalAbs(nsIDOMSVGPathSeg** result, float y) nsSVGPathSegLinetoVerticalAbs::nsSVGPathSegLinetoVerticalAbs(float y) : mY(y) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -1902,7 +1888,6 @@ NS_NewSVGPathSegLinetoVerticalRel(nsIDOMSVGPathSeg** result, float y) nsSVGPathSegLinetoVerticalRel::nsSVGPathSegLinetoVerticalRel(float y) : mY(y) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -1999,7 +1984,6 @@ nsSVGPathSegCurvetoCubicSmoothAbs::nsSVGPathSegCurvetoCubicSmoothAbs(float x, fl float x2, float y2) : mX(x), mY(y), mX2(x2), mY2(y2) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -2139,7 +2123,6 @@ nsSVGPathSegCurvetoCubicSmoothRel::nsSVGPathSegCurvetoCubicSmoothRel(float x, fl float x2, float y2) : mX(x), mY(y), mX2(x2), mY2(y2) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -2276,7 +2259,6 @@ NS_NewSVGPathSegCurvetoQuadraticSmoothAbs(nsIDOMSVGPathSeg** result, nsSVGPathSegCurvetoQuadraticSmoothAbs::nsSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y) : mX(x), mY(y) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -2384,7 +2366,6 @@ NS_NewSVGPathSegCurvetoQuadraticSmoothRel(nsIDOMSVGPathSeg** result, nsSVGPathSegCurvetoQuadraticSmoothRel::nsSVGPathSegCurvetoQuadraticSmoothRel(float x, float y) : mX(x), mY(y) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- diff --git a/mozilla/content/svg/content/src/nsSVGPathSegList.cpp b/mozilla/content/svg/content/src/nsSVGPathSegList.cpp index f0c64857428..318ef1bc61b 100644 --- a/mozilla/content/svg/content/src/nsSVGPathSegList.cpp +++ b/mozilla/content/svg/content/src/nsSVGPathSegList.cpp @@ -96,7 +96,6 @@ protected: nsSVGPathSegList::nsSVGPathSegList() { - NS_INIT_ISUPPORTS(); } nsSVGPathSegList::~nsSVGPathSegList() diff --git a/mozilla/content/svg/content/src/nsSVGPoint.cpp b/mozilla/content/svg/content/src/nsSVGPoint.cpp index 7f8b3f3c863..91c334a8262 100644 --- a/mozilla/content/svg/content/src/nsSVGPoint.cpp +++ b/mozilla/content/svg/content/src/nsSVGPoint.cpp @@ -52,7 +52,6 @@ nsSVGPoint::Create(float x, float y, nsIDOMSVGPoint** aResult) nsSVGPoint::nsSVGPoint(float x, float y) : mX(x), mY(y) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- diff --git a/mozilla/content/svg/content/src/nsSVGPointList.cpp b/mozilla/content/svg/content/src/nsSVGPointList.cpp index 00ff2cf569b..b5aa3e0c9ac 100644 --- a/mozilla/content/svg/content/src/nsSVGPointList.cpp +++ b/mozilla/content/svg/content/src/nsSVGPointList.cpp @@ -69,7 +69,6 @@ nsSVGPointList::Create(nsIDOMSVGPointList** aResult) nsSVGPointList::nsSVGPointList() { - NS_INIT_ISUPPORTS(); } nsSVGPointList::~nsSVGPointList() diff --git a/mozilla/content/svg/content/src/nsSVGRect.cpp b/mozilla/content/svg/content/src/nsSVGRect.cpp index 148acd7c226..f6a961024f1 100644 --- a/mozilla/content/svg/content/src/nsSVGRect.cpp +++ b/mozilla/content/svg/content/src/nsSVGRect.cpp @@ -87,7 +87,6 @@ nsSVGRect::Create(nsIDOMSVGRect** result, nsSVGRect::nsSVGRect(float x, float y, float w, float h) : mX(x), mY(y), mWidth(w), mHeight(h) { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- @@ -234,7 +233,6 @@ nsSVGRectPrototypeWrapper::nsSVGRectPrototypeWrapper(nsIDOMSVGRect* prototype, nsIDOMSVGRect* body) : mPrototype(prototype), mBody(body) { - NS_INIT_ISUPPORTS(); NS_ASSERTION(mPrototype, "need prototype"); } diff --git a/mozilla/content/svg/content/src/nsSVGStyleValue.cpp b/mozilla/content/svg/content/src/nsSVGStyleValue.cpp index de657fdcb01..11baf8a16d4 100644 --- a/mozilla/content/svg/content/src/nsSVGStyleValue.cpp +++ b/mozilla/content/svg/content/src/nsSVGStyleValue.cpp @@ -93,7 +93,6 @@ NS_NewSVGStyleValue(nsISVGStyleValue** aResult) nsSVGStyleValue::nsSVGStyleValue() { - NS_INIT_ISUPPORTS(); } //---------------------------------------------------------------------- diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index 2ed56819333..4ffbd2dc2be 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -270,7 +270,6 @@ public: , mGotSelectionState(PR_FALSE) , mSelectionWasCollapsed(PR_FALSE) { - NS_INIT_ISUPPORTS(); } virtual ~nsDocViewerSelectionListener() {} @@ -493,7 +492,6 @@ NS_NewDocumentViewer(nsIDocumentViewer** aResult) DocumentViewerImpl::DocumentViewerImpl() : mIsSticky(PR_TRUE) { - NS_INIT_ISUPPORTS(); PrepareToStartLoad(); mParentWidget = nsnull; @@ -530,7 +528,6 @@ void DocumentViewerImpl::PrepareToStartLoad() DocumentViewerImpl::DocumentViewerImpl(nsIPresContext* aPresContext) : mPresContext(aPresContext), mAllowPlugins(PR_TRUE), mIsSticky(PR_TRUE) { - NS_INIT_ISUPPORTS(); mHintCharsetSource = kCharsetUninitialized; PrepareToStartLoad(); } @@ -3012,7 +3009,6 @@ NS_IMPL_ISUPPORTS1(nsDocViewerFocusListener, nsIDOMFocusListener); nsDocViewerFocusListener::nsDocViewerFocusListener() :mDocViewer(nsnull) { - NS_INIT_ISUPPORTS(); } nsDocViewerFocusListener::~nsDocViewerFocusListener(){} diff --git a/mozilla/layout/build/nsContentDLF.cpp b/mozilla/layout/build/nsContentDLF.cpp index af0a823c699..de7abc42f65 100644 --- a/mozilla/layout/build/nsContentDLF.cpp +++ b/mozilla/layout/build/nsContentDLF.cpp @@ -152,7 +152,6 @@ NS_NewContentDocumentLoaderFactory(nsIDocumentLoaderFactory** aResult) nsContentDLF::nsContentDLF() { - NS_INIT_ISUPPORTS(); } nsContentDLF::~nsContentDLF() diff --git a/mozilla/layout/build/nsContentHTTPStartup.h b/mozilla/layout/build/nsContentHTTPStartup.h index 3b124779e18..22dca27ee1d 100644 --- a/mozilla/layout/build/nsContentHTTPStartup.h +++ b/mozilla/layout/build/nsContentHTTPStartup.h @@ -52,7 +52,7 @@ struct nsModuleComponentInfo; class nsContentHTTPStartup : public nsIObserver { public: - nsContentHTTPStartup() { NS_INIT_ISUPPORTS(); } + nsContentHTTPStartup() { } virtual ~nsContentHTTPStartup() {} NS_DECL_ISUPPORTS diff --git a/mozilla/layout/generic/nsSelection.cpp b/mozilla/layout/generic/nsSelection.cpp index 5c3309957bc..e3eebbe07ba 100644 --- a/mozilla/layout/generic/nsSelection.cpp +++ b/mozilla/layout/generic/nsSelection.cpp @@ -573,7 +573,6 @@ public: nsAutoScrollTimer() : mSelection(0), mView(0), mPresContext(0), mPoint(0,0), mDelay(30) { - NS_INIT_ISUPPORTS(); } virtual ~nsAutoScrollTimer() @@ -799,7 +798,6 @@ IsValidSelectionPoint(nsSelection *aFrameSel, nsIContent *aContent) nsSelectionIterator::nsSelectionIterator(nsTypedSelection *aList) :mIndex(0) { - NS_INIT_ISUPPORTS(); if (!aList) { NS_NOTREACHED("nsSelection"); @@ -947,7 +945,6 @@ nsSelectionIterator::QueryInterface(REFNSIID aIID, void** aInstancePtr) nsSelection::nsSelection() { - NS_INIT_ISUPPORTS(); PRInt32 i; for (i = 0;iAddSheet(this); @@ -3294,7 +3289,6 @@ CSSRuleProcessor::CSSRuleProcessor(void) : mSheets(nsnull), mRuleCascades(nsnull) { - NS_INIT_ISUPPORTS(); } static PRBool diff --git a/mozilla/layout/style/nsComputedDOMStyle.cpp b/mozilla/layout/style/nsComputedDOMStyle.cpp index 4409ff748a8..b60b08a8efc 100644 --- a/mozilla/layout/style/nsComputedDOMStyle.cpp +++ b/mozilla/layout/style/nsComputedDOMStyle.cpp @@ -97,7 +97,6 @@ NS_NewComputedDOMStyle(nsIComputedDOMStyle** aComputedStyle) nsComputedDOMStyle::nsComputedDOMStyle() : mInner(nsnull), mPresShellWeak(nsnull), mT2P(0.0f) { - NS_INIT_ISUPPORTS(); } diff --git a/mozilla/layout/style/nsDOMCSSDeclaration.cpp b/mozilla/layout/style/nsDOMCSSDeclaration.cpp index 3f7d75cb68a..2986938f1d2 100644 --- a/mozilla/layout/style/nsDOMCSSDeclaration.cpp +++ b/mozilla/layout/style/nsDOMCSSDeclaration.cpp @@ -51,7 +51,6 @@ nsDOMCSSDeclaration::nsDOMCSSDeclaration() : mInner(nsnull) { - NS_INIT_ISUPPORTS(); } nsDOMCSSDeclaration::~nsDOMCSSDeclaration() diff --git a/mozilla/layout/style/nsDOMCSSRGBColor.cpp b/mozilla/layout/style/nsDOMCSSRGBColor.cpp index 78fcd6e7dae..1653a87520b 100644 --- a/mozilla/layout/style/nsDOMCSSRGBColor.cpp +++ b/mozilla/layout/style/nsDOMCSSRGBColor.cpp @@ -48,7 +48,6 @@ nsDOMCSSRGBColor::nsDOMCSSRGBColor(nsIDOMCSSPrimitiveValue* aRed, nsIDOMCSSPrimitiveValue* aBlue) : mRed(aRed), mGreen(aGreen), mBlue(aBlue) { - NS_INIT_ISUPPORTS(); } nsDOMCSSRGBColor::~nsDOMCSSRGBColor(void) diff --git a/mozilla/layout/style/nsDOMCSSRect.cpp b/mozilla/layout/style/nsDOMCSSRect.cpp index 2dfc6197ec5..6cd5488e777 100644 --- a/mozilla/layout/style/nsDOMCSSRect.cpp +++ b/mozilla/layout/style/nsDOMCSSRect.cpp @@ -48,7 +48,6 @@ nsDOMCSSRect::nsDOMCSSRect(nsIDOMCSSPrimitiveValue* aTop, nsIDOMCSSPrimitiveValue* aLeft) : mTop(aTop), mRight(aRight), mBottom(aBottom), mLeft(aLeft) { - NS_INIT_ISUPPORTS(); } nsDOMCSSRect::~nsDOMCSSRect(void) diff --git a/mozilla/layout/style/nsDOMCSSValueList.cpp b/mozilla/layout/style/nsDOMCSSValueList.cpp index 25699ec44e3..d5bb166bdc6 100644 --- a/mozilla/layout/style/nsDOMCSSValueList.cpp +++ b/mozilla/layout/style/nsDOMCSSValueList.cpp @@ -44,7 +44,6 @@ nsDOMCSSValueList::nsDOMCSSValueList(PRBool aCommaDelimited, PRBool aReadonly) : mCommaDelimited(aCommaDelimited), mReadonly(aReadonly) { - NS_INIT_ISUPPORTS(); } nsDOMCSSValueList::~nsDOMCSSValueList() diff --git a/mozilla/layout/style/nsHTMLCSSStyleSheet.cpp b/mozilla/layout/style/nsHTMLCSSStyleSheet.cpp index 6d8361af5ab..c2ebe2d0650 100644 --- a/mozilla/layout/style/nsHTMLCSSStyleSheet.cpp +++ b/mozilla/layout/style/nsHTMLCSSStyleSheet.cpp @@ -84,7 +84,6 @@ public: CSSFirstLineRule::CSSFirstLineRule(nsIHTMLCSSStyleSheet* aSheet) : mSheet(aSheet) { - NS_INIT_ISUPPORTS(); } CSSFirstLineRule::~CSSFirstLineRule() @@ -263,7 +262,6 @@ HTMLCSSStyleSheetImpl::HTMLCSSStyleSheetImpl() mFirstLineRule(nsnull), mFirstLetterRule(nsnull) { - NS_INIT_ISUPPORTS(); } HTMLCSSStyleSheetImpl::~HTMLCSSStyleSheetImpl() diff --git a/mozilla/layout/style/nsHTMLStyleSheet.cpp b/mozilla/layout/style/nsHTMLStyleSheet.cpp index f5a5e0218d9..9400f2caa72 100644 --- a/mozilla/layout/style/nsHTMLStyleSheet.cpp +++ b/mozilla/layout/style/nsHTMLStyleSheet.cpp @@ -111,7 +111,6 @@ protected: HTMLColorRule::HTMLColorRule(nsIHTMLStyleSheet* aSheet) : mSheet(aSheet) { - NS_INIT_ISUPPORTS(); } HTMLColorRule::~HTMLColorRule() @@ -297,7 +296,6 @@ public: GenericTableRule::GenericTableRule(nsIHTMLStyleSheet* aSheet) { - NS_INIT_ISUPPORTS(); mSheet = aSheet; } @@ -832,7 +830,6 @@ HTMLStyleSheetImpl::HTMLStyleSheetImpl(void) mActiveRule(nsnull), mDocumentColorRule(nsnull) { - NS_INIT_ISUPPORTS(); mMappedAttrTable.ops = nsnull; } diff --git a/mozilla/layout/style/nsInspectorCSSUtils.cpp b/mozilla/layout/style/nsInspectorCSSUtils.cpp index c08fd6f05b3..39bbda42f95 100644 --- a/mozilla/layout/style/nsInspectorCSSUtils.cpp +++ b/mozilla/layout/style/nsInspectorCSSUtils.cpp @@ -44,7 +44,6 @@ nsInspectorCSSUtils::nsInspectorCSSUtils() { - NS_INIT_ISUPPORTS(); nsCSSProps::AddRefTable(); } diff --git a/mozilla/layout/style/nsROCSSPrimitiveValue.cpp b/mozilla/layout/style/nsROCSSPrimitiveValue.cpp index 4d328f46b68..a6f09c5ac16 100644 --- a/mozilla/layout/style/nsROCSSPrimitiveValue.cpp +++ b/mozilla/layout/style/nsROCSSPrimitiveValue.cpp @@ -49,7 +49,6 @@ nsROCSSPrimitiveValue::nsROCSSPrimitiveValue(float aT2P) : mType(CSS_PX), mT2P(aT2P) { mValue.mTwips = 0; - NS_INIT_ISUPPORTS(); } diff --git a/mozilla/layout/style/nsStyleContext.cpp b/mozilla/layout/style/nsStyleContext.cpp index 6abb9c91fcd..26c5d2b7a1e 100644 --- a/mozilla/layout/style/nsStyleContext.cpp +++ b/mozilla/layout/style/nsStyleContext.cpp @@ -152,7 +152,6 @@ nsStyleContext::nsStyleContext(nsIStyleContext* aParent, mRuleNode(aRuleNode), mBits(0) { - NS_INIT_ISUPPORTS(); mNextSibling = this; mPrevSibling = this; diff --git a/mozilla/layout/style/nsStyleSet.cpp b/mozilla/layout/style/nsStyleSet.cpp index af065059525..d69a197c06d 100644 --- a/mozilla/layout/style/nsStyleSet.cpp +++ b/mozilla/layout/style/nsStyleSet.cpp @@ -390,7 +390,6 @@ StyleSetImpl::StyleSetImpl() ,mTimerEnabled(PR_FALSE) #endif { - NS_INIT_ISUPPORTS(); if (gInstances++ == 0) { static const char kQuirk_href[] = "resource:/res/quirk.css"; diff --git a/mozilla/layout/style/nsStyleUtil.cpp b/mozilla/layout/style/nsStyleUtil.cpp index 5c63d6fbaaf..76354029d66 100644 --- a/mozilla/layout/style/nsStyleUtil.cpp +++ b/mozilla/layout/style/nsStyleUtil.cpp @@ -143,7 +143,6 @@ NS_IMPL_ISUPPORTS1(nsFontAlgorithmPrefObserver, nsIObserver) nsFontAlgorithmPrefObserver::nsFontAlgorithmPrefObserver() { - NS_INIT_ISUPPORTS(); } nsFontAlgorithmPrefObserver::~nsFontAlgorithmPrefObserver()