From af51e73d0eab5a2b3846f1a3d47c81f36c5e8370 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Thu, 23 Feb 2006 09:36:43 +0000 Subject: [PATCH] Bug 106386 Correct misspellings in source code r=bernd rs=brendan git-svn-id: svn://10.0.0.236/trunk@191013 18797224-902f-48f8-a5cc-f745e15eee43 --- .../places/src/nsNavHistoryResult.cpp | 2 +- mozilla/build/autoconf/mozconfig2configure | 2 +- .../resources/content/pref/prefBird.xul | 2 +- .../content/selectAddressesDialog.js | 2 +- .../src/bookmarks/BookmarkViewController.mm | 2 +- .../src/browser/BrowserWindowController.mm | 2 +- mozilla/camino/src/formfill/wallet.mm | 2 +- mozilla/caps/src/nsPrincipal.cpp | 2 +- mozilla/caps/src/nsSystemPrincipal.cpp | 2 +- mozilla/cck/muc/dialshr.cpp | 2 +- mozilla/cck/muc/muc.rc | 2 +- mozilla/config/preprocessor.pl | 2 +- mozilla/config/preprocessor.txt | 4 +- mozilla/content/base/public/nsIDocument.h | 12 ++-- mozilla/content/base/src/nsDocument.cpp | 8 +-- mozilla/content/xslt/src/base/txList.cpp | 8 +-- mozilla/content/xslt/src/base/txList.h | 8 +-- mozilla/dom/src/base/nsDOMClassInfo.cpp | 2 +- mozilla/editor/libeditor/base/nsEditor.cpp | 2 +- .../System/md/x86/Win32ExceptionHandler.cpp | 2 +- .../System/md/x86/x86ExceptionHandler.cpp | 24 +++---- .../System/md/x86/x86ExceptionHandler.h | 2 +- .../source/CTextInputEventHandler.h | 8 +-- .../qa/mozembed/public/nsIQABrowserChrome.idl | 2 +- mozilla/extensions/irc/js/lib/irc.js | 2 +- mozilla/extensions/irc/xul/content/static.js | 8 +-- .../spellcheck/src/mozSpellChecker.cpp | 6 +- mozilla/gfx/src/shared/gfxImageFrame.cpp | 66 +++++++++---------- mozilla/gfx/src/shared/gfxImageFrame.h | 2 +- mozilla/grendel/sources/GrendelLauncher.java | 2 +- .../grendel/addressbook/jdbc/DBBuilder.java | 2 +- mozilla/java/plugins/test/README | 4 +- .../classes/org/mozilla/util/Utilities.java | 2 +- .../netscape/jsdebug/SourceTextItem.java | 4 +- mozilla/js/jsd/corba/jsd_iiop.cpp | 10 +-- mozilla/js/jsd/jsd.h | 2 +- .../netscape/jsdebugging/ifcui/StepInto.java | 6 +- .../netscape/jsdebugging/ifcui/StepOver.java | 4 +- .../netscape/jsdebug/SourceTextItem.java | 4 +- mozilla/js/src/jsprvtd.h | 2 +- mozilla/js2/src/js2engine.h | 2 +- mozilla/js2/src/js2metadata.cpp | 2 +- mozilla/js2/src/js2runtime.h | 2 +- mozilla/layout/base/nsCounterManager.cpp | 2 +- mozilla/layout/style/nsCSSStyleSheet.cpp | 2 +- mozilla/lib/mac/UserInterface/CSelector.h | 2 +- .../en-US/chrome/messenger/importDialog.dtd | 2 +- mozilla/mailnews/imap/src/nsImapProtocol.cpp | 2 +- mozilla/mailnews/mime/src/mimetpfl.cpp | 2 +- .../libpr0n/decoders/gif/nsGIFDecoder2.cpp | 2 +- .../libpr0n/decoders/png/nsPNGDecoder.cpp | 4 +- .../modules/libpr0n/public/imgIDecoder.idl | 2 +- mozilla/modules/oji/tests/FAQ | 4 +- .../modules/plugin/base/src/nsJSNPRuntime.cpp | 8 +-- .../samples/npthread/windows/np_entry.cpp | 2 +- mozilla/modules/rdf/src/ht.h | 2 +- .../netscape/softupdate/SoftwareUpdate.java | 2 +- .../modules/softupdt/src/nsSoftwareUpdate.cpp | 2 +- mozilla/msgsdk/C/src/nsio.c | 2 +- mozilla/mstone/bin/args.pl | 2 +- mozilla/mstone/src/http-util.c | 2 +- .../netwerk/base/src/nsSocketTransport2.cpp | 2 +- mozilla/netwerk/base/src/nsURLParsers.cpp | 2 +- .../protocol/http/src/nsHttpResponseHead.cpp | 6 +- mozilla/parser/htmlparser/src/CNavDTD.h | 4 +- mozilla/storage/src/mozStorageAsyncIO.cpp | 2 +- .../printing/content/printjoboptions.js | 2 +- mozilla/tools/trace-malloc/spacetrace.c | 4 +- .../widget/src/beos/nsDeviceContextSpecB.h | 4 +- mozilla/widget/src/cocoa/nsChildView.mm | 2 +- mozilla/widget/src/mac/nsDeviceContextSpecX.h | 6 +- mozilla/widget/src/mac/nsMacEventHandler.cpp | 4 +- .../widget/src/os2/nsDeviceContextSpecOS2.h | 6 +- mozilla/widget/src/windows/nsDataObj.cpp | 2 +- mozilla/widget/src/windows/nsDataObj.h | 4 +- .../widget/src/windows/nsDataObjCollection.h | 4 +- mozilla/widget/src/windows/nsWindow.cpp | 2 +- mozilla/xpcom/ds/nsITimelineService.idl | 2 +- mozilla/xpcom/io/nsLocalFileOS2.cpp | 2 +- mozilla/xpcom/io/nsLocalFileWin.cpp | 2 +- .../src/md/win32/xptcstubs_asm_x86_64.asm | 2 +- mozilla/xpcom/string/public/nsReadableUtils.h | 6 +- mozilla/xpcom/string/public/nsTAString.h | 4 +- mozilla/xpcom/string/public/nsTString.h | 2 +- mozilla/xpcom/string/public/nsTSubstring.h | 2 +- mozilla/xpcom/tests/TestMinStringAPI.cpp | 2 +- .../xpcom/tests/windows/TestHelloXPLoop.cpp | 2 +- .../xpfe/bootstrap/icons/windows/readme.txt | 2 +- .../resources/content/unix/printjoboptions.js | 2 +- 89 files changed, 185 insertions(+), 185 deletions(-) diff --git a/mozilla/browser/components/places/src/nsNavHistoryResult.cpp b/mozilla/browser/components/places/src/nsNavHistoryResult.cpp index d144e998851..bb7c58fdaf1 100755 --- a/mozilla/browser/components/places/src/nsNavHistoryResult.cpp +++ b/mozilla/browser/components/places/src/nsNavHistoryResult.cpp @@ -2144,7 +2144,7 @@ nsNavHistoryQueryResultNode::OnTitleChanged(nsIURI* aURI, // nsNavHistoryQueryResultNode::OnDeleteURI // -// Here, we can always live update by just deleting all occurances of +// Here, we can always live update by just deleting all occurrences of // the given URI. NS_IMETHODIMP diff --git a/mozilla/build/autoconf/mozconfig2configure b/mozilla/build/autoconf/mozconfig2configure index 99750ecf85c..9b1ff2effa4 100755 --- a/mozilla/build/autoconf/mozconfig2configure +++ b/mozilla/build/autoconf/mozconfig2configure @@ -38,7 +38,7 @@ # ***** END LICENSE BLOCK ***** # mozconfig2configure - Loads options from .mozconfig onto configure's -# command-line. See find-mozconfig.sh for how the config file is +# command-line. See mozconfig-find for how the config file is # found # # The options from .mozconfig are inserted into the command-line diff --git a/mozilla/calendar/resources/content/pref/prefBird.xul b/mozilla/calendar/resources/content/pref/prefBird.xul index b1dac71a53c..38a8e7694e2 100644 --- a/mozilla/calendar/resources/content/pref/prefBird.xul +++ b/mozilla/calendar/resources/content/pref/prefBird.xul @@ -60,7 +60,7 @@ var hPrefWindow = // properties queuedPanel : null, - initalized : false, + initialized : false, cancelHandlers : [], okHandlers : [], diff --git a/mozilla/calendar/resources/content/selectAddressesDialog.js b/mozilla/calendar/resources/content/selectAddressesDialog.js index 0346cc4d3b4..21193afd189 100644 --- a/mozilla/calendar/resources/content/selectAddressesDialog.js +++ b/mozilla/calendar/resources/content/selectAddressesDialog.js @@ -1189,7 +1189,7 @@ function getAddressBookDatabase( bookId ) /***** initializeContactsArray * METHODS -* initializeContactsArray: initalizes the contacts with any +* initializeContactsArray: initializes the contacts with any * existing contacts attached to the * event * diff --git a/mozilla/camino/src/bookmarks/BookmarkViewController.mm b/mozilla/camino/src/bookmarks/BookmarkViewController.mm index 1f59804a200..c61e3a081b3 100644 --- a/mozilla/camino/src/bookmarks/BookmarkViewController.mm +++ b/mozilla/camino/src/bookmarks/BookmarkViewController.mm @@ -236,7 +236,7 @@ static const int kDisabledQuicksearchPopupItemTag = 9999; // - managerStarted: // // Notification callback from the bookmark manager. Reload all the table data, but -// only if we think we've fully initalized ourselves. +// only if we think we've fully initialized ourselves. // - (void)managerStarted:(NSNotification*)inNotify { diff --git a/mozilla/camino/src/browser/BrowserWindowController.mm b/mozilla/camino/src/browser/BrowserWindowController.mm index ed453f7ad20..bc374bc1b82 100644 --- a/mozilla/camino/src/browser/BrowserWindowController.mm +++ b/mozilla/camino/src/browser/BrowserWindowController.mm @@ -1955,7 +1955,7 @@ enum BWCOpenDest { // - transformFormatString:domain:search // -// Replaces all occurances of %d in |inFormat| with |inDomain| and all occurances of +// Replaces all occurrences of %d in |inFormat| with |inDomain| and all occurrences of // %s with |inSearch|. - (void) transformFormatString:(NSMutableString*)inFormat domain:(NSString*)inDomain search:(NSString*)inSearch { diff --git a/mozilla/camino/src/formfill/wallet.mm b/mozilla/camino/src/formfill/wallet.mm index fd185342c18..970c9e76c88 100644 --- a/mozilla/camino/src/formfill/wallet.mm +++ b/mozilla/camino/src/formfill/wallet.mm @@ -1586,7 +1586,7 @@ wallet_Initialize(PRBool unlockDatabase) #endif namesInitialized = PR_TRUE; - // Initalize |wallet_SchemaToValue_list| with values from the Address Book's "me" card + // Initialize |wallet_SchemaToValue_list| with values from the Address Book's "me" card // rather than from the saved schema file. if (!wallet_ValuesReadIn) { wallet_Clear(&wallet_SchemaToValue_list); /* otherwise we will duplicate the list */ diff --git a/mozilla/caps/src/nsPrincipal.cpp b/mozilla/caps/src/nsPrincipal.cpp index 39c703b437b..ddce7a1d989 100755 --- a/mozilla/caps/src/nsPrincipal.cpp +++ b/mozilla/caps/src/nsPrincipal.cpp @@ -152,7 +152,7 @@ nsPrincipal::~nsPrincipal(void) NS_IMETHODIMP nsPrincipal::GetJSPrincipals(JSContext *cx, JSPrincipals **jsprin) { - NS_PRECONDITION(mJSPrincipals.nsIPrincipalPtr, "mJSPrincipals is uninitalized!"); + NS_PRECONDITION(mJSPrincipals.nsIPrincipalPtr, "mJSPrincipals is uninitialized!"); JSPRINCIPALS_HOLD(cx, &mJSPrincipals); *jsprin = &mJSPrincipals; diff --git a/mozilla/caps/src/nsSystemPrincipal.cpp b/mozilla/caps/src/nsSystemPrincipal.cpp index c32622c4f54..ded420461d4 100644 --- a/mozilla/caps/src/nsSystemPrincipal.cpp +++ b/mozilla/caps/src/nsSystemPrincipal.cpp @@ -243,7 +243,7 @@ nsSystemPrincipal::SetSecurityPolicy(void* aSecurityPolicy) NS_IMETHODIMP nsSystemPrincipal::GetJSPrincipals(JSContext *cx, JSPrincipals **jsprin) { - NS_PRECONDITION(mJSPrincipals.nsIPrincipalPtr, "mJSPrincipals is uninitalized!"); + NS_PRECONDITION(mJSPrincipals.nsIPrincipalPtr, "mJSPrincipals is uninitialized!"); JSPRINCIPALS_HOLD(cx, &mJSPrincipals); *jsprin = &mJSPrincipals; diff --git a/mozilla/cck/muc/dialshr.cpp b/mozilla/cck/muc/dialshr.cpp index 33b95730427..c65385cd90c 100644 --- a/mozilla/cck/muc/dialshr.cpp +++ b/mozilla/cck/muc/dialshr.cpp @@ -2206,7 +2206,7 @@ static BOOL createPhoneBookEntry( ACCOUNTPARAMS account, const LOCATIONPARAMS& l if ( rasEntry.szAreaCode[ 0 ] == '\0' ) { // Err: The service provider's phone number is missing its area code - // (or is not in TAPI cannonical form in the configuration file). + // (or is not in TAPI canonical form in the configuration file). // Account creation will fail until this is fixed. char* buf = (char*)malloc( sizeof(char) * 255 ); if ( buf ) diff --git a/mozilla/cck/muc/muc.rc b/mozilla/cck/muc/muc.rc index 1779cf8d9ca..be461070126 100644 --- a/mozilla/cck/muc/muc.rc +++ b/mozilla/cck/muc/muc.rc @@ -122,7 +122,7 @@ BEGIN IDS_DNS_ALREADY "Your system is configured for another Domain Name System (DNS) server. You may need to change your Dial-Up Networking settings to connect to the Internet.\n\nPlease see the troubleshooting section of the Installation and Setup Guide for more information." IDS_BAD_PASSWORD "Invalid pasword in Netscape registration file." IDS_NO_RNA_REGSERVER "Unable to create RNA phone book entry!" - IDS_MISSING_AREA_CODE "The service provider's phone number is missing its area code (or is not in TAPI cannonical form in the configuration file). Account creation will fail until this is fixed." + IDS_MISSING_AREA_CODE "The service provider's phone number is missing its area code (or is not in TAPI canonical form in the configuration file). Account creation will fail until this is fixed." IDS_NO_RNA "Unable to create shortcut to RNA phone book entry!" END diff --git a/mozilla/config/preprocessor.pl b/mozilla/config/preprocessor.pl index 2e63437c843..17491aa857e 100755 --- a/mozilla/config/preprocessor.pl +++ b/mozilla/config/preprocessor.pl @@ -93,7 +93,7 @@ use File::Spec::Unix; # on all platforms, because the #include syntax is unix-ba # Note: Ideally we would use File::Spec 0.8. When this becomes # possible, add "0.8" to the first "use" line above, then replace -# occurances of "::_0_8::" with "->" below. And remove the code for +# occurrences of "::_0_8::" with "->" below. And remove the code for # File::Spec 0.8 much lower down the file. sub include { diff --git a/mozilla/config/preprocessor.txt b/mozilla/config/preprocessor.txt index 44ead8a9986..84e0259bbe9 100644 --- a/mozilla/config/preprocessor.txt +++ b/mozilla/config/preprocessor.txt @@ -192,12 +192,12 @@ The following filters are supported: Collapses sequences of spaces into a single space. substitution - Replaces occurances of "@foo@" by the value of the variable + Replaces occurrences of "@foo@" by the value of the variable "foo". If @foo@ is not defined, the preprocessor will terminate with a fatal error. attemptSubstitution - Replaces occurances of "@foo@" by the value of the variable + Replaces occurrences of "@foo@" by the value of the variable "foo". If @foo@ is not defined, the empty string is used instead. Filters are run in alphabetical order, on a per-line basis. diff --git a/mozilla/content/base/public/nsIDocument.h b/mozilla/content/base/public/nsIDocument.h index da25c340075..e5fae0ebccf 100644 --- a/mozilla/content/base/public/nsIDocument.h +++ b/mozilla/content/base/public/nsIDocument.h @@ -793,7 +793,7 @@ public: * Associate an object aData to aKey on node aObject. Should only be used to * implement the DOM Level 3 UserData API. * - * @param aObject cannonical nsINode pointer of the node to add aData to + * @param aObject canonical nsINode pointer of the node to add aData to * @param aKey the key to associate the object to * @param aData the object to associate to aKey on aObject * @param aHandler the UserDataHandler to call when the node is @@ -820,7 +820,7 @@ public: * aObject will be removed. Should only be used to implement the DOM Level 3 * UserData API. * - * @param aObject cannonical nsINode pointer of the node to add aData to + * @param aObject canonical nsINode pointer of the node to add aData to * @param aKey the key to associate the object to * @param aData the object to associate to aKey on aObject (may be nulll) * @param aHandler the UserDataHandler to call when the node is @@ -839,7 +839,7 @@ public: * if no object was associated to aKey on aObject. Should only be used to * implement the DOM Level 3 UserData API. * - * @param aObject cannonical nsINode pointer of the node to get the + * @param aObject canonical nsINode pointer of the node to get the * object for * @param aKey the key the object is associated to * @param aResult [out] the registered object for aKey on aObject, if any @@ -861,7 +861,7 @@ public: * if no object was associated to aKey on aObject. Should only be used to * implement the DOM Level 3 UserData API. * - * @param aObject cannonical nsINode pointer of the node to get the + * @param aObject canonical nsINode pointer of the node to get the * object for * @param aKey the key the object is associated to * @param aResult [out] the registered object for aKey on aObject, if any @@ -876,7 +876,7 @@ public: * * @param aOperation the type of operation that is being performed on the * node. @see nsIDOMUserDataHandler - * @param aObject cannonical nsINode pointer of the node to call the + * @param aObject canonical nsINode pointer of the node to call the * UserDataHandler for * @param aSource the node that aOperation is being performed on, or null if * the operation is a deletion @@ -890,7 +890,7 @@ public: * Copy the objects and UserDataHandlers for node aObject to a new document. * Should only be used to implement the DOM Level 3 UserData API. * - * @param aObject cannonical nsINode pointer of the node to copy objects + * @param aObject canonical nsINode pointer of the node to copy objects * and UserDataHandlers for * @param aDestination the new document */ diff --git a/mozilla/content/base/src/nsDocument.cpp b/mozilla/content/base/src/nsDocument.cpp index cf232fe1f83..43dc32e9ee4 100644 --- a/mozilla/content/base/src/nsDocument.cpp +++ b/mozilla/content/base/src/nsDocument.cpp @@ -3902,7 +3902,7 @@ nsDocument::SetUserData(const nsINode *aObject, #ifdef DEBUG nsCOMPtr object = do_QueryInterface(NS_CONST_CAST(nsINode*, aObject)); - NS_ASSERTION(object == aObject, "Use cannonical nsINode pointer!"); + NS_ASSERTION(object == aObject, "Use canonical nsINode pointer!"); #endif *aResult = nsnull; @@ -3963,7 +3963,7 @@ nsDocument::GetUserData(const nsINode *aObject, nsIAtom *aKey, #ifdef DEBUG nsCOMPtr object = do_QueryInterface(NS_CONST_CAST(nsINode*, aObject)); - NS_ASSERTION(object == aObject, "Use cannonical nsINode pointer!"); + NS_ASSERTION(object == aObject, "Use canonical nsINode pointer!"); #endif *aResult = NS_STATIC_CAST(nsIVariant*, @@ -4012,7 +4012,7 @@ nsDocument::CallUserDataHandler(PRUint16 aOperation, // XXX Should we guard from QI'ing nodes that are being destroyed? nsCOMPtr object = do_QueryInterface(NS_CONST_CAST(nsINode*, aObject)); - NS_ASSERTION(object == aObject, "Use cannonical nsINode pointer!"); + NS_ASSERTION(object == aObject, "Use canonical nsINode pointer!"); #endif nsHandlerData handlerData; @@ -4054,7 +4054,7 @@ nsDocument::CopyUserData(const nsINode *aObject, nsIDocument *aDestination) #ifdef DEBUG nsCOMPtr object = do_QueryInterface(NS_CONST_CAST(nsINode*, aObject)); - NS_ASSERTION(object == aObject, "Use cannonical nsINode pointer!"); + NS_ASSERTION(object == aObject, "Use canonical nsINode pointer!"); #endif nsCopyData copyData = { this, aDestination }; diff --git a/mozilla/content/xslt/src/base/txList.cpp b/mozilla/content/xslt/src/base/txList.cpp index bf7d67f3828..59cbfa29e98 100644 --- a/mozilla/content/xslt/src/base/txList.cpp +++ b/mozilla/content/xslt/src/base/txList.cpp @@ -299,8 +299,8 @@ nsresult txListIterator::addBefore(void* objPtr) } //-- addBefore /** - * Returns true if a sucessful call to the next() method can be made - * @return MB_TRUE if a sucessful call to the next() method can be made, + * Returns true if a successful call to the next() method can be made + * @return MB_TRUE if a successful call to the next() method can be made, * otherwise MB_FALSE **/ MBool txListIterator::hasNext() { @@ -314,8 +314,8 @@ MBool txListIterator::hasNext() { } //-- hasNext /** - * Returns true if a sucessful call to the previous() method can be made - * @return MB_TRUE if a sucessful call to the previous() method can be made, + * Returns true if a successful call to the previous() method can be made + * @return MB_TRUE if a successful call to the previous() method can be made, * otherwise MB_FALSE **/ MBool txListIterator::hasPrevious() { diff --git a/mozilla/content/xslt/src/base/txList.h b/mozilla/content/xslt/src/base/txList.h index d506aa17c7e..9f833673a0c 100644 --- a/mozilla/content/xslt/src/base/txList.h +++ b/mozilla/content/xslt/src/base/txList.h @@ -174,15 +174,15 @@ public: nsresult addBefore(void* objPtr); /** - * Returns true if a sucessful call to the next() method can be made - * @return MB_TRUE if a sucessful call to the next() method can be made, + * Returns true if a successful call to the next() method can be made + * @return MB_TRUE if a successful call to the next() method can be made, * otherwise MB_FALSE **/ MBool hasNext(); /** - * Returns true if a sucessful call to the previous() method can be made - * @return MB_TRUE if a sucessful call to the previous() method can be made, + * Returns true if a successful call to the previous() method can be made + * @return MB_TRUE if a successful call to the previous() method can be made, * otherwise MB_FALSE **/ MBool hasPrevious(); diff --git a/mozilla/dom/src/base/nsDOMClassInfo.cpp b/mozilla/dom/src/base/nsDOMClassInfo.cpp index 0acc43c08d8..c9670e71a7a 100644 --- a/mozilla/dom/src/base/nsDOMClassInfo.cpp +++ b/mozilla/dom/src/base/nsDOMClassInfo.cpp @@ -5653,7 +5653,7 @@ nsWindowSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx, // We're resolving a property on an outer window for which there // is no inner window yet, and the window is not frozen // (i.e. we're not in the middle of initializing XPConnect - // classes on it). If the context is already initalized, force + // classes on it). If the context is already initialized, force // creation of a new inner window. This will create a synthetic // about:blank document, and an inner window which may be reused // by the actual document being loaded into this outer diff --git a/mozilla/editor/libeditor/base/nsEditor.cpp b/mozilla/editor/libeditor/base/nsEditor.cpp index 9bd5422876a..7f9ddcf8c97 100644 --- a/mozilla/editor/libeditor/base/nsEditor.cpp +++ b/mozilla/editor/libeditor/base/nsEditor.cpp @@ -284,7 +284,7 @@ nsEditor::Init(nsIDOMDocument *aDoc, nsIPresShell* aPresShell, nsIContent *aRoot mUpdateCount=0; InsertTextTxn::ClassInit(); - /* initalize IME stuff */ + /* initialize IME stuff */ IMETextTxn::ClassInit(); mIMETextNode = do_QueryInterface(nsnull); mIMETextOffset = 0; diff --git a/mozilla/ef/Runtime/System/md/x86/Win32ExceptionHandler.cpp b/mozilla/ef/Runtime/System/md/x86/Win32ExceptionHandler.cpp index bcc3c0422f2..15d97587b3d 100644 --- a/mozilla/ef/Runtime/System/md/x86/Win32ExceptionHandler.cpp +++ b/mozilla/ef/Runtime/System/md/x86/Win32ExceptionHandler.cpp @@ -212,7 +212,7 @@ void win32HardwareExceptionHandler(JavaObject* exc, CONTEXT* ContextRecord) context.object = exc; // get top EBP - context.sucessorEBP = NULL; + context.successorEBP = NULL; context.sourceEBP = (Uint32*)ContextRecord->Ebp; context.sourceAddress = (Uint8*)ContextRecord->Eip; diff --git a/mozilla/ef/Runtime/System/md/x86/x86ExceptionHandler.cpp b/mozilla/ef/Runtime/System/md/x86/x86ExceptionHandler.cpp index e2da77ab159..bfcf490383e 100644 --- a/mozilla/ef/Runtime/System/md/x86/x86ExceptionHandler.cpp +++ b/mozilla/ef/Runtime/System/md/x86/x86ExceptionHandler.cpp @@ -55,7 +55,7 @@ extern "C" SYSCALL_FUNC(void) x86SoftwareExceptionHandler(Uint32 EBP, Uint32 EDI +-------------------------------+ <- initial restoreESP | return address | ========+===============================+======== - sysThrow | EBP link | <- sucessorEBP + sysThrow | EBP link | <- successorEBP (native) +-------------------------------+ | arguments | ========+===============================+======== @@ -121,14 +121,14 @@ extern "C" SYSCALL_FUNC(void) x86SoftwareExceptionHandler(Uint32 inEBP, Uint32 i context.object = (JavaObject*) &inObject; // get other EBPs - context.sucessorEBP = (Uint32*) inEBP; - context.sourceEBP = *((Uint32**)context.sucessorEBP); + context.successorEBP = (Uint32*) inEBP; + context.sourceEBP = *((Uint32**)context.successorEBP); // The source address will point to the instruction to return to, NOT the instruction that // generated the exception. The return address is often (always?) in a different control node, so // it may have a different exception table. // The byte before the return address will be part of the call instruction that got us here. - context.sourceAddress = (Uint8*)(context.sucessorEBP[1]) - 1; + context.sourceAddress = (Uint8*)(context.successorEBP[1]) - 1; // cache entries context.sourceCE = NativeCodeCache::getCache().lookupByRange((Uint8*)context.sourceAddress); @@ -136,7 +136,7 @@ extern "C" SYSCALL_FUNC(void) x86SoftwareExceptionHandler(Uint32 inEBP, Uint32 i // calculate the ESP if we were to proceed directly to the catch // EBP + 4 (return address) + 4 (argument) + 4 (point to last object on stack == saved regs) - context.restoreESP = (Uint32*) ((Uint8*)context.sucessorEBP + 12); + context.restoreESP = (Uint32*) ((Uint8*)context.successorEBP + 12); // now that the context struct is filled we can print debugging information DEBUG_LOG_ONLY(printExceptionBegin(UT_LOG_MODULE(x86ExceptionHandler), &context)); @@ -172,9 +172,9 @@ bool x86PopStackFrame(Context* context) } // roll back to point to previous frame - context->sucessorEBP = context->sourceEBP; + context->successorEBP = context->sourceEBP; context->sourceEBP = newSourceEBP; - context->sourceAddress = (Uint8*)(context->sucessorEBP[1]) - 1; // move back a byte to ensure we're in correct control node + context->sourceAddress = (Uint8*)(context->successorEBP[1]) - 1; // move back a byte to ensure we're in correct control node context->successorCE = context->sourceCE; context->sourceCE = NativeCodeCache::getCache().lookupByRange(context->sourceAddress); @@ -200,13 +200,13 @@ bool x86PopStackFrame(Context* context) { // successor is java frame; restore regs as per saved policy StackFrameInfo& successorPolicy = context->successorCE->policy; - restoreReg = (Uint32*) ((Uint8*)(context->sucessorEBP) - successorPolicy.getCalleeSavedBeginOffset()); + restoreReg = (Uint32*) ((Uint8*)(context->successorEBP) - successorPolicy.getCalleeSavedBeginOffset()); numRegs = successorPolicy.getNumSavedGPRWords(); } else { // successor is native frame; restore all regs from just below EBP - restoreReg = (Uint32*) ((Uint8*)(context->sucessorEBP) - 4); + restoreReg = (Uint32*) ((Uint8*)(context->successorEBP) - 4); numRegs = 3; } @@ -244,7 +244,7 @@ extern void* compileStubReEntryPoint; // Purpose: determines whether the source frame is a native method / syscall guard frame bool isGuardFrame(Context* context, bool printIdentifier = false) { - Uint32 retAddress = (Uint32)(context->sucessorEBP[1]); + Uint32 retAddress = (Uint32)(context->successorEBP[1]); int i; // check unrolled-loop stubs for return address @@ -324,7 +324,7 @@ void printExceptionBegin(LogModuleObject &f, Context* context) UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("a syscall or native method\n")); } UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Object: '%s' (object = 0x%p)\n", context->object->getClass().getName(), context->object)); - UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Return: 0x%p\n", context->sucessorEBP[1])); + UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Return: 0x%p\n", context->successorEBP[1])); UT_OBJECTLOG(UT_LOG_MODULE(ExceptionRegs), PR_LOG_ALWAYS, ("Entry: ")); printRegs(UT_LOG_MODULE(ExceptionRegs), context); } @@ -365,7 +365,7 @@ void printContext(LogModuleObject &f, Context* context) else if(!isGuardFrame(context, true)) // isGuardFrame(..., true) prints reference if guard frame found UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Method: anonymous\n")); - UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Return: 0x%p\n", context->sucessorEBP[1])); + UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Return: 0x%p\n", context->successorEBP[1])); } #endif // DEBUG_LOG diff --git a/mozilla/ef/Runtime/System/md/x86/x86ExceptionHandler.h b/mozilla/ef/Runtime/System/md/x86/x86ExceptionHandler.h index f6fc272ca86..9a882f0d5c3 100644 --- a/mozilla/ef/Runtime/System/md/x86/x86ExceptionHandler.h +++ b/mozilla/ef/Runtime/System/md/x86/x86ExceptionHandler.h @@ -50,7 +50,7 @@ struct Context Uint32 EDI; Uint32* sourceEBP; - Uint32* sucessorEBP; + Uint32* successorEBP; Uint8* sourceAddress; diff --git a/mozilla/embedding/browser/powerplant/source/CTextInputEventHandler.h b/mozilla/embedding/browser/powerplant/source/CTextInputEventHandler.h index 44c3c3a815f..cd5ac941c65 100644 --- a/mozilla/embedding/browser/powerplant/source/CTextInputEventHandler.h +++ b/mozilla/embedding/browser/powerplant/source/CTextInputEventHandler.h @@ -56,19 +56,19 @@ public: virtual OSStatus HandleAll( EventHandlerCallRef inHandlerCallRef, EventRef inEvent); protected: - virtual OSStatus HandleUnicodeForKeyEvent( CBrowserShell* aBrwoserShell, + virtual OSStatus HandleUnicodeForKeyEvent( CBrowserShell* aBrowserShell, EventHandlerCallRef inHandlerCallRef, EventRef inEvent); virtual OSStatus HandleUpdateActiveInputArea( CBrowserShell* sink, EventHandlerCallRef inHandlerCallRef, EventRef inEvent); - virtual OSStatus HandleOffsetToPos( CBrowserShell* aBrwoserShell, + virtual OSStatus HandleOffsetToPos( CBrowserShell* aBrowserShell, EventHandlerCallRef inHandlerCallRef, EventRef inEvent); - virtual OSStatus HandlePosToOffset( CBrowserShell* aBrwoserShell, + virtual OSStatus HandlePosToOffset( CBrowserShell* aBrowserShell, EventHandlerCallRef inHandlerCallRef, EventRef inEvent); - virtual OSStatus HandleGetSelectedText( CBrowserShell* aBrwoserShell, + virtual OSStatus HandleGetSelectedText( CBrowserShell* aBrowserShell, EventHandlerCallRef inHandlerCallRef, EventRef inEvent); diff --git a/mozilla/embedding/qa/mozembed/public/nsIQABrowserChrome.idl b/mozilla/embedding/qa/mozembed/public/nsIQABrowserChrome.idl index b85207b5404..61e60bc09be 100644 --- a/mozilla/embedding/qa/mozembed/public/nsIQABrowserChrome.idl +++ b/mozilla/embedding/qa/mozembed/public/nsIQABrowserChrome.idl @@ -48,7 +48,7 @@ interface nsIQABrowserView; [scriptable, uuid(31D58E11-E4A3-49fc-B544-C100F375A280)] interface nsIQABrowserChrome : nsISupports { - // Hold a handle to the nsIQABrwoserUIGlue which is above the chrome + // Hold a handle to the nsIQABrowserUIGlue which is above the chrome // and to the nsIQABrowserView below the chrome. void initQAChrome(in nsIQABrowserUIGlue uiGlue, in nativeWindow nativeWnd); }; diff --git a/mozilla/extensions/irc/js/lib/irc.js b/mozilla/extensions/irc/js/lib/irc.js index 374045cc0e9..9fa353f2562 100644 --- a/mozilla/extensions/irc/js/lib/irc.js +++ b/mozilla/extensions/irc/js/lib/irc.js @@ -2863,7 +2863,7 @@ function chan_modestr (f) /* modeA are 'list' ones, and so should not be shown. * modeB are 'param' ones, like +k key, so we wont show them either. * modeC are 'on-param' ones, like +l limit, which we will show. - * modeD are 'boolean' ones, which we will definately show. + * modeD are 'boolean' ones, which we will definitely show. */ // Add modeD: diff --git a/mozilla/extensions/irc/xul/content/static.js b/mozilla/extensions/irc/xul/content/static.js index 4c183d64158..57177d3a33f 100644 --- a/mozilla/extensions/irc/xul/content/static.js +++ b/mozilla/extensions/irc/xul/content/static.js @@ -225,7 +225,7 @@ function initStatic() } catch (ex) { - dd("IO service failed to initalize: " + ex); + dd("IO service failed to initialize: " + ex); } try @@ -238,7 +238,7 @@ function initStatic() } catch (ex) { - dd("Sound failed to initalize: " + ex); + dd("Sound failed to initialize: " + ex); } try @@ -250,7 +250,7 @@ function initStatic() } catch (ex) { - dd("Global History failed to initalize: " + ex); + dd("Global History failed to initialize: " + ex); } try @@ -274,7 +274,7 @@ function initStatic() } catch (ex) { - dd("Locale-correct date formatting failed to initalize: " + ex); + dd("Locale-correct date formatting failed to initialize: " + ex); } multilineInputMode(client.prefs["multiline"]); diff --git a/mozilla/extensions/spellcheck/src/mozSpellChecker.cpp b/mozilla/extensions/spellcheck/src/mozSpellChecker.cpp index bdc47b00929..43e5e25f3ef 100644 --- a/mozilla/extensions/spellcheck/src/mozSpellChecker.cpp +++ b/mozilla/extensions/spellcheck/src/mozSpellChecker.cpp @@ -210,12 +210,12 @@ mozSpellChecker::Replace(const nsAString &aOldWord, const nsAString &aNewWord, P mTsDoc->NextBlock(); } -//After we have moved to the block where the first occurance of replace was done, put the +//After we have moved to the block where the first occurrence of replace was done, put the //selection to the next word following it. In case there is no word following it i.e if it happens //to be the last word in that block, then move to the next block and put the selection to the //first word in that block, otherwise when the Setupdoc() is called, it queries the LastSelectedBlock() -//and the selection offset of the last occurance of the replaced word is taken instead of the first -//occurance and things get messed up as reported in the bug 244969 +//and the selection offset of the last occurrence of the replaced word is taken instead of the first +//occurrence and things get messed up as reported in the bug 244969 if( NS_SUCCEEDED(mTsDoc->IsDone(&done)) && !done ){ nsString str; diff --git a/mozilla/gfx/src/shared/gfxImageFrame.cpp b/mozilla/gfx/src/shared/gfxImageFrame.cpp index a846e431ec3..76eb6810c20 100644 --- a/mozilla/gfx/src/shared/gfxImageFrame.cpp +++ b/mozilla/gfx/src/shared/gfxImageFrame.cpp @@ -43,7 +43,7 @@ NS_IMPL_ISUPPORTS2(gfxImageFrame, gfxIImageFrame, nsIInterfaceRequestor) gfxImageFrame::gfxImageFrame() : - mInitalized(PR_FALSE), + mInitialized(PR_FALSE), mMutable(PR_TRUE), mHasBackgroundColor(PR_FALSE), mTimeout(100), @@ -61,7 +61,7 @@ gfxImageFrame::~gfxImageFrame() /* void init (in PRInt32 aX, in PRInt32 aY, in PRInt32 aWidth, in PRInt32 aHeight, in gfx_format aFormat); */ NS_IMETHODIMP gfxImageFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, gfx_format aFormat,gfx_depth aDepth) { - if (mInitalized) + if (mInitialized) return NS_ERROR_FAILURE; if (aWidth <= 0 || aHeight <= 0) { @@ -133,7 +133,7 @@ NS_IMETHODIMP gfxImageFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt3 default: #ifdef DEBUG - printf("unsupposed gfx_format\n"); + printf("unsupported gfx_format\n"); #endif break; } @@ -143,7 +143,7 @@ NS_IMETHODIMP gfxImageFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt3 mTopToBottom = mImage->GetIsRowOrderTopToBottom(); - mInitalized = PR_TRUE; + mInitialized = PR_TRUE; return NS_OK; } @@ -151,17 +151,17 @@ NS_IMETHODIMP gfxImageFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt3 /* attribute boolean mutable */ NS_IMETHODIMP gfxImageFrame::GetMutable(PRBool *aMutable) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; - NS_ASSERTION(mInitalized, "gfxImageFrame::GetMutable called on non-inited gfxImageFrame"); + NS_ASSERTION(mInitialized, "gfxImageFrame::GetMutable called on non-inited gfxImageFrame"); *aMutable = mMutable; return NS_OK; } NS_IMETHODIMP gfxImageFrame::SetMutable(PRBool aMutable) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; mMutable = aMutable; @@ -175,7 +175,7 @@ NS_IMETHODIMP gfxImageFrame::SetMutable(PRBool aMutable) /* readonly attribute PRInt32 x; */ NS_IMETHODIMP gfxImageFrame::GetX(PRInt32 *aX) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; *aX = mOffset.x; @@ -185,7 +185,7 @@ NS_IMETHODIMP gfxImageFrame::GetX(PRInt32 *aX) /* readonly attribute PRInt32 y; */ NS_IMETHODIMP gfxImageFrame::GetY(PRInt32 *aY) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; *aY = mOffset.y; @@ -196,7 +196,7 @@ NS_IMETHODIMP gfxImageFrame::GetY(PRInt32 *aY) /* readonly attribute PRInt32 width; */ NS_IMETHODIMP gfxImageFrame::GetWidth(PRInt32 *aWidth) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; *aWidth = mSize.width; @@ -206,7 +206,7 @@ NS_IMETHODIMP gfxImageFrame::GetWidth(PRInt32 *aWidth) /* readonly attribute PRInt32 height; */ NS_IMETHODIMP gfxImageFrame::GetHeight(PRInt32 *aHeight) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; *aHeight = mSize.height; @@ -216,7 +216,7 @@ NS_IMETHODIMP gfxImageFrame::GetHeight(PRInt32 *aHeight) /* void getRect(in nsRectRef rect); */ NS_IMETHODIMP gfxImageFrame::GetRect(nsIntRect &aRect) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; aRect.SetRect(mOffset.x, mOffset.y, mSize.width, mSize.height); @@ -227,7 +227,7 @@ NS_IMETHODIMP gfxImageFrame::GetRect(nsIntRect &aRect) /* readonly attribute gfx_format format; */ NS_IMETHODIMP gfxImageFrame::GetFormat(gfx_format *aFormat) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; *aFormat = mFormat; @@ -237,7 +237,7 @@ NS_IMETHODIMP gfxImageFrame::GetFormat(gfx_format *aFormat) /* readonly attribute boolean needsBackground; */ NS_IMETHODIMP gfxImageFrame::GetNeedsBackground(PRBool *aNeedsBackground) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; *aNeedsBackground = (mFormat != gfxIFormats::RGB && @@ -250,7 +250,7 @@ NS_IMETHODIMP gfxImageFrame::GetNeedsBackground(PRBool *aNeedsBackground) /* readonly attribute unsigned long imageBytesPerRow; */ NS_IMETHODIMP gfxImageFrame::GetImageBytesPerRow(PRUint32 *aBytesPerRow) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; *aBytesPerRow = mImage->GetLineStride(); @@ -260,7 +260,7 @@ NS_IMETHODIMP gfxImageFrame::GetImageBytesPerRow(PRUint32 *aBytesPerRow) /* readonly attribute unsigned long imageDataLength; */ NS_IMETHODIMP gfxImageFrame::GetImageDataLength(PRUint32 *aBitsLength) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; *aBitsLength = mImage->GetLineStride() * mSize.height; @@ -270,7 +270,7 @@ NS_IMETHODIMP gfxImageFrame::GetImageDataLength(PRUint32 *aBitsLength) /* void getImageData([array, size_is(length)] out PRUint8 bits, out unsigned long length); */ NS_IMETHODIMP gfxImageFrame::GetImageData(PRUint8 **aData, PRUint32 *length) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; NS_ASSERTION(mMutable, "trying to get data on an immutable frame"); @@ -290,7 +290,7 @@ NS_IMETHODIMP gfxImageFrame::SetImageData(const PRUint8 *aData, PRUint32 aLength nsresult gfxImageFrame::SetData(const PRUint8 *aData, PRUint32 aLength, PRInt32 aOffset, PRBool aSetAlpha) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; NS_ASSERTION(mMutable, "trying to set data on an immutable frame"); @@ -376,7 +376,7 @@ nsresult gfxImageFrame::SetData(const PRUint8 *aData, PRUint32 aLength, /* void lockImageData (); */ NS_IMETHODIMP gfxImageFrame::LockImageData() { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; return mImage->LockImagePixels(PR_FALSE); @@ -385,7 +385,7 @@ NS_IMETHODIMP gfxImageFrame::LockImageData() /* void unlockImageData (); */ NS_IMETHODIMP gfxImageFrame::UnlockImageData() { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; return mImage->UnlockImagePixels(PR_FALSE); @@ -394,7 +394,7 @@ NS_IMETHODIMP gfxImageFrame::UnlockImageData() /* readonly attribute unsigned long alphaBytesPerRow; */ NS_IMETHODIMP gfxImageFrame::GetAlphaBytesPerRow(PRUint32 *aBytesPerRow) { - if (!mInitalized || !mImage->GetHasAlphaMask()) + if (!mInitialized || !mImage->GetHasAlphaMask()) return NS_ERROR_NOT_INITIALIZED; *aBytesPerRow = mImage->GetAlphaLineStride(); @@ -404,7 +404,7 @@ NS_IMETHODIMP gfxImageFrame::GetAlphaBytesPerRow(PRUint32 *aBytesPerRow) /* readonly attribute unsigned long alphaDataLength; */ NS_IMETHODIMP gfxImageFrame::GetAlphaDataLength(PRUint32 *aBitsLength) { - if (!mInitalized || !mImage->GetHasAlphaMask()) + if (!mInitialized || !mImage->GetHasAlphaMask()) return NS_ERROR_NOT_INITIALIZED; *aBitsLength = mImage->GetAlphaLineStride() * mSize.height; @@ -414,7 +414,7 @@ NS_IMETHODIMP gfxImageFrame::GetAlphaDataLength(PRUint32 *aBitsLength) /* void getAlphaData([array, size_is(length)] out PRUint8 bits, out unsigned long length); */ NS_IMETHODIMP gfxImageFrame::GetAlphaData(PRUint8 **aData, PRUint32 *length) { - if (!mInitalized || !mImage->GetHasAlphaMask()) + if (!mInitialized || !mImage->GetHasAlphaMask()) return NS_ERROR_NOT_INITIALIZED; NS_ASSERTION(mMutable, "trying to get data on an immutable frame"); @@ -434,7 +434,7 @@ NS_IMETHODIMP gfxImageFrame::SetAlphaData(const PRUint8 *aData, PRUint32 aLength /* void lockAlphaData (); */ NS_IMETHODIMP gfxImageFrame::LockAlphaData() { - if (!mInitalized || !mImage->GetHasAlphaMask()) + if (!mInitialized || !mImage->GetHasAlphaMask()) return NS_ERROR_NOT_INITIALIZED; return mImage->LockImagePixels(PR_TRUE); @@ -443,7 +443,7 @@ NS_IMETHODIMP gfxImageFrame::LockAlphaData() /* void unlockAlphaData (); */ NS_IMETHODIMP gfxImageFrame::UnlockAlphaData() { - if (!mInitalized || !mImage->GetHasAlphaMask()) + if (!mInitialized || !mImage->GetHasAlphaMask()) return NS_ERROR_NOT_INITIALIZED; return mImage->UnlockImagePixels(PR_TRUE); @@ -456,7 +456,7 @@ NS_IMETHODIMP gfxImageFrame::UnlockAlphaData() /* void drawTo */ NS_IMETHODIMP gfxImageFrame::DrawTo(gfxIImageFrame* aDst, PRInt32 aDX, PRInt32 aDY, PRInt32 aDWidth, PRInt32 aDHeight) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; nsCOMPtr img(do_GetInterface(aDst)); @@ -467,7 +467,7 @@ NS_IMETHODIMP gfxImageFrame::DrawTo(gfxIImageFrame* aDst, PRInt32 aDX, PRInt32 a /* attribute long timeout; */ NS_IMETHODIMP gfxImageFrame::GetTimeout(PRInt32 *aTimeout) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; // Ensure a minimal time between updates so we don't throttle the UI thread. @@ -493,7 +493,7 @@ NS_IMETHODIMP gfxImageFrame::GetTimeout(PRInt32 *aTimeout) NS_IMETHODIMP gfxImageFrame::SetTimeout(PRInt32 aTimeout) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; mTimeout = aTimeout; @@ -503,7 +503,7 @@ NS_IMETHODIMP gfxImageFrame::SetTimeout(PRInt32 aTimeout) /* attribute long frameDisposalMethod; */ NS_IMETHODIMP gfxImageFrame::GetFrameDisposalMethod(PRInt32 *aFrameDisposalMethod) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; *aFrameDisposalMethod = mDisposalMethod; @@ -511,7 +511,7 @@ NS_IMETHODIMP gfxImageFrame::GetFrameDisposalMethod(PRInt32 *aFrameDisposalMetho } NS_IMETHODIMP gfxImageFrame::SetFrameDisposalMethod(PRInt32 aFrameDisposalMethod) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; mDisposalMethod = aFrameDisposalMethod; @@ -521,7 +521,7 @@ NS_IMETHODIMP gfxImageFrame::SetFrameDisposalMethod(PRInt32 aFrameDisposalMethod /* attribute gfx_color backgroundColor; */ NS_IMETHODIMP gfxImageFrame::GetBackgroundColor(gfx_color *aBackgroundColor) { - if (!mInitalized || !mHasBackgroundColor) + if (!mInitialized || !mHasBackgroundColor) return NS_ERROR_NOT_INITIALIZED; *aBackgroundColor = mBackgroundColor; @@ -529,7 +529,7 @@ NS_IMETHODIMP gfxImageFrame::GetBackgroundColor(gfx_color *aBackgroundColor) } NS_IMETHODIMP gfxImageFrame::SetBackgroundColor(gfx_color aBackgroundColor) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; mBackgroundColor = aBackgroundColor; @@ -539,7 +539,7 @@ NS_IMETHODIMP gfxImageFrame::SetBackgroundColor(gfx_color aBackgroundColor) NS_IMETHODIMP gfxImageFrame::GetInterface(const nsIID & aIID, void * *result) { - if (!mInitalized) + if (!mInitialized) return NS_ERROR_NOT_INITIALIZED; NS_ENSURE_ARG_POINTER(result); diff --git a/mozilla/gfx/src/shared/gfxImageFrame.h b/mozilla/gfx/src/shared/gfxImageFrame.h index ac8efd10c91..59aa4cceb99 100644 --- a/mozilla/gfx/src/shared/gfxImageFrame.h +++ b/mozilla/gfx/src/shared/gfxImageFrame.h @@ -76,7 +76,7 @@ private: nsCOMPtr mImage; - PRPackedBool mInitalized; + PRPackedBool mInitialized; PRPackedBool mMutable; PRPackedBool mHasBackgroundColor; PRPackedBool mTopToBottom; diff --git a/mozilla/grendel/sources/GrendelLauncher.java b/mozilla/grendel/sources/GrendelLauncher.java index 61c9943966e..22bdcf631d1 100644 --- a/mozilla/grendel/sources/GrendelLauncher.java +++ b/mozilla/grendel/sources/GrendelLauncher.java @@ -16,7 +16,7 @@ import javax.swing.filechooser.FileSystemView; /** * This Class contains all the Inital Startup Logic for Grendel. - * DO NOT restucture Grendel's build without checking this class. + * DO NOT restructure Grendel's build without checking this class. * @author hash9 */ public final class GrendelLauncher { diff --git a/mozilla/grendel/sources/grendel/addressbook/jdbc/DBBuilder.java b/mozilla/grendel/sources/grendel/addressbook/jdbc/DBBuilder.java index e472bf510af..c6ef5beb409 100644 --- a/mozilla/grendel/sources/grendel/addressbook/jdbc/DBBuilder.java +++ b/mozilla/grendel/sources/grendel/addressbook/jdbc/DBBuilder.java @@ -35,7 +35,7 @@ public final class DBBuilder } /** - * @return true if the db was built sucessfully. Output is sent to st-out and st-err + * @return true if the db was built successfully. Output is sent to st-out and st-err */ public static boolean build(Connection connection) { diff --git a/mozilla/java/plugins/test/README b/mozilla/java/plugins/test/README index ac070a90e12..c61faf56c2f 100644 --- a/mozilla/java/plugins/test/README +++ b/mozilla/java/plugins/test/README @@ -48,7 +48,7 @@ How To Build and Run : * Edit /config/SecurityTests.keys - - Replace every occurance of Host sirius with your Host name + - Replace every occurrence of Host sirius with your Host name and port with your active port number. * cd /src/org/mozilla/pluglet/test/basic @@ -102,7 +102,7 @@ How To Build and Run : * Edit /config/SecurityTests.keys - - Replace every occurance of Host sirius with your Host name + - Replace every occurrence of Host sirius with your Host name and port with your active port number. * cd /src/org/mozilla/pluglet/test/basic diff --git a/mozilla/java/util/classes/org/mozilla/util/Utilities.java b/mozilla/java/util/classes/org/mozilla/util/Utilities.java index c2ce0d39e5f..23e891c13c3 100644 --- a/mozilla/java/util/classes/org/mozilla/util/Utilities.java +++ b/mozilla/java/util/classes/org/mozilla/util/Utilities.java @@ -124,7 +124,7 @@ public class Utilities extends Object { // We made it to the end without "break"ing! They must be equal... returnValue = true; } - } // else, they're definately not equal! + } // else, they're definitely not equal! } return returnValue; } diff --git a/mozilla/js/jsd/classes/netscape/jsdebug/SourceTextItem.java b/mozilla/js/jsd/classes/netscape/jsdebug/SourceTextItem.java index 31ad14b5ac8..ba3f80711f8 100644 --- a/mozilla/js/jsd/classes/netscape/jsdebug/SourceTextItem.java +++ b/mozilla/js/jsd/classes/netscape/jsdebug/SourceTextItem.java @@ -86,7 +86,7 @@ public class SourceTextItem public static final int CLEARED = 5; /** - * Constuct for url (which is immutable during the lifetime of the object) + * Construct for url (which is immutable during the lifetime of the object) *

* Presumably, text will be added later * @param url url or filename by which this object will be known @@ -97,7 +97,7 @@ public class SourceTextItem } /** - * Constuct for url with text and status + * Construct for url with text and status *

* @param url url or filename by which this object will be known * @param text source text this object should start with diff --git a/mozilla/js/jsd/corba/jsd_iiop.cpp b/mozilla/js/jsd/corba/jsd_iiop.cpp index abaab450cd4..63b7012085c 100644 --- a/mozilla/js/jsd/corba/jsd_iiop.cpp +++ b/mozilla/js/jsd/corba/jsd_iiop.cpp @@ -2234,7 +2234,7 @@ StepInto::step(JSDThreadState* jsdthreadstate) // doSomething(); // // The "i++" comes after the "doSomething" call as far as PCs go. - // But, in JS the line number associated with the "i++" instuction + // But, in JS the line number associated with the "i++" instruction // is that of the "for(...". So, the lines for the PC can look like // 1,1,2,1,2. Thus we are careful in deciding how to step. // @@ -2242,11 +2242,11 @@ StepInto::step(JSDThreadState* jsdthreadstate) prword_t topPC = _topPC(jsdthreadstate, topFrame); int topLine = _topLine(topScript, topPC); - // definately jumping back + // definitely jumping back if( topPC < topPCInitial && topLine != topLineInitial ) return STOP; - // definately jumping forward + // definitely jumping forward if( topLine > topLineInitial ) return STOP; @@ -2284,11 +2284,11 @@ StepOver::step(JSDThreadState* jsdthreadstate) prword_t topPC = _topPC(jsdthreadstate, topFrame); int topLine = _topLine(topScript, topPC); - // definately jumping back + // definitely jumping back if( topPC < topPCInitial && topLine != topLineInitial ) return STOP; - // definately jumping forward + // definitely jumping forward if( topLine > topLineInitial ) return STOP; diff --git a/mozilla/js/jsd/jsd.h b/mozilla/js/jsd/jsd.h index bbf7c286a2e..b0e72190b7d 100644 --- a/mozilla/js/jsd/jsd.h +++ b/mozilla/js/jsd/jsd.h @@ -297,7 +297,7 @@ struct JSDProperty struct JSDAtom { - char* str; /* must be first element in stuct for compare */ + char* str; /* must be first element in struct for compare */ intN refcount; }; diff --git a/mozilla/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StepInto.java b/mozilla/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StepInto.java index b5a6ff37217..80c4c81109d 100644 --- a/mozilla/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StepInto.java +++ b/mozilla/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StepInto.java @@ -75,17 +75,17 @@ class StepInto implements StepHandler // doSomething(); // // The "i++" comes after the "doSomething" call as far as PCs go. - // But, in JS the line number associated with the "i++" instuction + // But, in JS the line number associated with the "i++" instruction // is that of the "for(...". So, the lines for the PC can look like // 1,1,2,1,2. Thus we are careful in deciding how to step. // - // definately jumping back + // definitely jumping back if( pc.getPC() < _startPC.getPC() && sourceLocation.getLine() != _startSourceLocation.getLine() ) return STOP; - // definately jumping forward + // definitely jumping forward if( sourceLocation.getLine() > _startSourceLocation.getLine() ) return STOP; diff --git a/mozilla/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StepOver.java b/mozilla/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StepOver.java index fc05566378d..2a87724f0b1 100644 --- a/mozilla/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StepOver.java +++ b/mozilla/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StepOver.java @@ -81,12 +81,12 @@ class StepOver implements StepHandler break; } - // definately jumping back + // definitely jumping back if( pc.getPC() < _startPC.getPC() && sourceLocation.getLine() != _startSourceLocation.getLine() ) return STOP; - // definately jumping forward + // definitely jumping forward if( sourceLocation.getLine() > _startSourceLocation.getLine() ) return STOP; diff --git a/mozilla/js/jsdj/classes/netscape/jsdebug/SourceTextItem.java b/mozilla/js/jsdj/classes/netscape/jsdebug/SourceTextItem.java index 31ad14b5ac8..ba3f80711f8 100644 --- a/mozilla/js/jsdj/classes/netscape/jsdebug/SourceTextItem.java +++ b/mozilla/js/jsdj/classes/netscape/jsdebug/SourceTextItem.java @@ -86,7 +86,7 @@ public class SourceTextItem public static final int CLEARED = 5; /** - * Constuct for url (which is immutable during the lifetime of the object) + * Construct for url (which is immutable during the lifetime of the object) *

* Presumably, text will be added later * @param url url or filename by which this object will be known @@ -97,7 +97,7 @@ public class SourceTextItem } /** - * Constuct for url with text and status + * Construct for url with text and status *

* @param url url or filename by which this object will be known * @param text source text this object should start with diff --git a/mozilla/js/src/jsprvtd.h b/mozilla/js/src/jsprvtd.h index ed12f1bde5b..60c64554256 100644 --- a/mozilla/js/src/jsprvtd.h +++ b/mozilla/js/src/jsprvtd.h @@ -179,7 +179,7 @@ typedef void * The 'closure' param is as passed to JS_SetExecuteHook or JS_SetCallHook * for the 'before'invocation, but is whatever value is returned from that * invocation for the 'after' invocation. Thus, the hook implementor *could* - * allocate a stucture in the 'before' invocation and return a pointer to that + * allocate a structure in the 'before' invocation and return a pointer to that * structure. The pointer would then be handed to the hook for the 'after' * invocation. Alternately, the 'before' could just return the same value as * in 'closure' to cause the 'after' invocation to be called with the same diff --git a/mozilla/js2/src/js2engine.h b/mozilla/js2/src/js2engine.h index ab01345e44d..5a8796f678f 100644 --- a/mozilla/js2/src/js2engine.h +++ b/mozilla/js2/src/js2engine.h @@ -376,7 +376,7 @@ public: NonWithFrame *localFrame; ParameterFrame *parameterFrame; - js2val *parameterSlots; // just local copies of paramterFrame->argSlots + js2val *parameterSlots; // just local copies of parameterFrame->argSlots uint32 parameterCount; // ... and parameterFrame->argCount bool superConstructorCalled; diff --git a/mozilla/js2/src/js2metadata.cpp b/mozilla/js2/src/js2metadata.cpp index 3556c1d945d..e8ccb04cce6 100644 --- a/mozilla/js2/src/js2metadata.cpp +++ b/mozilla/js2/src/js2metadata.cpp @@ -5297,7 +5297,7 @@ XXX see EvalAttributeExpression, where identifiers are being handled for now... DEFINE_ROOTKEEPER(meta, rk2, argsObj); // argCount is the number of slots acquired by the frame, it will - // be the larger of the number of paramters defined or the number + // be the larger of the number of parameters defined or the number // of arguments passed. argCount = (frameSlots) ? frameSlots->size() : 0; if (argc > argCount) diff --git a/mozilla/js2/src/js2runtime.h b/mozilla/js2/src/js2runtime.h index 1737549d3c9..a82651e4a66 100644 --- a/mozilla/js2/src/js2runtime.h +++ b/mozilla/js2/src/js2runtime.h @@ -2034,7 +2034,7 @@ XXX ...couldn't get this to work... /* utility routines */ // Extract the operator from the string literal function name - // - requires the paramter count in order to distinguish + // - requires the parameter count in order to distinguish // between unary and binary operators. Operator getOperator(uint32 parameterCount, const String &name); diff --git a/mozilla/layout/base/nsCounterManager.cpp b/mozilla/layout/base/nsCounterManager.cpp index 27187372226..949b266f95b 100644 --- a/mozilla/layout/base/nsCounterManager.cpp +++ b/mozilla/layout/base/nsCounterManager.cpp @@ -82,7 +82,7 @@ nsCounterUseNode::GetText(nsString& aResult) nsBulletFrame::AppendCounterText(style, n->mValueAfter, aResult); if (i == 0) break; - NS_ASSERTION(mAllCounters, "yikes, separator is uninitalized"); + NS_ASSERTION(mAllCounters, "yikes, separator is uninitialized"); aResult.Append(separator); } } diff --git a/mozilla/layout/style/nsCSSStyleSheet.cpp b/mozilla/layout/style/nsCSSStyleSheet.cpp index 799333dab1e..a9425d1e6e6 100644 --- a/mozilla/layout/style/nsCSSStyleSheet.cpp +++ b/mozilla/layout/style/nsCSSStyleSheet.cpp @@ -1361,7 +1361,7 @@ nsCSSStyleSheet::~nsCSSStyleSheet() // not be released. The document will let us know when it is going // away. if (mRuleProcessors) { - NS_ASSERTION(mRuleProcessors->Count() == 0, "destucting sheet with rule processor reference"); + NS_ASSERTION(mRuleProcessors->Count() == 0, "destructing sheet with rule processor reference"); delete mRuleProcessors; // weak refs, should be empty here anyway } } diff --git a/mozilla/lib/mac/UserInterface/CSelector.h b/mozilla/lib/mac/UserInterface/CSelector.h index 39e2691f0f3..3876fdd0124 100644 --- a/mozilla/lib/mac/UserInterface/CSelector.h +++ b/mozilla/lib/mac/UserInterface/CSelector.h @@ -71,7 +71,7 @@ To reduce the volume of code and APIs, clients can ask for the underlying list of selectors displayed by the pane, and make changes directly to that list. Right now they get an actual reference to the list. I want to change that to some kind of `ticket' that acts like a reference to the list, but automatically notifies the pane that the - list has changed when the ticket is destucted. In the mean time, after a client has modified the list, but before + list has changed when the ticket is destroyed. In the mean time, after a client has modified the list, but before they have called |notice_selectors_changed()|, the pane will not acurately reflect the contents of the list, and the results of |active_selector(void)| are not necessarily valid. See below. diff --git a/mozilla/mail/locales/en-US/chrome/messenger/importDialog.dtd b/mozilla/mail/locales/en-US/chrome/messenger/importDialog.dtd index 9f1777a83d3..45ece3e0702 100644 --- a/mozilla/mail/locales/en-US/chrome/messenger/importDialog.dtd +++ b/mozilla/mail/locales/en-US/chrome/messenger/importDialog.dtd @@ -39,7 +39,7 @@ LOCALIZATION NOTE : 'Communicator 4.x' is the used for previous versions of Netscape Communicator, Please translate using the brandname in respective languages for Netscape Communicator 4 releases. -LOCALIZATION NOTE : Do not translate any of the occurances of the word +LOCALIZATION NOTE : Do not translate any of the occurrences of the word "&brandShortName;" below. --> diff --git a/mozilla/mailnews/imap/src/nsImapProtocol.cpp b/mozilla/mailnews/imap/src/nsImapProtocol.cpp index 6660fe48575..87b73eb58bb 100644 --- a/mozilla/mailnews/imap/src/nsImapProtocol.cpp +++ b/mozilla/mailnews/imap/src/nsImapProtocol.cpp @@ -476,7 +476,7 @@ nsresult nsImapProtocol::Initialize(nsIImapHostSessionList * aHostSessionList, n nsIEventQueue * aSinkEventQueue) { NS_PRECONDITION(aSinkEventQueue && aHostSessionList, - "oops...trying to initalize with a null sink event queue!"); + "oops...trying to initialize with a null sink event queue!"); if (!aSinkEventQueue || !aHostSessionList || !aServer) return NS_ERROR_NULL_POINTER; diff --git a/mozilla/mailnews/mime/src/mimetpfl.cpp b/mozilla/mailnews/mime/src/mimetpfl.cpp index 5528e7119d7..9bf199d65b1 100644 --- a/mozilla/mailnews/mime/src/mimetpfl.cpp +++ b/mozilla/mailnews/mime/src/mimetpfl.cpp @@ -558,7 +558,7 @@ static void Update_in_tag_info(PRBool *a_in_tag, /* IN/OUT */ // Not in a tag. // Check if we are entering a tag by looking for '<'. - // All normal occurances of '<' should have been replaced + // All normal occurrences of '<' should have been replaced // by < if ('<' == a_current_char) { *a_in_tag = PR_TRUE; diff --git a/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp b/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp index 02fbfd9d289..030c766a409 100644 --- a/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp +++ b/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp @@ -429,7 +429,7 @@ int nsGIFDecoder2::HaveDecodedRow( format += 1; // RGB to BGR #endif - // initalize the frame and append it to the container + // initialize the frame and append it to the container decoder->mImageFrame = do_CreateInstance("@mozilla.org/gfx/image/frame;2"); if (!decoder->mImageFrame || NS_FAILED(decoder->mImageFrame->Init( decoder->mGIFStruct->x_offset, decoder->mGIFStruct->y_offset, diff --git a/mozilla/modules/libpr0n/decoders/png/nsPNGDecoder.cpp b/mozilla/modules/libpr0n/decoders/png/nsPNGDecoder.cpp index c0690d1d676..e7304b9bff8 100644 --- a/mozilla/modules/libpr0n/decoders/png/nsPNGDecoder.cpp +++ b/mozilla/modules/libpr0n/decoders/png/nsPNGDecoder.cpp @@ -311,7 +311,7 @@ info_callback(png_structp png_ptr, png_infop info_ptr) decoder->mImageLoad->SetImage(decoder->mImage); - // since the png is only 1 frame, initalize the container to the width and height of the frame + // since the png is only 1 frame, initialize the container to the width and height of the frame decoder->mImage->Init(width, height, decoder->mObserver); if (decoder->mObserver) @@ -338,7 +338,7 @@ info_callback(png_structp png_ptr, png_infop info_ptr) format += 1; // RGB to BGR #endif - // then initalize the frame and append it to the container + // then initialize the frame and append it to the container nsresult rv = decoder->mFrame->Init(0, 0, width, height, format, 24); if (NS_FAILED(rv)) longjmp(decoder->mPNG->jmpbuf, 5); // NS_ERROR_OUT_OF_MEMORY diff --git a/mozilla/modules/libpr0n/public/imgIDecoder.idl b/mozilla/modules/libpr0n/public/imgIDecoder.idl index 30d1d1a73d0..45d8598d3b9 100644 --- a/mozilla/modules/libpr0n/public/imgIDecoder.idl +++ b/mozilla/modules/libpr0n/public/imgIDecoder.idl @@ -53,7 +53,7 @@ interface imgILoad; interface imgIDecoder : nsISupports { /** - * Initalize an image decoder. + * Initialize an image decoder. * @param aRequest the request that owns the decoder. * * @note The decode should QI \a aLoad to an imgIDecoderObserver diff --git a/mozilla/modules/oji/tests/FAQ b/mozilla/modules/oji/tests/FAQ index 51676a0c105..751bee8887d 100644 --- a/mozilla/modules/oji/tests/FAQ +++ b/mozilla/modules/oji/tests/FAQ @@ -176,7 +176,7 @@ NOTE: These API tests are build using Gnu Compiler gcc. * Check /.mozilla/default/prefs.js (on Solaris/Linux) or c:/Program Files/Mozilla/Users50/Default/prefs.js (on Win32) - file. If it has the follwing entries + file. If it has the following entries user_pref("capability.principal.codebase.p0.granted", "UniversalXPConnect"); user_pref("capability.principal.codebase.p0.id", "file://"); @@ -272,7 +272,7 @@ NOTE: These API tests are build using Gnu Compiler gcc. Go to /jre/bin directory. Invoke the 'ControlPanel' executable. (On Win32 platforms click on Start->Settings->Control Panel->Duke icon) - In the Java RunTime Parameters Text Field, add the follwing entry + In the Java RunTime Parameters Text Field, add the following entry -Xbootclasspath/a:/modules/oji/tests/build/classes where is absolute path to mozilla dir. diff --git a/mozilla/modules/plugin/base/src/nsJSNPRuntime.cpp b/mozilla/modules/plugin/base/src/nsJSNPRuntime.cpp index 76cc67636aa..f6d432a727c 100644 --- a/mozilla/modules/plugin/base/src/nsJSNPRuntime.cpp +++ b/mozilla/modules/plugin/base/src/nsJSNPRuntime.cpp @@ -194,7 +194,7 @@ OnWrapperDestroyed() if (sJSObjWrappers.ops) { NS_ASSERTION(sJSObjWrappers.entryCount == 0, "Uh, hash not empty?"); - // No more wrappers, and our hash was initalized. Finish the + // No more wrappers, and our hash was initialized. Finish the // hash to prevent leaking it. PL_DHashTableFinish(&sJSObjWrappers); @@ -204,7 +204,7 @@ OnWrapperDestroyed() if (sNPObjWrappers.ops) { NS_ASSERTION(sNPObjWrappers.entryCount == 0, "Uh, hash not empty?"); - // No more wrappers, and our hash was initalized. Finish the + // No more wrappers, and our hash was initialized. Finish the // hash to prevent leaking it. PL_DHashTableFinish(&sNPObjWrappers); @@ -781,7 +781,7 @@ nsJSObjWrapper::GetNewOrUsed(NPP npp, JSContext *cx, JSObject *obj) } if (!sJSObjWrappers.ops) { - // No hash yet (or any more), initalize it. + // No hash yet (or any more), initialize it. static PLDHashTableOps ops = { @@ -1247,7 +1247,7 @@ nsNPObjWrapper::GetNewOrUsed(NPP npp, JSContext *cx, NPObject *npobj) } if (!sNPObjWrappers.ops) { - // No hash yet (or any more), initalize it. + // No hash yet (or any more), initialize it. if (!PL_DHashTableInit(&sNPObjWrappers, PL_DHashGetStubOps(), nsnull, sizeof(NPObjWrapperHashEntry), 16)) { diff --git a/mozilla/modules/plugin/samples/npthread/windows/np_entry.cpp b/mozilla/modules/plugin/samples/npthread/windows/np_entry.cpp index d3d992ee189..cd3407044f2 100644 --- a/mozilla/modules/plugin/samples/npthread/windows/np_entry.cpp +++ b/mozilla/modules/plugin/samples/npthread/windows/np_entry.cpp @@ -72,7 +72,7 @@ NPError WINAPI NP_GetEntryPoints(NPPluginFuncs* aPluginFuncs) NPError WINAPI NP_Initialize(NPNetscapeFuncs* aNetscapeFuncs) { - dbgOut1("wrapper: NP_Initalize"); + dbgOut1("wrapper: NP_Initialize"); if(aNetscapeFuncs == NULL) return NPERR_INVALID_FUNCTABLE_ERROR; diff --git a/mozilla/modules/rdf/src/ht.h b/mozilla/modules/rdf/src/ht.h index 88524f3f2a2..384f8c1655b 100644 --- a/mozilla/modules/rdf/src/ht.h +++ b/mozilla/modules/rdf/src/ht.h @@ -223,7 +223,7 @@ typedef struct _HT_ResourceStruct { uint16 flags; uint16 depth; HT_Resource next; - /* a pane or view might have multiple occurances of a RDF_Resource. + /* a pane or view might have multiple occurrences of a RDF_Resource. The hash table just points to the first of them. This allows us to make a linked list of it */ } HT_ResourceStruct; diff --git a/mozilla/modules/softupdt/classes/netscape/softupdate/SoftwareUpdate.java b/mozilla/modules/softupdt/classes/netscape/softupdate/SoftwareUpdate.java index 7d5c1c81606..4111f1e915e 100644 --- a/mozilla/modules/softupdt/classes/netscape/softupdate/SoftwareUpdate.java +++ b/mozilla/modules/softupdt/classes/netscape/softupdate/SoftwareUpdate.java @@ -557,7 +557,7 @@ final public class SoftwareUpdate { versionInfo = inVInfo; installedFiles = new java.util.Vector(); - /* JAR initalization */ + /* JAR initialization */ /* open the file, create a principal out of installer file certificate */ OpenJARFile(); InitializeInstallerCertificate(); diff --git a/mozilla/modules/softupdt/src/nsSoftwareUpdate.cpp b/mozilla/modules/softupdt/src/nsSoftwareUpdate.cpp index f982dec1f0d..171769ab56f 100644 --- a/mozilla/modules/softupdt/src/nsSoftwareUpdate.cpp +++ b/mozilla/modules/softupdt/src/nsSoftwareUpdate.cpp @@ -568,7 +568,7 @@ PRInt32 nsSoftwareUpdate::StartInstall(char* vrPackageName, versionInfo = inVInfo; installedFiles = new nsVector(); - /* JAR initalization */ + /* JAR initialization */ /* open the file, create a principal out of installer file certificate */ errcode = OpenJARFile(errorMsg); if (*errorMsg != NULL) diff --git a/mozilla/msgsdk/C/src/nsio.c b/mozilla/msgsdk/C/src/nsio.c index 2f490ea0968..ae9179894a0 100644 --- a/mozilla/msgsdk/C/src/nsio.c +++ b/mozilla/msgsdk/C/src/nsio.c @@ -44,7 +44,7 @@ int IO_checkTimeout( IO_t * in_pIO ); void IO_resetFunctions( IO_t * in_pIO ); int UpdateBuffer( IO_t * in_pIO ); -/* Initalize the IO structure. */ +/* Initialize the IO structure. */ int IO_initialize( IO_t * in_pIO, unsigned int in_readBufferLimit, unsigned int in_writeBufferLimit ) diff --git a/mozilla/mstone/bin/args.pl b/mozilla/mstone/bin/args.pl index e08c3dfac7f..1bb6899831e 100644 --- a/mozilla/mstone/bin/args.pl +++ b/mozilla/mstone/bin/args.pl @@ -152,7 +152,7 @@ sub fileInsertAfter { print NEW $newtext; # insert new text $foundit++; - last; # only change first occurance + last; # only change first occurrence } if ($foundit) { # copy rest of file diff --git a/mozilla/mstone/src/http-util.c b/mozilla/mstone/src/http-util.c index e9e163f7836..eeb47554da7 100644 --- a/mozilla/mstone/src/http-util.c +++ b/mozilla/mstone/src/http-util.c @@ -378,7 +378,7 @@ HttpCommandResponse ( ret = HttpReadResponse(ptcx, cmd, me, response, resplen, msgParse); event_stop(ptcx, timer); if (ret == 0) { /* got nothing */ - /* Probably an IO error. It will be definate if re-tried. */ + /* Probably an IO error. It will be definite if re-tried. */ MS_usleep (5000); /* time for bytes to show up */ continue; /* just re-try it */ } else if (ret == -1) { /* IO error */ diff --git a/mozilla/netwerk/base/src/nsSocketTransport2.cpp b/mozilla/netwerk/base/src/nsSocketTransport2.cpp index d37d94fecd5..3ed29f4d1d0 100644 --- a/mozilla/netwerk/base/src/nsSocketTransport2.cpp +++ b/mozilla/netwerk/base/src/nsSocketTransport2.cpp @@ -123,7 +123,7 @@ static PRErrorCode RandomizeConnectError(PRErrorCode code) { // // To test out these errors, load http://www.yahoo.com/. It should load - // correctly despite the random occurance of these errors. + // correctly despite the random occurrence of these errors. // int n = rand(); if (n > RAND_MAX/2) { diff --git a/mozilla/netwerk/base/src/nsURLParsers.cpp b/mozilla/netwerk/base/src/nsURLParsers.cpp index dc3d39d119c..555fb83e08b 100644 --- a/mozilla/netwerk/base/src/nsURLParsers.cpp +++ b/mozilla/netwerk/base/src/nsURLParsers.cpp @@ -242,7 +242,7 @@ nsBaseURLParser::ParsePath(const char *path, PRInt32 pathLen, // XXX PL_strnpbrk would be nice, but it's buggy - // search for first occurance of either ? or # + // search for first occurrence of either ? or # const char *query_beg = 0, *query_end = 0; const char *ref_beg = 0; const char *p = 0; diff --git a/mozilla/netwerk/protocol/http/src/nsHttpResponseHead.cpp b/mozilla/netwerk/protocol/http/src/nsHttpResponseHead.cpp index b6225915c85..1d503f9a856 100644 --- a/mozilla/netwerk/protocol/http/src/nsHttpResponseHead.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHttpResponseHead.cpp @@ -630,12 +630,12 @@ nsHttpResponseHead::ParseCacheControl(const char *val) return; } - // search header value for occurance(s) of "no-cache" but ignore - // occurance(s) of "no-cache=blah" + // search header value for occurrence(s) of "no-cache" but ignore + // occurrence(s) of "no-cache=blah" if (nsHttp::FindToken(val, "no-cache", HTTP_HEADER_VALUE_SEPS)) mCacheControlNoCache = PR_TRUE; - // search header value for occurance of "no-store" + // search header value for occurrence of "no-store" if (nsHttp::FindToken(val, "no-store", HTTP_HEADER_VALUE_SEPS)) mCacheControlNoStore = PR_TRUE; } diff --git a/mozilla/parser/htmlparser/src/CNavDTD.h b/mozilla/parser/htmlparser/src/CNavDTD.h index dd91f1aa105..9255b9cd88b 100644 --- a/mozilla/parser/htmlparser/src/CNavDTD.h +++ b/mozilla/parser/htmlparser/src/CNavDTD.h @@ -249,10 +249,10 @@ private: eHTMLTags GetTopNode() const; /** - * Finds the topmost occurance of given tag within context vector stack. + * Finds the topmost occurrence of given tag within context vector stack. * * @param tag to be found - * @return index of topmost tag occurance -- may be -1 (kNotFound). + * @return index of topmost tag occurrence -- may be -1 (kNotFound). */ PRInt32 LastOf(eHTMLTags aTagSet[], PRInt32 aCount) const; diff --git a/mozilla/storage/src/mozStorageAsyncIO.cpp b/mozilla/storage/src/mozStorageAsyncIO.cpp index 443d23f99f6..10b99f959ed 100644 --- a/mozilla/storage/src/mozStorageAsyncIO.cpp +++ b/mozilla/storage/src/mozStorageAsyncIO.cpp @@ -1398,7 +1398,7 @@ ProcessOneMessage(AsyncMessage* aMessage) // write queue is empty. // // If both of the above variables are false, this procedure runs -// indefinately, waiting for operations to be added to the write queue and +// indefinitely, waiting for operations to be added to the write queue and // processing them in the order in which they arrive. // // An artifical delay of async.ioDelay milliseconds is inserted before each diff --git a/mozilla/toolkit/components/printing/content/printjoboptions.js b/mozilla/toolkit/components/printing/content/printjoboptions.js index 67536c95293..41a00cd9593 100644 --- a/mozilla/toolkit/components/printing/content/printjoboptions.js +++ b/mozilla/toolkit/components/printing/content/printjoboptions.js @@ -838,7 +838,7 @@ function loadDialog() dialog.cmdInput.value = print_command; dialog.jobTitleInput.value = print_jobtitle; - /* First initalize with the hardcoded defaults... */ + /* First initialize with the hardcoded defaults... */ dialog.topInput.value = "0.04"; dialog.bottomInput.value = "0.04"; dialog.leftInput.value = "0.04"; diff --git a/mozilla/tools/trace-malloc/spacetrace.c b/mozilla/tools/trace-malloc/spacetrace.c index b6e69519f86..a2f7793a70a 100644 --- a/mozilla/tools/trace-malloc/spacetrace.c +++ b/mozilla/tools/trace-malloc/spacetrace.c @@ -314,7 +314,7 @@ initOptions(int aArgCount, char **aArgArray) } /* - ** initalize the categories + ** initialize the categories */ initCategories(&globals); @@ -5790,7 +5790,7 @@ handleClient(void *inArg) */ PR_fprintf(aFD, "HTTP/1.1 200 OK%s", crlf); PR_fprintf(aFD, "Server: %s%s", - "$Id: spacetrace.c,v 1.52 2005-11-25 21:57:05 timeless%mozdev.org Exp $", + "$Id: spacetrace.c,v 1.53 2006-02-23 09:36:40 timeless%mozdev.org Exp $", crlf); PR_fprintf(aFD, "Content-type: "); if (NULL != strstr(start, ".png")) { diff --git a/mozilla/widget/src/beos/nsDeviceContextSpecB.h b/mozilla/widget/src/beos/nsDeviceContextSpecB.h index d1b0e772394..d8eb837e08a 100644 --- a/mozilla/widget/src/beos/nsDeviceContextSpecB.h +++ b/mozilla/widget/src/beos/nsDeviceContextSpecB.h @@ -58,7 +58,7 @@ class nsDeviceContextSpecBeOS : public nsIDeviceContextSpec { public: /** - * Construct a nsDeviceContextSpecMac, which is an object which contains and manages a mac printrecord + * Construct a nsDeviceContextSpecBeOS, which is an object which contains and manages a mac printrecord * @update dc 12/02/98 */ nsDeviceContextSpecBeOS(); @@ -114,7 +114,7 @@ public: NS_IMETHOD GetUserCancelled( PRBool &aCancel ); /** - * Destuct a nsDeviceContextSpecMac, this will release the printrecord + * Destructor for nsDeviceContextSpecBeOS, this will release the printrecord * @update dc 2/16/98 */ protected: diff --git a/mozilla/widget/src/cocoa/nsChildView.mm b/mozilla/widget/src/cocoa/nsChildView.mm index d7453995e73..333742ab613 100644 --- a/mozilla/widget/src/cocoa/nsChildView.mm +++ b/mozilla/widget/src/cocoa/nsChildView.mm @@ -388,7 +388,7 @@ nsresult nsChildView::StandardCreate(nsIWidget *aParent, // if our parent is a popup window, we're most certainly coming from a