mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 106386 Correct misspellings in source code
patch by ajvincent@gmail.com r=dbradley rs=brendan
This commit is contained in:
parent
903bd845ea
commit
fb483e6b15
@ -5294,7 +5294,7 @@ nsTypedSelection::ScrollPointIntoClipView(nsPresContext *aPresContext, nsIView *
|
||||
}
|
||||
|
||||
//
|
||||
// Now scroll the view if neccessary.
|
||||
// Now scroll the view if necessary.
|
||||
//
|
||||
|
||||
if (dx != 0 || dy != 0)
|
||||
@ -5485,7 +5485,7 @@ nsTypedSelection::DoAutoScrollView(nsPresContext *aPresContext, nsIView *aView,
|
||||
return result;
|
||||
|
||||
//
|
||||
// Start the AutoScroll timer if neccessary.
|
||||
// Start the AutoScroll timer if necessary.
|
||||
//
|
||||
|
||||
if (didScroll && mAutoScrollTimer)
|
||||
@ -6903,7 +6903,7 @@ nsTypedSelection::GetSelectionRegionRectAndScrollableView(SelectionRegion aRegio
|
||||
aRect->x += pt.x;
|
||||
|
||||
//
|
||||
// Adjust the width of the rect to account for any neccessary
|
||||
// Adjust the width of the rect to account for any necessary
|
||||
// padding!
|
||||
//
|
||||
|
||||
|
@ -116,7 +116,7 @@ interface nsITransactionManager : nsISupports
|
||||
* all references it has to the transaction without pushing it on the undo
|
||||
* stack. A value greater than zero indicates the max number of transactions
|
||||
* that can exist at any time on both the undo and redo stacks. This method
|
||||
* will prune the neccessary number of transactions on the undo and redo
|
||||
* will prune the necessary number of transactions on the undo and redo
|
||||
* stacks if the value specified is less than the number of items that exist
|
||||
* on both the undo and redo stacks.
|
||||
*/
|
||||
|
@ -547,7 +547,7 @@ nsTransactionManager::SetMaxTransactionCount(PRInt32 aMaxCount)
|
||||
--numUndoItems;
|
||||
}
|
||||
|
||||
// If neccessary, get rid of some transactions on the redo stack! Start at
|
||||
// If necessary, get rid of some transactions on the redo stack! Start at
|
||||
// the bottom of the stack and pop towards the top.
|
||||
|
||||
while (numRedoItems > 0 && (numRedoItems + numUndoItems) > aMaxCount) {
|
||||
|
@ -43,7 +43,7 @@
|
||||
When there's no alt text, we always write 'alt=""' as the attribute, since "alt" is a required attribute.
|
||||
We allow users to not have alt text by checking a "Don't use alterate text" radio button,
|
||||
and we don't accept spaces as valid alt text. A space used to be required to avoid the error message
|
||||
if user didn't enter alt text, but is uneccessary now that we no longer annoy the user
|
||||
if user didn't enter alt text, but is unnecessary now that we no longer annoy the user
|
||||
with the error dialog if alt="" is present on an img element.
|
||||
We trim all spaces at the beginning and end of user's alt text
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
The contents of this directory constitute the UDDI support of mozilla.
|
||||
Currently the UDDI Inquiry API is completely implemented, but not tested. In
|
||||
addition it is neccessary to add these files to a chrome resource somewhere in
|
||||
addition it is necessary to add these files to a chrome resource somewhere in
|
||||
order to make the calls. During development I had these file in the
|
||||
mozilla/extensions/webservices/build/src directory and included the js files
|
||||
in a jar.mn in the same directory.
|
||||
@ -32,4 +32,4 @@ Things left to do:
|
||||
|
||||
john gaunt
|
||||
redfive@acm.org
|
||||
7/21/2003
|
||||
7/21/2003
|
||||
|
@ -379,7 +379,7 @@ NS_IMETHODIMP nsImageBeOS::DrawTile(nsIRenderingContext &aContext, nsIDrawingSur
|
||||
{
|
||||
src = src0 + yy*mWidth;
|
||||
dst = dst0 + y*dstRowLength;
|
||||
// Avoid unneccessary job outside update rect
|
||||
// Avoid unnecessary job outside update rect
|
||||
if (yy >= validY && yy <= validMostY)
|
||||
{
|
||||
for (uint32 x = 0, xx = aSXOffset; x < dstRowLength; ++x)
|
||||
@ -447,7 +447,7 @@ nsresult nsImageBeOS::Optimize(nsIDeviceContext *aContext)
|
||||
}
|
||||
|
||||
// Not implemented at the moment. It's unclear whether this is necessary for
|
||||
// the BeOS port or not. BBitmap::Lock/UnlockBits() may be used if neccessary
|
||||
// the BeOS port or not. BBitmap::Lock/UnlockBits() may be used if necessary
|
||||
NS_IMETHODIMP nsImageBeOS::LockImagePixels(PRBool aMaskPixels)
|
||||
{
|
||||
return NS_OK;
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
static void Shutdown();
|
||||
|
||||
/**
|
||||
* Check the TM, create it if neccessary.
|
||||
* Check the TM, create it if necessary.
|
||||
*/
|
||||
static void Init();
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
||||
// Transaction system to work with the IPC daemon as its transport
|
||||
// layer.
|
||||
// tmTransactionManager (TM) - Manages the different queues. Maintains
|
||||
// the queues neccessary for different clients. Receives messages
|
||||
// the queues necessary for different clients. Receives messages
|
||||
// from the tmIPCModule and passes message to the IPC daemon through
|
||||
// the tmIPCModule.
|
||||
// tmQueue - this class manages the transactions for the different areas
|
||||
@ -203,7 +203,7 @@ interface ipcITransactionService : nsISupports
|
||||
* the message is sent to the Transaction Manager with the proper domain
|
||||
* information.
|
||||
*
|
||||
* XXXjg - this may not be neccessary with the synch attach call.
|
||||
* XXXjg - this may not be necessary with the synch attach call.
|
||||
*
|
||||
* Note: This call is an asynchronous call.
|
||||
*
|
||||
|
@ -181,7 +181,7 @@ tmTransactionService::Attach(const nsACString & aDomainName,
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
tmTransaction trans;
|
||||
|
||||
// acquire a lock if neccessary
|
||||
// acquire a lock if necessary
|
||||
if (aLockingCall)
|
||||
lockService->AcquireLock(joinedQueueName, PR_TRUE);
|
||||
// XXX need to handle lock failures
|
||||
@ -197,7 +197,7 @@ tmTransactionService::Attach(const nsACString & aDomainName,
|
||||
rv = NS_OK;
|
||||
}
|
||||
|
||||
// drop the lock if neccessary
|
||||
// drop the lock if necessary
|
||||
if (aLockingCall)
|
||||
lockService->ReleaseLock(joinedQueueName);
|
||||
|
||||
@ -216,14 +216,14 @@ tmTransactionService::Detach(const nsACString & aDomainName) {
|
||||
NS_IMETHODIMP
|
||||
tmTransactionService::Flush(const nsACString & aDomainName,
|
||||
PRBool aLockingCall) {
|
||||
// acquire a lock if neccessary
|
||||
// acquire a lock if necessary
|
||||
if (aLockingCall)
|
||||
lockService->AcquireLock(GetJoinedQueueName(aDomainName), PR_TRUE);
|
||||
|
||||
// synchronous flush
|
||||
nsresult rv = SendDetachOrFlush(GetQueueID(aDomainName), TM_FLUSH, PR_TRUE);
|
||||
|
||||
// drop the lock if neccessary
|
||||
// drop the lock if necessary
|
||||
if (aLockingCall)
|
||||
lockService->ReleaseLock(GetJoinedQueueName(aDomainName));
|
||||
|
||||
@ -292,7 +292,7 @@ tmTransactionService::OnMessageAvailable(const PRUint32 aSenderID,
|
||||
break;
|
||||
case TM_POST_REPLY:
|
||||
// OnPostReply() would be called here
|
||||
// isn't neccessary at the current time 2/19/03
|
||||
// isn't necessary at the current time 2/19/03
|
||||
break;
|
||||
case TM_DETACH_REPLY:
|
||||
OnDetachReply(trans);
|
||||
|
@ -397,7 +397,7 @@ public:
|
||||
*/
|
||||
NS_IMETHOD SetDelayedCaretData(nsMouseEvent *aMouseEvent)=0;
|
||||
|
||||
/** Get the delayed MouseDown event data neccessary to place the
|
||||
/** Get the delayed MouseDown event data necessary to place the
|
||||
* caret during MouseUp processing.
|
||||
* @aMouseEvent will contain a pointer to the event received
|
||||
* by the selection during MouseDown processing. It can be NULL
|
||||
|
@ -397,7 +397,7 @@ public:
|
||||
*/
|
||||
NS_IMETHOD SetDelayedCaretData(nsMouseEvent *aMouseEvent)=0;
|
||||
|
||||
/** Get the delayed MouseDown event data neccessary to place the
|
||||
/** Get the delayed MouseDown event data necessary to place the
|
||||
* caret during MouseUp processing.
|
||||
* @aMouseEvent will contain a pointer to the event received
|
||||
* by the selection during MouseDown processing. It can be NULL
|
||||
|
@ -1708,7 +1708,7 @@ nsTextControlFrame::InitEditor()
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
// Now call SetValue() which will make the neccessary editor calls to set
|
||||
// Now call SetValue() which will make the necessary editor calls to set
|
||||
// the default value. Make sure to turn off undo before setting the default
|
||||
// value, and turn it back on afterwards. This will make sure we can't undo
|
||||
// past the default value.
|
||||
@ -1784,7 +1784,7 @@ nsTextControlFrame::CreateAnonymousContent(nsPresContext* aPresContext,
|
||||
// no matter what.
|
||||
divContent->SetNativeAnonymous(PR_TRUE);
|
||||
|
||||
// Set the neccessary style attributes on the text control.
|
||||
// Set the necessary style attributes on the text control.
|
||||
|
||||
rv = divContent->SetAttr(kNameSpaceID_None, nsHTMLAtoms::kClass,
|
||||
NS_LITERAL_STRING("anonymous-div"), PR_FALSE);
|
||||
@ -1993,7 +1993,7 @@ nsTextControlFrame::CreateAnonymousContent(nsPresContext* aPresContext,
|
||||
if (NS_CONTENT_ATTR_NOT_THERE != rv)
|
||||
editorFlags |= nsIPlaintextEditor::eEditorDisabledMask;
|
||||
|
||||
// Disable the caret and selection if neccessary.
|
||||
// Disable the caret and selection if necessary.
|
||||
|
||||
if (editorFlags & nsIPlaintextEditor::eEditorReadonlyMask ||
|
||||
editorFlags & nsIPlaintextEditor::eEditorDisabledMask)
|
||||
|
@ -156,7 +156,7 @@ nsHTMLContainerFrame::GetTextDecorations(nsPresContext* aPresContext,
|
||||
{
|
||||
aDecorations = NS_STYLE_TEXT_DECORATION_NONE;
|
||||
if (!mStyleContext->HasTextDecorations()) {
|
||||
// This is a neccessary, but not sufficient, condition for text
|
||||
// This is a necessary, but not sufficient, condition for text
|
||||
// decorations.
|
||||
return;
|
||||
}
|
||||
|
@ -5294,7 +5294,7 @@ nsTypedSelection::ScrollPointIntoClipView(nsPresContext *aPresContext, nsIView *
|
||||
}
|
||||
|
||||
//
|
||||
// Now scroll the view if neccessary.
|
||||
// Now scroll the view if necessary.
|
||||
//
|
||||
|
||||
if (dx != 0 || dy != 0)
|
||||
@ -5485,7 +5485,7 @@ nsTypedSelection::DoAutoScrollView(nsPresContext *aPresContext, nsIView *aView,
|
||||
return result;
|
||||
|
||||
//
|
||||
// Start the AutoScroll timer if neccessary.
|
||||
// Start the AutoScroll timer if necessary.
|
||||
//
|
||||
|
||||
if (didScroll && mAutoScrollTimer)
|
||||
@ -6903,7 +6903,7 @@ nsTypedSelection::GetSelectionRegionRectAndScrollableView(SelectionRegion aRegio
|
||||
aRect->x += pt.x;
|
||||
|
||||
//
|
||||
// Adjust the width of the rect to account for any neccessary
|
||||
// Adjust the width of the rect to account for any necessary
|
||||
// padding!
|
||||
//
|
||||
|
||||
|
@ -156,7 +156,7 @@ nsHTMLContainerFrame::GetTextDecorations(nsPresContext* aPresContext,
|
||||
{
|
||||
aDecorations = NS_STYLE_TEXT_DECORATION_NONE;
|
||||
if (!mStyleContext->HasTextDecorations()) {
|
||||
// This is a neccessary, but not sufficient, condition for text
|
||||
// This is a necessary, but not sufficient, condition for text
|
||||
// decorations.
|
||||
return;
|
||||
}
|
||||
|
@ -1708,7 +1708,7 @@ nsTextControlFrame::InitEditor()
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
// Now call SetValue() which will make the neccessary editor calls to set
|
||||
// Now call SetValue() which will make the necessary editor calls to set
|
||||
// the default value. Make sure to turn off undo before setting the default
|
||||
// value, and turn it back on afterwards. This will make sure we can't undo
|
||||
// past the default value.
|
||||
@ -1784,7 +1784,7 @@ nsTextControlFrame::CreateAnonymousContent(nsPresContext* aPresContext,
|
||||
// no matter what.
|
||||
divContent->SetNativeAnonymous(PR_TRUE);
|
||||
|
||||
// Set the neccessary style attributes on the text control.
|
||||
// Set the necessary style attributes on the text control.
|
||||
|
||||
rv = divContent->SetAttr(kNameSpaceID_None, nsHTMLAtoms::kClass,
|
||||
NS_LITERAL_STRING("anonymous-div"), PR_FALSE);
|
||||
@ -1993,7 +1993,7 @@ nsTextControlFrame::CreateAnonymousContent(nsPresContext* aPresContext,
|
||||
if (NS_CONTENT_ATTR_NOT_THERE != rv)
|
||||
editorFlags |= nsIPlaintextEditor::eEditorDisabledMask;
|
||||
|
||||
// Disable the caret and selection if neccessary.
|
||||
// Disable the caret and selection if necessary.
|
||||
|
||||
if (editorFlags & nsIPlaintextEditor::eEditorReadonlyMask ||
|
||||
editorFlags & nsIPlaintextEditor::eEditorDisabledMask)
|
||||
|
@ -3719,7 +3719,7 @@ nsMsgViewIndex nsMsgDBView::GetIndexOfFirstDisplayedKeyInThread(nsIMsgThread *th
|
||||
PRUint32 childIndex = 0;
|
||||
// We could speed up the unreadOnly view by starting our search with the first
|
||||
// unread message in the thread. Sometimes, that will be wrong, however, so
|
||||
// let's skip it until we're sure it's neccessary.
|
||||
// let's skip it until we're sure it's necessary.
|
||||
// (m_viewFlags & nsMsgViewFlagsType::kUnreadOnly)
|
||||
// ? threadHdr->GetFirstUnreadKey(m_db) : threadHdr->GetChildAt(0);
|
||||
PRUint32 numThreadChildren;
|
||||
|
@ -53,7 +53,7 @@ void NPP_Shutdown(void)
|
||||
|
||||
// here the plugin creates an instance of our CPlugin object which
|
||||
// will be associated with this newly created plugin instance and
|
||||
// will do all the neccessary job
|
||||
// will do all the necessary job
|
||||
NPError NPP_New(NPMIMEType pluginType,
|
||||
NPP instance,
|
||||
uint16 mode,
|
||||
|
@ -44,7 +44,7 @@
|
||||
|
||||
// here the plugin creates a plugin instance object which
|
||||
// will be associated with this newly created NPP instance and
|
||||
// will do all the neccessary job
|
||||
// will do all the necessary job
|
||||
NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved)
|
||||
{
|
||||
if(instance == NULL)
|
||||
|
@ -49,7 +49,7 @@ static char szTarget[] = LOGGER_DEFAULT_TARGET;
|
||||
|
||||
// here the plugin creates a plugin instance object which
|
||||
// will be associated with this newly created NPP instance and
|
||||
// will do all the neccessary job
|
||||
// will do all the necessary job
|
||||
NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved)
|
||||
{
|
||||
DWORD dwTickEnter = XP_GetTickCount();
|
||||
|
@ -752,7 +752,7 @@ of Example.vcf and its VObject Representation
|
||||
Note the presence of VCBase64Prop will cause the
|
||||
writeVObject API to output the binary data as BASE64 text.
|
||||
For VCard/VCalendar application, having the VCBase64Prop
|
||||
property is pratically always neccessary for property with
|
||||
property is pratically always necessary for property with
|
||||
binary data as its value.
|
||||
|
||||
* Note on Quoted-Printable String
|
||||
|
@ -1961,7 +1961,7 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent, nsEventStatus *aS
|
||||
// synchronous paint to happen even if the view manager's
|
||||
// refresh is disabled. (Bug 97674)
|
||||
//
|
||||
// Calling UpdateView() here, is neccessary to add
|
||||
// Calling UpdateView() here, is necessary to add
|
||||
// the exposed region specified in the synchronous paint
|
||||
// event to the view's damaged region so that it gets
|
||||
// painted properly when refresh is enabled.
|
||||
|
@ -41,7 +41,7 @@
|
||||
/*
|
||||
* This is in a separate header file because it needs to be included
|
||||
* in many places where including nsGUIEvent.h would bring in many
|
||||
* header files that are totally unneccessary.
|
||||
* header files that are totally unnecessary.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -944,7 +944,7 @@ int32 gdiff_valCRC32( pDIFFDATA dd, PRFileDesc* fh, uint32 chksum )
|
||||
* opened, GDIFF header read, and all other setup complete
|
||||
*
|
||||
* The GDIFF patch is processed sequentially which random
|
||||
* access is neccessary for the source file.
|
||||
* access is necessary for the source file.
|
||||
*---------------------------------------------------------
|
||||
*/
|
||||
static
|
||||
|
Loading…
Reference in New Issue
Block a user