Bug 106386 - Correct misspellings in source code (old); Part 3 v2; r=timeless
authorMichael Kohler <michaelkohler@live.com>
Mon, 27 Jul 2009 10:47:05 +0200
changeset 30711 0322169bc93e8fb92c18c1098397409763c30c78
parent 30710 b02f3a8ce4cd94cb91eb3ada7ba94174122d648c
child 30712 0b1ee512897744f8913bd0a37a0bd1505575d9c0
push idunknown
push userunknown
push dateunknown
reviewerstimeless
bugs106386
milestone1.9.2a1pre
Bug 106386 - Correct misspellings in source code (old); Part 3 v2; r=timeless
toolkit/components/autocomplete/src/nsAutoCompleteController.cpp
toolkit/content/contentAreaUtils.js
toolkit/mozapps/update/test/unit/test_0020_general.js
toolkit/mozapps/update/test/unit/test_0030_general.js
toolkit/mozapps/update/test/unit/test_0040_general.js.in
uriloader/exthandler/nsIHelperAppLauncherDialog.idl
widget/src/gtk2/gtk2drawing.c
xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp
xpfe/components/autocomplete/public/nsIAutoCompleteSession.idl
--- a/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp
+++ b/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp
@@ -975,17 +975,17 @@ nsresult
 nsAutoCompleteController::StartSearch()
 {
   NS_ENSURE_STATE(mInput);
   nsCOMPtr<nsIAutoCompleteInput> input(mInput);
   mSearchStatus = nsIAutoCompleteController::STATUS_SEARCHING;
   mDefaultIndexCompleted = PR_FALSE;
 
   // Cache the current results so that we can pass these through to all the
-  // searches without loosing them
+  // searches without losing them
   nsCOMArray<nsIAutoCompleteResult> resultCache;
   if (!resultCache.AppendObjects(mResults)) {
     return NS_ERROR_OUT_OF_MEMORY;
   }
 
   PRUint32 count = mSearches.Count();
   mSearchesOngoing = count;
   mFirstSearchResult = PR_TRUE;
--- a/toolkit/content/contentAreaUtils.js
+++ b/toolkit/content/contentAreaUtils.js
@@ -83,17 +83,17 @@ function isContentFrame(aFocusedWindow)
 {
   if (!aFocusedWindow)
     return false;
 
   return (aFocusedWindow.top == window.content);
 }
 
 
-// Clientelle: (Make sure you don't break any of these)
+// Clientele: (Make sure you don't break any of these)
 //  - File    ->  Save Page/Frame As...
 //  - Context ->  Save Page/Frame As...
 //  - Context ->  Save Link As...
 //  - Alt-Click links in web pages
 //  - Alt-Click links in the UI
 //
 // Try saving each of these types:
 // - A complete webpage using File->Save Page As, and Context->Save Page As
@@ -110,17 +110,17 @@ function saveURL(aURL, aFileName, aFileP
                  aSkipPrompt, aReferrer)
 {
   internalSave(aURL, null, aFileName, null, null, aShouldBypassCache,
                aFilePickerTitleKey, null, aReferrer, aSkipPrompt, null);
 }
 
 // Just like saveURL, but will get some info off the image before
 // calling internalSave
-// Clientelle: (Make sure you don't break any of these)
+// Clientele: (Make sure you don't break any of these)
 //  - Context ->  Save Image As...
 const imgICache = Components.interfaces.imgICache;
 const nsISupportsCString = Components.interfaces.nsISupportsCString;
 
 function saveImageURL(aURL, aFileName, aFilePickerTitleKey, aShouldBypassCache,
                       aSkipPrompt, aReferrer)
 {
   var contentType = null;
--- a/toolkit/mozapps/update/test/unit/test_0020_general.js
+++ b/toolkit/mozapps/update/test/unit/test_0020_general.js
@@ -71,17 +71,17 @@ function run_test_helper_pt1(aMsg, aExpe
   gUpdateChecker.checkForUpdates(updateCheckListener, true);
 }
 
 function check_test_helper_pt1() {
   do_check_eq(gUpdateCount, gExpectedCount);
   gNextRunFunc();
 }
 
-// Callback function used by the custom XMLHttpRequest implemetation to
+// Callback function used by the custom XMLHttpRequest implementation to
 // call the nsIDOMEventListener's handleEvent method for onload.
 function callHandleEvent() {
   gXHR.status = 400;
   gXHR.responseText = gResponseBody;
   try {
     var parser = AUS_Cc["@mozilla.org/xmlextras/domparser;1"].
                  createInstance(AUS_Ci.nsIDOMParser);
     gXHR.responseXML = parser.parseFromString(gResponseBody, "application/xml");
--- a/toolkit/mozapps/update/test/unit/test_0030_general.js
+++ b/toolkit/mozapps/update/test/unit/test_0030_general.js
@@ -55,17 +55,17 @@ function run_test() {
   do_timeout(0, "run_test_pt1()");
 }
 
 function end_test() {
   stop_httpserver(do_test_finished);
   cleanUp();
 }
 
-// Callback function used by the custom XMLHttpRequest implemetation to
+// Callback function used by the custom XMLHttpRequest implementation to
 // call the nsIDOMEventListener's handleEvent method for onload.
 function callHandleEvent() {
   gXHR.status = 400;
   gXHR.responseText = gResponseBody;
   try {
     var parser = AUS_Cc["@mozilla.org/xmlextras/domparser;1"].
                  createInstance(AUS_Ci.nsIDOMParser);
     gXHR.responseXML = parser.parseFromString(gResponseBody, "application/xml");
--- a/toolkit/mozapps/update/test/unit/test_0040_general.js.in
+++ b/toolkit/mozapps/update/test/unit/test_0040_general.js.in
@@ -61,17 +61,17 @@ function run_test() {
   do_timeout(0, "run_test_pt1()");
 }
 
 function end_test() {
   do_test_finished();
   cleanUp();
 }
 
-// Callback function used by the custom XMLHttpRequest implemetation to
+// Callback function used by the custom XMLHttpRequest implementation to
 // call the nsIDOMEventListener's handleEvent method for onload.
 function callHandleEvent() {
   var e = { target: gXHR };
   gXHR.onload.handleEvent(e);
 }
 
 // Helper function for parsing the result from the contructed url
 function getResult(url) {
--- a/uriloader/exthandler/nsIHelperAppLauncherDialog.idl
+++ b/uriloader/exthandler/nsIHelperAppLauncherDialog.idl
@@ -36,17 +36,17 @@
  * ***** END LICENSE BLOCK ***** */
 
 #include "nsISupports.idl"
 
 interface nsIHelperAppLauncher;
 interface nsILocalFile;
 
 /**
- * This interface is used to display a confirmatino dialog before
+ * This interface is used to display a confirmation dialog before
  * launching a "helper app" to handle content not handled by
  * Mozilla.
  *
  * Usage:  Clients (of which there is one: the nsIExternalHelperAppService
  * implementation in mozilla/uriloader/exthandler) create an instance of
  * this interface (using the contract ID) and then call the show() method.
  *
  * The dialog is shown non-modally.  The implementation of the dialog
--- a/widget/src/gtk2/gtk2drawing.c
+++ b/widget/src/gtk2/gtk2drawing.c
@@ -2272,17 +2272,17 @@ moz_gtk_tab_paint(GdkDrawable* drawable,
         /* Only draw the tab */
         gtk_paint_extension(style, drawable, GTK_STATE_ACTIVE, GTK_SHADOW_OUT,
                             cliprect, gTabWidget, "tab",
                             rect->x, rect->y, rect->width, rect->height,
                             (flags & MOZ_GTK_TAB_BOTTOM) ?
                                 GTK_POS_TOP : GTK_POS_BOTTOM );
     } else {
         /* Draw the tab and the gap
-         * We want the gap to be positionned exactly on the tabpanel top
+         * We want the gap to be positioned exactly on the tabpanel top
          * border; since tabbox.css may set a negative margin so that the tab
          * frame rect already overlaps the tabpanel frame rect, we need to take
          * that into account when drawing. To that effect, nsNativeThemeGTK
          * passes us this negative margin (bmargin in the graphic below) in the
          * lowest bits of |flags|.  We use it to set gap_voffset, the distance
          * between the top of the gap and the bottom of the tab (resp. the
          * bottom of the gap and the top of the tab when we draw a bottom tab),
          * while ensuring that the gap always touches the border of the tab,
--- a/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp
+++ b/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp
@@ -321,17 +321,17 @@ xptiInterfaceInfoManager::BuildFileList(
         return PR_FALSE;
 
     nsCOMPtr<nsILocalFile> dir;
     nsCOMPtr<nsISimpleEnumerator> entries;
     nsCOMPtr<nsISupports> sup;
     nsCOMPtr<nsILocalFile> file;
 
     // Iterate the paths backwards to avoid the
-    // insertions that would occurr if we preserved
+    // insertions that would occur if we preserved
     // the order of the list.
     for(PRUint32 i = pathCount; i; i--)
     {
         rv = xptiCloneElementAsLocalFile(aSearchPath, (i - 1), getter_AddRefs(dir));
         if(NS_FAILED(rv) || !dir)
             return PR_FALSE;
 
         rv = dir->GetDirectoryEntries(getter_AddRefs(entries));
--- a/xpfe/components/autocomplete/public/nsIAutoCompleteSession.idl
+++ b/xpfe/components/autocomplete/public/nsIAutoCompleteSession.idl
@@ -51,12 +51,12 @@ interface nsIAutoCompleteSession : nsISu
 
     /* onStartLookup is called when the user has stop typing for a predifined elapse time */
     void onStartLookup(in wstring searchString, in nsIAutoCompleteResults previousSearchResult,
                        in nsIAutoCompleteListener listener);
 
     /* onStopLookup is called each time the user press a key */
     void onStopLookup();
 
-    /* onAutoComplete is called either when the user press enter/return or when the input element loose focus */
+    /* onAutoComplete is called either when the user press enter/return or when the input element loses focus */
     void onAutoComplete(in wstring searchString, in nsIAutoCompleteResults previousSearchResult,
                         in nsIAutoCompleteListener listener);
 };