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
This commit is contained in:
timeless%mozdev.org 2006-02-23 09:36:43 +00:00
parent d41b46b313
commit af51e73d0e
89 changed files with 185 additions and 185 deletions

View File

@ -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

View File

@ -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

View File

@ -60,7 +60,7 @@ var hPrefWindow =
// properties
queuedPanel : null,
initalized : false,
initialized : false,
cancelHandlers : [],
okHandlers : [],

View File

@ -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
*

View File

@ -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
{

View File

@ -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
{

View File

@ -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 */

View File

@ -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;

View File

@ -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;

View File

@ -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 )

View File

@ -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

View File

@ -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 {

View File

@ -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.

View File

@ -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
*/

View File

@ -3902,7 +3902,7 @@ nsDocument::SetUserData(const nsINode *aObject,
#ifdef DEBUG
nsCOMPtr<nsINode> 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<nsINode> 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<nsINode> 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<nsINode> 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 };

View File

@ -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() {

View File

@ -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();

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -50,7 +50,7 @@ struct Context
Uint32 EDI;
Uint32* sourceEBP;
Uint32* sucessorEBP;
Uint32* successorEBP;
Uint8* sourceAddress;

View File

@ -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);

View File

@ -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);
};

View File

@ -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:

View File

@ -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"]);

View File

@ -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;

View File

@ -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<nsIImage> 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);

View File

@ -76,7 +76,7 @@ private:
nsCOMPtr<nsIImage> mImage;
PRPackedBool mInitalized;
PRPackedBool mInitialized;
PRPackedBool mMutable;
PRPackedBool mHasBackgroundColor;
PRPackedBool mTopToBottom;

View File

@ -16,7 +16,7 @@ import javax.swing.filechooser.FileSystemView;
/**
* This Class contains all the Inital Startup Logic for Grendel.
* <strong>DO NOT restucture Grendel's build without checking this class.</strong>
* <strong>DO NOT restructure Grendel's build without checking this class.</strong>
* @author hash9
*/
public final class GrendelLauncher {

View File

@ -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)
{

View File

@ -48,7 +48,7 @@ How To Build and Run :
* Edit <TEST_TOP_DIR>/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 <TEST_TOP_DIR>/src/org/mozilla/pluglet/test/basic
@ -102,7 +102,7 @@ How To Build and Run :
* Edit <TEST_TOP_DIR>/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 <TEST_TOP_DIR>/src/org/mozilla/pluglet/test/basic

View File

@ -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;
}

View File

@ -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)
* <p>
* 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
* <p>
* @param url url or filename by which this object will be known
* @param text source text this object should start with

View File

@ -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;

View File

@ -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;
};

View File

@ -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;

View File

@ -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;

View File

@ -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)
* <p>
* 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
* <p>
* @param url url or filename by which this object will be known
* @param text source text this object should start with

View File

@ -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

View File

@ -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;

View File

@ -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)

View File

@ -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);

View File

@ -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);
}
}

View File

@ -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
}
}

View File

@ -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.

View File

@ -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.
-->

View File

@ -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;

View File

@ -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 &lt;
if ('<' == a_current_char) {
*a_in_tag = PR_TRUE;

View File

@ -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,

View File

@ -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

View File

@ -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

View File

@ -176,7 +176,7 @@ NOTE: These API tests are build using Gnu Compiler gcc.
* Check <home dir>/.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 <JDKHOME>/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:<mozilla dir>/modules/oji/tests/build/classes
where <mozilla dir> is absolute path to mozilla dir.

View File

@ -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)) {

View File

@ -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;

View File

@ -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;

View File

@ -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();

View File

@ -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)

View File

@ -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 )

View File

@ -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

View File

@ -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 */

View File

@ -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) {

View File

@ -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;

View File

@ -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;
}

View File

@ -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;

View File

@ -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

View File

@ -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";

View File

@ -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")) {

View File

@ -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:

View File

@ -388,7 +388,7 @@ nsresult nsChildView::StandardCreate(nsIWidget *aParent,
// if our parent is a popup window, we're most certainly coming from a <select> list dropdown which
// we handle in a different way than other platforms. It's ok that we don't have a parent
// view because we bailed before even creating the cocoa widgetry and as a result, we
// don't need to assert. However, if that's not the case, we definately want to assert
// don't need to assert. However, if that's not the case, we definitely want to assert
// to show views aren't getting correctly parented.
if ( aParent ) {
nsWindowType windowType;

View File

@ -49,7 +49,7 @@ class nsDeviceContextSpecX : public nsIDeviceContextSpec, public nsIPrintingCont
{
public:
/**
* Construct a nsDeviceContextSpecMac, which is an object which contains and manages a mac printrecord
* Construct a nsDeviceContextSpecX, which is an object which contains and manages a mac printrecord
* @update dc 12/02/98
*/
nsDeviceContextSpecX();
@ -57,7 +57,7 @@ public:
NS_DECL_ISUPPORTS
/**
* Initialize the nsDeviceContextSpecMac for use. This will allocate a printrecord for use
* Initialize the nsDeviceContextSpecX for use. This will allocate a printrecord for use
* @update dc 12/02/98
* @param aIsPrintPreview TRUE if doing print preview, FALSE if normal printing.
* @return error status
@ -97,7 +97,7 @@ public:
NS_IMETHOD GetPageRect(double* aTop, double* aLeft, double* aBottom, double* aRight);
protected:
/**
* Destuct a nsDeviceContextSpecMac, this will release the printrecord
* Destructor for nsDeviceContextSpecX, this will release the printrecord
* @update dc 12/02/98
*/
virtual ~nsDeviceContextSpecX();

View File

@ -807,12 +807,12 @@ void nsMacEventHandler::InitializeKeyEvent(nsKeyEvent& aKeyEvent,
PRBool aConvertChar)
{
//
// initalize the basic message parts
// initialize the basic message parts
//
aKeyEvent.time = PR_IntervalNow();
//
// initalize the GUI event parts
// initialize the GUI event parts
//
aKeyEvent.widget = aFocusedWidget;
aKeyEvent.nativeMsg = (void*)&aOSEvent;

View File

@ -71,7 +71,7 @@ class nsDeviceContextSpecOS2 : public nsIDeviceContextSpec
{
public:
/**
* Construct a nsDeviceContextSpecMac, which is an object which contains and manages a mac printrecord
* Construct a nsDeviceContextSpecOS2, which is an object which contains and manages a mac printrecord
* @update dc 12/02/98
*/
nsDeviceContextSpecOS2();
@ -79,7 +79,7 @@ public:
NS_DECL_ISUPPORTS
/**
* Initialize the nsDeviceContextSpecMac for use. This will allocate a printrecord for use
* Initialize the nsDeviceContextSpecOS2 for use. This will allocate a printrecord for use
* @update dc 2/16/98
* @param aIsPrintPreview if PR_TRUE, creating Spec for PrintPreview
* @return error status
@ -101,7 +101,7 @@ public:
NS_IMETHOD GetPRTQUEUE(PRTQUEUE *&p);
/**
* Destuct a nsDeviceContextSpecMac, this will release the printrecord
* Destructor for nsDeviceContextSpecOS2, this will release the printrecord
* @update dc 2/16/98
*/
virtual ~nsDeviceContextSpecOS2();

View File

@ -461,7 +461,7 @@ nsDataObj :: GetDib ( const nsACString& inFlavor, FORMATETC &, STGMEDIUM & aSTG
}
} // if we have an image
else
NS_WARNING ( "Definately not an image on clipboard" );
NS_WARNING ( "Definitely not an image on clipboard" );
#endif
return ResultFromScode(result);

View File

@ -147,8 +147,8 @@ class nsDataObj : public IDataObject
// S_FALSE otherwise.
STDMETHODIMP QueryGetData (LPFORMATETC pFE);
// Set pCanonFE to the cannonical format of pFE if one exists and return
// NOERROR, otherwise return DATA_S_SAMEFORMATETC. A cannonical format
// Set pCanonFE to the canonical format of pFE if one exists and return
// NOERROR, otherwise return DATA_S_SAMEFORMATETC. A canonical format
// implies an identical rendering.
STDMETHODIMP GetCanonicalFormatEtc (LPFORMATETC pFE, LPFORMATETC pCanonFE);

View File

@ -147,8 +147,8 @@ class nsDataObjCollection : public IDataObject, public nsIDataObjCollection //,
// S_FALSE otherwise.
STDMETHODIMP QueryGetData (LPFORMATETC pFE);
// Set pCanonFE to the cannonical format of pFE if one exists and return
// NOERROR, otherwise return DATA_S_SAMEFORMATETC. A cannonical format
// Set pCanonFE to the canonical format of pFE if one exists and return
// NOERROR, otherwise return DATA_S_SAMEFORMATETC. A canonical format
// implies an identical rendering.
STDMETHODIMP GetCanonicalFormatEtc (LPFORMATETC pFE, LPFORMATETC pCanonFE);

View File

@ -808,7 +808,7 @@ nsWindow::~nsWindow()
delete mFont;
if (mCursor == -1) {
// A sucessfull SetCursor call will destroy the custom cursor, if it's ours
// A successfull SetCursor call will destroy the custom cursor, if it's ours
SetCursor(eCursor_standard);
}

View File

@ -42,7 +42,7 @@
%}
/**
* nsITimelineService is used to constuct a timeline of program
* nsITimelineService is used to construct a timeline of program
* execution. The timeline is output to a file, either stderr or the
* value of the environment variable NS_TIMELINE_LOG_FILE. On the
* Mac, the timeline is output to the file named "timeline.txt". The

View File

@ -1413,7 +1413,7 @@ nsLocalFile::CopyMove(nsIFile *aParentDir, const nsACString &newName, PRBool mov
rv = dirEnum.Init(this);
if (NS_FAILED(rv)) {
NS_WARNING("dirEnum initalization failed");
NS_WARNING("dirEnum initialization failed");
return rv;
}

View File

@ -1367,7 +1367,7 @@ nsLocalFile::CopyMove(nsIFile *aParentDir, const nsACString &newName, PRBool fol
rv = dirEnum.Init(this);
if (NS_FAILED(rv)) {
NS_WARNING("dirEnum initalization failed");
NS_WARNING("dirEnum initialization failed");
return rv;
}

View File

@ -88,7 +88,7 @@ SharedStub PROC
mov rdx, rbx
; 1st paramter (this) (not need re-assign)
; 1st parameter (this) (not need re-assign)
;mov rcx, [rsp+16+112]

View File

@ -272,7 +272,7 @@ NS_COM void ToUpperCase( const nsACString& aSource, nsACString& aDest );
NS_COM void ToLowerCase( const nsACString& aSource, nsACString& aDest );
/**
* Finds the leftmost occurance of |aPattern|, if any in the range |aSearchStart|..|aSearchEnd|.
* Finds the leftmost occurrence of |aPattern|, if any in the range |aSearchStart|..|aSearchEnd|.
*
* Returns |PR_TRUE| if a match was found, and adjusts |aSearchStart| and |aSearchEnd| to
* point to the match. If no match was found, returns |PR_FALSE| and makes |aSearchStart == aSearchEnd|.
@ -306,7 +306,7 @@ inline PRBool FindInReadable( const nsACString& aPattern, const nsACString& aSou
NS_COM PRBool CaseInsensitiveFindInReadable( const nsACString& aPattern, nsACString::const_iterator&, nsACString::const_iterator& );
/**
* Finds the rightmost occurance of |aPattern|
* Finds the rightmost occurrence of |aPattern|
* Returns |PR_TRUE| if a match was found, and adjusts |aSearchStart| and |aSearchEnd| to
* point to the match. If no match was found, returns |PR_FALSE| and makes |aSearchStart == aSearchEnd|.
*
@ -317,7 +317,7 @@ NS_COM PRBool RFindInReadable( const nsAString& aPattern, nsAString::const_itera
NS_COM PRBool RFindInReadable( const nsACString& aPattern, nsACString::const_iterator&, nsACString::const_iterator&, const nsCStringComparator& = nsDefaultCStringComparator() );
/**
* Finds the leftmost occurance of |aChar|, if any in the range
* Finds the leftmost occurrence of |aChar|, if any in the range
* |aSearchStart|..|aSearchEnd|.
*
* Returns |PR_TRUE| if a match was found, and adjusts |aSearchStart| to

View File

@ -326,13 +326,13 @@ class nsTAString_CharT
/**
* Returns the number of occurances of the given character.
* Returns the number of occurrences of the given character.
*/
NS_COM size_type NS_FASTCALL CountChar( char_type ) const;
/**
* Locates the offset of the first occurance of the character. Pass a
* Locates the offset of the first occurrence of the character. Pass a
* non-zero offset to control where the search begins.
*/

View File

@ -329,7 +329,7 @@ class nsTString_CharT : public nsTSubstring_CharT
/**
* These methods are used to remove all occurances of the
* These methods are used to remove all occurrences of the
* characters found in aSet from this string.
*
* @param aSet -- characters to be cut from this

View File

@ -418,7 +418,7 @@ class nsTSubstring_CharT : public nsTAString_CharT
NS_COM void NS_FASTCALL SetIsVoid( PRBool );
/**
* This method is used to remove all occurances of aChar from this
* This method is used to remove all occurrences of aChar from this
* string.
*
* @param aChar -- char to be stripped

View File

@ -208,7 +208,7 @@ static PRBool test_append()
return PR_TRUE;
}
// Replace all occurances of |matchVal| with |newVal|
// Replace all occurrences of |matchVal| with |newVal|
static void ReplaceSubstring( nsACString& str,
const nsACString& matchVal,
const nsACString& newVal )

View File

@ -73,7 +73,7 @@ int WINAPI WinMain(HINSTANCE inst,
rv = NS_InitXPCOM2(getter_AddRefs(servMan), nsnull, nsnull);
if(NS_FAILED(rv))
{
ErrorBox("Failed to initalize xpcom.");
ErrorBox("Failed to initialize xpcom.");
return -1;
}

View File

@ -40,7 +40,7 @@ and window icons (to appear in the upper left corner of various windows).
Requirements:
Each icon should contain the follwing devices images:
Each icon should contain the following devices images:
48x48, 32x32, and 16x16 - 16 color
48x48, 32x32, and 16x16 - True color
48x48, 32x32, and 16x16 - True color XP (Contains alpha shadows)

View File

@ -837,7 +837,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";