Bug 106386 - Correct misspellings in source code (old); Patch 1; r=timeless

This commit is contained in:
Michael Kohler 2009-07-27 10:46:59 +02:00
parent 13d4cc6cbd
commit 39067b5db3
15 changed files with 21 additions and 21 deletions

View File

@ -119,7 +119,7 @@ interface nsIAccessibleRelation : nsISupports
/**
* This object is a transient component related to the target object. When
* this object is activated the target object doesn't loose focus.
* this object is activated the target object doesn't lose focus.
*/
const unsigned long RELATION_POPUP_FOR = 0x0c;

View File

@ -45,7 +45,7 @@
#include "nsIDOMXULSelectCntrlEl.h"
/*
* The basic implemetation of nsIAccessibleSelectable.
* The basic implementation of nsIAccessibleSelectable.
*/
class nsXULSelectableAccessible : public nsAccessibleWrap
{

View File

@ -6251,7 +6251,7 @@ nsDocument::FlushPendingNotifications(mozFlushType aType)
}
// If we have a parent we must flush the parent too to ensure that our
// container is reflown if its size was changed. But if it's not safe to
// container is reflowed if its size was changed. But if it's not safe to
// flush ourselves, then don't flush the parent, since that can cause things
// like resizes of our frame's widget, which we can't handle while flushing
// is unsafe.

View File

@ -760,7 +760,7 @@ nsObjectLoadingContent::EnsureInstantiation(nsIPluginInstance** aInstance)
if (nsiframe->GetStateBits() & NS_FRAME_FIRST_REFLOW) {
// A frame for this plugin element already exists now, but it has
// not been reflown yet. Force a reflow now so that we don't end
// not been reflowed yet. Force a reflow now so that we don't end
// up initializing a plugin before knowing its size. Also re-fetch
// the frame, as flushing can cause the frame to be deleted.
frame = GetExistingFrame(eFlushLayout);
@ -1706,7 +1706,7 @@ nsObjectLoadingContent::TryInstantiate(const nsACString& aMIMEType,
if (!instance) {
// The frame has no plugin instance yet. If the frame hasn't been
// reflown yet, do nothing as once the reflow happens we'll end up
// reflowed yet, do nothing as once the reflow happens we'll end up
// instantiating the plugin with the correct size n' all (which
// isn't known until we've done the first reflow). But if the
// frame does have a plugin instance already, be sure to
@ -1714,7 +1714,7 @@ nsObjectLoadingContent::TryInstantiate(const nsACString& aMIMEType,
// chanced since it was instantiated.
nsIFrame* iframe = do_QueryFrame(frame);
if (iframe->GetStateBits() & NS_FRAME_FIRST_REFLOW) {
LOG(("OBJLC [%p]: Frame hasn't been reflown yet\n", this));
LOG(("OBJLC [%p]: Frame hasn't been reflowed yet\n", this));
return NS_OK; // Not a failure to have no frame
}
}

View File

@ -21,7 +21,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=378518
</bindings>
<!-- test resuls are displayed in the html:body -->
<!-- test results are displayed in the html:body -->
<body xmlns="http://www.w3.org/1999/xhtml">
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=378518"
target="_blank">Mozilla Bug 378518</a>

View File

@ -480,7 +480,7 @@ txMozillaXMLOutput::startElement(nsIAtom* aPrefix,
lname = do_GetAtom(aLocalName);
}
// No biggie if we loose the prefix due to OOM
// No biggie if we lose the prefix due to OOM
NS_ENSURE_TRUE(lname, NS_ERROR_OUT_OF_MEMORY);
// Check that it's a valid name

View File

@ -1457,7 +1457,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIMdbStore, NS_IMDBSTORE_IID)
**| current seed value (which implies the iteration is less than total) in
**| between to cursor calls that actually access collection content. By
**| default, a cursor should assume this attribute is false until specified,
**| so that iterations quietly try to re-sync when they loose coherence.
**| so that iterations quietly try to re-sync when they lose coherence.
|*/
#define NS_IMDBCURSOR_IID_STR "a0c37337-6ebc-474c-90db-e65ea0b850aa"

View File

@ -4883,7 +4883,7 @@ nsGlobalWindow::CheckForAbusePoint()
nsCOMPtr<nsIDocShellTreeItem> item(do_QueryInterface(mDocShell));
NS_ASSERTION(item, "Docshell doesn't implenent nsIDocShellTreeItem?");
NS_ASSERTION(item, "Docshell doesn't implement nsIDocShellTreeItem?");
PRInt32 type = nsIDocShellTreeItem::typeChrome;
item->GetItemType(&type);

View File

@ -56,7 +56,7 @@
</menupopup>
</button>
<!-- test resuls are displayed in the html:body -->
<!-- test results are displayed in the html:body -->
<body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/>
<!-- test code goes here -->

View File

@ -43,7 +43,7 @@ interface nsISelection;
interface nsIEditor;
interface nsIEditorSpellCheck;
[scriptable, uuid(074cd6ff-9118-4164-8da7-3c2d4b3ed38b)]
[scriptable, uuid(07be036a-2355-4a92-b150-5c9b7e9fdf2f)]
interface nsIInlineSpellChecker : nsISupports
{
@ -65,7 +65,7 @@ interface nsIInlineSpellChecker : nsISupports
void spellCheckRange(in nsIDOMRange aSelection);
nsIDOMRange getMispelledWord(in nsIDOMNode aNode, in long aOffset);
nsIDOMRange getMisspelledWord(in nsIDOMNode aNode, in long aOffset);
void replaceWord(in nsIDOMNode aNode, in long aOffset, in AString aNewword);
void addWordToDictionary(in AString aWord);

View File

@ -83,7 +83,7 @@ interface nsIWindowProvider : nsISupports
* @param aURI The URI to be loaded in the new window. The nsIWindowProvider
* implementation MUST NOT load this URI in the window it
* returns. This URI is provided solely to help the
* nsIWindowProvider implenentation make decisions; the caller
* nsIWindowProvider implementation make decisions; the caller
* will handle loading the URI in the window returned if
* provideWindow returns a window. Note that the URI may be null
* if the load cannot be represented by a single URI (e.g. if

View File

@ -131,7 +131,7 @@ class EmbedPrivate {
*/
// these let the widget code know when the toplevel window gets and
// looses focus.
// loses focus.
void TopLevelFocusIn (void);
void TopLevelFocusOut(void);

View File

@ -173,7 +173,7 @@ int SuggestMgr::testsug(char** wlst, const char * candidate, int wl, int ns, int
return ns;
}
// generate suggestions for a mispelled word
// generate suggestions for a misspelled word
// pass in address of array of char * pointers
// onlycompoundsug: probably bad suggestions (need for ngram sugs, too)

View File

@ -813,11 +813,11 @@ mozInlineSpellChecker::SpellCheckRange(nsIDOMRange* aRange)
return ScheduleSpellCheck(status);
}
// mozInlineSpellChecker::GetMispelledWord
// mozInlineSpellChecker::GetMisspelledWord
NS_IMETHODIMP
mozInlineSpellChecker::GetMispelledWord(nsIDOMNode *aNode, PRInt32 aOffset,
nsIDOMRange **newword)
mozInlineSpellChecker::GetMisspelledWord(nsIDOMNode *aNode, PRInt32 aOffset,
nsIDOMRange **newword)
{
NS_ENSURE_ARG_POINTER(aNode);
nsCOMPtr<nsISelection> spellCheckSelection;
@ -838,7 +838,7 @@ mozInlineSpellChecker::ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset,
NS_ENSURE_TRUE(newword.Length() != 0, NS_ERROR_FAILURE);
nsCOMPtr<nsIDOMRange> range;
nsresult res = GetMispelledWord(aNode, aOffset, getter_AddRefs(range));
nsresult res = GetMisspelledWord(aNode, aOffset, getter_AddRefs(range));
NS_ENSURE_SUCCESS(res, res);
if (range)

View File

@ -89,7 +89,7 @@ var InlineSpellCheckerUI = {
if (spellsel.rangeCount == 0)
return; // easy case - no misspellings
var range = this.mInlineSpellChecker.getMispelledWord(rangeParent,
var range = this.mInlineSpellChecker.getMisspelledWord(rangeParent,
rangeOffset);
if (! range)
return; // not over a misspelled word