Bug 106386 - Correct misspellings in source code (old); Patch 1; r=timeless
authorMichael Kohler <michaelkohler@live.com>
Mon, 27 Jul 2009 10:46:59 +0200
changeset 30709 786c89deb04253179e06b8656e3876d8608bfb80
parent 30708 72db05f6c5cba7147006e6aa08a2f3a7aa3252a4
child 30710 b02f3a8ce4cd94cb91eb3ada7ba94174122d648c
push idunknown
push userunknown
push dateunknown
reviewerstimeless
bugs106386
milestone1.9.2a1pre
Bug 106386 - Correct misspellings in source code (old); Patch 1; r=timeless
accessible/public/nsIAccessibleRelation.idl
accessible/src/xul/nsXULMenuAccessible.h
content/base/src/nsDocument.cpp
content/base/src/nsObjectLoadingContent.cpp
content/xbl/test/test_bug378518.xul
content/xslt/src/xslt/txMozillaXMLOutput.cpp
db/mdb/public/mdb.h
dom/base/nsGlobalWindow.cpp
dom/tests/mochitest/general/test_offsets.xul
editor/txtsvc/public/nsIInlineSpellChecker.idl
embedding/base/nsIWindowProvider.idl
embedding/browser/photon/src/EmbedPrivate.h
extensions/spellcheck/hunspell/src/suggestmgr.cpp
extensions/spellcheck/src/mozInlineSpellChecker.cpp
toolkit/content/inlineSpellCheckUI.js
--- a/accessible/public/nsIAccessibleRelation.idl
+++ b/accessible/public/nsIAccessibleRelation.idl
@@ -114,17 +114,17 @@ interface nsIAccessibleRelation : nsISup
 
   /**
    * This object is embedded by a target object.
    */
   const unsigned long RELATION_EMBEDDED_BY = 0x0b;
 
   /**
    * 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;
 
   /**
    * This object is a parent window of the target object.
    */
   const unsigned long RELATION_PARENT_WINDOW_OF = 0x0d;
 
--- a/accessible/src/xul/nsXULMenuAccessible.h
+++ b/accessible/src/xul/nsXULMenuAccessible.h
@@ -40,17 +40,17 @@
 #define _nsXULMenuAccessible_H_
 
 #include "nsAccessibleWrap.h"
 #include "nsAccessibleTreeWalker.h"
 #include "nsIAccessibleSelectable.h"
 #include "nsIDOMXULSelectCntrlEl.h"
 
 /*
- * The basic implemetation of nsIAccessibleSelectable.
+ * The basic implementation of nsIAccessibleSelectable.
  */
 class nsXULSelectableAccessible : public nsAccessibleWrap
 {
 public:
   NS_DECL_ISUPPORTS_INHERITED
   NS_DECL_NSIACCESSIBLESELECTABLE
 
   nsXULSelectableAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
--- a/content/base/src/nsDocument.cpp
+++ b/content/base/src/nsDocument.cpp
@@ -6246,17 +6246,17 @@ nsDocument::FlushPendingNotifications(mo
   // Should we be flushing pending binding constructors in here?
 
   if (aType <= Flush_ContentAndNotify) {
     // Nothing to do here
     return;
   }
 
   // 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.
   // Since media queries mean that a size change of our container can
   // affect style, we need to promote a style flush on ourself to a
   // layout flush on our parent, since we need our container to be the
   // correct size to determine the correct style.
   if (mParentDocument && IsSafeToFlush()) {
--- a/content/base/src/nsObjectLoadingContent.cpp
+++ b/content/base/src/nsObjectLoadingContent.cpp
@@ -755,17 +755,17 @@ nsObjectLoadingContent::EnsureInstantiat
       return NS_OK;
     }
   }
 
   nsIFrame *nsiframe = do_QueryFrame(frame);
 
   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);
 
     if (!frame) {
       return NS_OK;
     }
 
@@ -1701,25 +1701,25 @@ nsObjectLoadingContent::TryInstantiate(c
     return NS_OK; // Not a failure to have no frame
   }
 
   nsCOMPtr<nsIPluginInstance> instance;
   frame->GetPluginInstance(*getter_AddRefs(instance));
 
   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
     // re-instantiate the plugin as its source or whatnot might have
     // 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
     }
   }
 
   return Instantiate(frame, aMIMEType, aURI);
 }
 
 nsresult
--- a/content/xbl/test/test_bug378518.xul
+++ b/content/xbl/test/test_bug378518.xul
@@ -16,17 +16,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 
       <binding id="mybinding" extends="xul:checkbox">
           <content>
           </content>
       </binding>
 
   </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>
   </body>
 
    <!-- The elements we're testing with -->
   <command id="myBoxCommand" oncommand="myBoxClicked = true;"/>
   <command id="myCheckBoxCommand" oncommand="myCheckBoxClicked = true;"/>
--- a/content/xslt/src/xslt/txMozillaXMLOutput.cpp
+++ b/content/xslt/src/xslt/txMozillaXMLOutput.cpp
@@ -475,17 +475,17 @@ txMozillaXMLOutput::startElement(nsIAtom
         nsAutoString lnameStr;
         ToLowerCase(aLocalName, lnameStr);
         lname = do_GetAtom(lnameStr);
     }
     else {
         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
     if (!nsContentUtils::IsValidNodeName(lname, aPrefix, nsId)) {
         // Try without prefix
         aPrefix = nsnull;
         if (!nsContentUtils::IsValidNodeName(lname, aPrefix, nsId)) {
             return NS_ERROR_XSLT_BAD_NODE_NAME;
--- a/db/mdb/public/mdb.h
+++ b/db/mdb/public/mdb.h
@@ -1452,17 +1452,17 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIMdbStor
 **| To iterate over all elements, set the position to negative, so subsequent
 **| calls to any 'next' method will access the first collection element.
 **|
 **|| doFailOnSeedOutOfSync: whether a cursor should return an error if the
 **| cursor's snapshot of a table's seed becomes stale with respect the table's
 **| 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"
 
 #define NS_IMDBCURSOR_IID \
 {0xa0c37337, 0x6ebc, 0x474c, \
 {0x90, 0xdb, 0xe6, 0x5e, 0xa0, 0xb8, 0x50, 0xaa}}
 
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -4878,17 +4878,17 @@ PopupControlState
 nsGlobalWindow::CheckForAbusePoint()
 {
   FORWARD_TO_OUTER(CheckForAbusePoint, (), openAbused);
 
   NS_ASSERTION(mDocShell, "Must have docshell");
   
   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);
   if (type != nsIDocShellTreeItem::typeContent)
     return openAllowed;
 
   // level of abuse we've detected, initialized to the current popup
   // state
--- a/dom/tests/mochitest/general/test_offsets.xul
+++ b/dom/tests/mochitest/general/test_offsets.xul
@@ -51,17 +51,17 @@
         <menuitem label="Document"/>
         <menuitem id="innermenuitem" style="margin: 2px; padding: 3px;" label="Page"/>
       </menupopup>
     </menu>
     <menuitem id="outermenuitem" label="Close"/>
   </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 -->
   <script type="application/javascript"><![CDATA[
 
 var gTestSet = "box";
 
 var whichpopup = "outer";
--- a/editor/txtsvc/public/nsIInlineSpellChecker.idl
+++ b/editor/txtsvc/public/nsIInlineSpellChecker.idl
@@ -38,17 +38,17 @@
 
 #include "nsISupports.idl"
 #include "domstubs.idl"
 
 interface nsISelection;
 interface nsIEditor;
 interface nsIEditorSpellCheck;
 
-[scriptable, uuid(074cd6ff-9118-4164-8da7-3c2d4b3ed38b)]
+[scriptable, uuid(07be036a-2355-4a92-b150-5c9b7e9fdf2f)]
 
 interface nsIInlineSpellChecker : nsISupports
 {
   readonly attribute nsIEditorSpellCheck spellChecker;
 
   [noscript] void init(in nsIEditor aEditor);
   [noscript] void cleanup(in boolean aDestroyingFrames);
 
@@ -60,17 +60,17 @@ interface nsIInlineSpellChecker : nsISup
                                    in long aPreviousSelectedOffset,
                                    in nsIDOMNode aStartNode,
                                    in long aStartOffset,
                                    in nsIDOMNode aEndNode,
                                    in long aEndOffset);
 
   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);
   
   void ignoreWord(in AString aWord);
   void ignoreWords([array, size_is(aCount)] in wstring aWordsToIgnore, in unsigned long aCount);
 };
 
 %{C++
--- a/embedding/base/nsIWindowProvider.idl
+++ b/embedding/base/nsIWindowProvider.idl
@@ -78,17 +78,17 @@ interface nsIWindowProvider : nsISupport
    *                      field.
    * @param aPositionSpecified Whether the attempt to create a window is trying
    *                           to specify a position for the new window.
    * @param aSizeSpecified Whether the attempt to create a window is trying to
    *                       specify a size for the new window.
    * @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
    *             the load has extra load flags, POST data, etc).
    * @param aName The name of the window being opened.  Setting the name on the
    *              return value of provideWindow will be handled by the caller;
    *              aName is provided solely to help the nsIWindowProvider
    *              implementation make decisions.
--- a/embedding/browser/photon/src/EmbedPrivate.h
+++ b/embedding/browser/photon/src/EmbedPrivate.h
@@ -126,17 +126,17 @@ class EmbedPrivate {
 #if 0
 /*
   not used - we handle focus in/out activate/deactivate in
   child_getting_focus/child_losing_focus methods
   of the PtMozilla widget class
 */
 
   // these let the widget code know when the toplevel window gets and
-  // looses focus.
+  // loses focus.
   void        TopLevelFocusIn (void);
   void        TopLevelFocusOut(void);
 
   // these are when the widget itself gets focus in and focus out
   // events
   void        ChildFocusIn (void);
   void        ChildFocusOut(void);
 #endif
--- a/extensions/spellcheck/hunspell/src/suggestmgr.cpp
+++ b/extensions/spellcheck/hunspell/src/suggestmgr.cpp
@@ -168,17 +168,17 @@ int SuggestMgr::testsug(char** wlst, con
             for (int j=0; j<ns; j++) free(wlst[j]);
             return -1;
         }
         ns++;
       } 
       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)
 
 int SuggestMgr::suggest(char*** slst, const char * w, int nsug,
     int * onlycompoundsug)
 {
   int nocompoundtwowords = 0;
   char ** wlst;    
--- a/extensions/spellcheck/src/mozInlineSpellChecker.cpp
+++ b/extensions/spellcheck/src/mozInlineSpellChecker.cpp
@@ -808,21 +808,21 @@ mozInlineSpellChecker::SpellCheckRange(n
   NS_ENSURE_TRUE(mSpellCheck, NS_ERROR_NOT_INITIALIZED);
 
   mozInlineSpellStatus status(this);
   nsresult rv = status.InitForRange(aRange);
   NS_ENSURE_SUCCESS(rv, rv);
   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;
   nsresult res = GetSpellCheckSelection(getter_AddRefs(spellCheckSelection));
   NS_ENSURE_SUCCESS(res, res); 
 
   return IsPointInSelection(spellCheckSelection, aNode, aOffset, newword);
 }
@@ -833,17 +833,17 @@ NS_IMETHODIMP
 mozInlineSpellChecker::ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset,
                                    const nsAString &newword)
 {
   nsCOMPtr<nsIEditor> editor (do_QueryReferent(mEditor));
   NS_ENSURE_TRUE(editor, NS_ERROR_NULL_POINTER);
   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)
   {
     editor->BeginTransaction();
   
     nsCOMPtr<nsISelection> selection;
     res = editor->GetSelection(getter_AddRefs(selection));
--- a/toolkit/content/inlineSpellCheckUI.js
+++ b/toolkit/content/inlineSpellCheckUI.js
@@ -84,17 +84,17 @@ var InlineSpellCheckerUI = {
     if (!rangeParent || !this.mInlineSpellChecker)
       return;
 
     var selcon = this.mEditor.selectionController;
     var spellsel = selcon.getSelection(selcon.SELECTION_SPELLCHECK);
     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
 
     this.mMisspelling = range.toString();
     this.mOverMisspelling = true;
     this.mWordNode = rangeParent;
     this.mWordOffset = rangeOffset;