Bug 577266 - Correct misspellings in source code

This commit is contained in:
Felix Fung 2011-09-06 17:20:35 -07:00
parent 1efc4b73a9
commit 9bb0edf799
22 changed files with 25 additions and 25 deletions

View File

@ -1036,7 +1036,7 @@ nsContextMenu.prototype = {
MailIntegration.sendMessage( this.linkURL, "" );
},
// Backwards-compatability wrapper
// Backwards-compatibility wrapper
saveImage : function() {
if (this.onCanvas || this.onImage)
this.saveMedia();
@ -1062,7 +1062,7 @@ nsContextMenu.prototype = {
}
},
// Backwards-compatability wrapper
// Backwards-compatibility wrapper
sendImage : function() {
if (this.onCanvas || this.onImage)
this.sendMedia();

View File

@ -73,7 +73,7 @@ function test()
// Add download to DB
let file = Cc["@mozilla.org/file/directory_service;1"].
getService(Ci.nsIProperties).get("TmpD", Ci.nsIFile);
file.append("satitize-dm-test.file");
file.append("sanitize-dm-test.file");
file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0666);
let testPath = Services.io.newFileURI(file).spec;
let data = {

View File

@ -322,7 +322,7 @@ nsHTMLFrameSetElement::ParseRowCol(const nsAString & aValue,
}
}
// Catch zero and negative frame sizes for Nav compatability
// Catch zero and negative frame sizes for Nav compatibility
// Nav resized absolute and relative frames to "1" and
// percent frames to an even percentage of the width
//

View File

@ -83,7 +83,7 @@ nsInternetCiter::GetCiteString(const nsAString& aInString, nsAString& aOutString
{
aOutString.Append(gt);
// No space between >: this is ">>> " style quoting, for
// compatability with RFC 2646 and format=flowed.
// compatibility with RFC 2646 and format=flowed.
if (*beginIter != gt)
aOutString.Append(space);
}

View File

@ -460,7 +460,7 @@ GetClass(PRUnichar u)
} else if (((0x3200 <= u) && (u <= 0xA4CF)) || // CJK and Yi
((0xAC00 <= h) && (h <= 0xD7FF)) || // Hangul
((0xf900 <= h) && (h <= 0xfaff))) {
c = CLASS_BREAKABLE; // CJK character, Han, and Han Compatability
c = CLASS_BREAKABLE; // CJK character, Han, and Han Compatibility
} else if (0xff00 == h) {
if (l < 0x0060) { // Fullwidth ASCII variant
c = GETCLASSFROMTABLE(gLBClass00, (l+0x20));

View File

@ -53,7 +53,7 @@ NS_IMETHODIMP nsUnicodeToUTF8::GetMaxLength(const PRUnichar * aSrc,
// aSrc is interpreted as UTF16, 3 is normally enough.
// But when previous buffer only contains part of the surrogate pair, we
// need to complete it here. If the first word in following buffer is not
// in valid surrogate rang, we need to convert the remaining of last buffer
// in valid surrogate range, we need to convert the remaining of last buffer
// to 3 bytes.
*aDestLength = 3*aSrcLength + 3;
return NS_OK;

View File

@ -646,7 +646,7 @@ ReportError(JSContext *cx, const char *message, JSErrorReport *reportp,
*
* If an exception was raised, then we call the debugErrorHook
* (if present) to give it a chance to see the error before it
* propagates out of scope. This is needed for compatability
* propagates out of scope. This is needed for compatibility
* with the old scheme.
*/
if (!JS_IsRunning(cx) ||

View File

@ -2582,7 +2582,7 @@ PRBool nsDisplayTransform::ComputeVisibility(nsDisplayListBuilder *aBuilder,
aBuilder->ToReferenceFrame(mFrame);
}
nsRegion untransformedVisible = untransformedVisibleRect;
// Call RecomputeVisiblity instead of ComputeVisibilty since
// Call RecomputeVisiblity instead of ComputeVisibility since
// nsDisplayItem::ComputeVisibility should only be called from
// nsDisplayList::ComputeVisibility (which sets mVisibleRect on the item)
mStoredList.RecomputeVisibility(aBuilder, &untransformedVisible);

View File

@ -76,7 +76,7 @@ equivalents.
<H3>
Special Hacks</H3>
The following list describes hacks added to the magellan parsing engine
to deal with navigator compatability. These are just the parser hacks,
to deal with navigator compatibility. These are just the parser hacks,
not the layout or presentation hacks. Most hacks are intriduced for HTML
syntax error recovering. HTML doesn't specify much how to handle those
error conditions. Netscape has made big effort to render pages with non-prefect

View File

@ -403,7 +403,7 @@ void RectArea::ParseCoords(const nsAString& aSpec)
PRBool RectArea::IsInside(nscoord x, nscoord y) const
{
if (mNumCoords >= 4) { // Note: > is for nav compatability
if (mNumCoords >= 4) { // Note: > is for nav compatibility
nscoord x1 = mCoords[0];
nscoord y1 = mCoords[1];
nscoord x2 = mCoords[2];
@ -638,7 +638,7 @@ void CircleArea::ParseCoords(const nsAString& aSpec)
PRBool CircleArea::IsInside(nscoord x, nscoord y) const
{
// Note: > is for nav compatability
// Note: > is for nav compatibility
if (mNumCoords >= 3) {
nscoord x1 = mCoords[0];
nscoord y1 = mCoords[1];

View File

@ -44,7 +44,7 @@
#ifndef nsRuleProcessorData_h_
#define nsRuleProcessorData_h_
#include "nsPresContext.h" // for nsCompatability
#include "nsPresContext.h" // for nsCompatibility
#include "nsString.h"
#include "nsChangeHint.h"
#include "nsIContent.h"

View File

@ -553,8 +553,8 @@ protected:
nscoord GetCollapsedWidth(nsMargin aBorderPadding);
/** Adjust the table for visibilty.collapse set on rowgroups, rows, colgroups
* and cols
/** Adjust the table for visibility.collapse set on rowgroups, rows,
* colgroups and cols
* @param aDesiredSize the metrics of the table
* @param aBorderPadding the border and padding of the table
*/

View File

@ -350,7 +350,7 @@ var DownloadsView = {
}
else if (today - end < (24 * 60 * 60 * 1000)) {
// Download finished after yesterday started, show yesterday
dateTime = strings.GetStringFromName("donwloadsYesterday");
dateTime = strings.GetStringFromName("downloadsYesterday");
}
else if (today - end < (6 * 24 * 60 * 60 * 1000)) {
// Download finished after last week started, show day of week

View File

@ -126,7 +126,7 @@ function haveSystemLocale() {
function checkCurrentLocale() {
if (Services.prefs.prefHasUserValue("general.useragent.locale")) {
// if the user has a compatable locale from a different buildid, we need to update
// if the user has a compatible locale from a different buildid, we need to update
var buildID = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo).appBuildID;
let localeBuildID = Services.prefs.getCharPref("extensions.compatability.locales.buildid");
if (buildID != localeBuildID)

View File

@ -78,7 +78,7 @@ downloadsTime= — #1
downloadsUnknownSize=Unknown size
# LOCALIZATION NOTE (KnownSize): #1 size number; #2 size unit
downloadsKnownSize=#1 #2
donwloadsYesterday=Yesterday
downloadsYesterday=Yesterday
# LOCALIZATION NOTE (MonthDate): #1 month name; #2 date number; e.g., January 22
downloadsMonthDate=#1 #2
downloadsEmpty=No downloads

View File

@ -394,7 +394,7 @@ nsProtocolProxyService::PrefsChanged(nsIPrefBranch *prefBranch,
PRInt32 type = -1;
rv = prefBranch->GetIntPref(PROXY_PREF("type"), &type);
if (NS_SUCCEEDED(rv)) {
// bug 115720 - for ns4.x backwards compatability
// bug 115720 - for ns4.x backwards compatibility
if (type == PROXYCONFIG_DIRECT4X) {
type = PROXYCONFIG_DIRECT;
// Reset the type so that the dialog looks correct, and we

View File

@ -11,7 +11,7 @@
In HTML standard, SPANs are not allowed to cross Paragraphs.
<br> In Vav4.0, SPAN tags go thour paragraphs and other block-level elements,
except tbles.
<br>It be compatable with Nav4.0 and HTML standard, HTMLParser
<br>It be compatible with Nav4.0 and HTML standard, HTMLParser
close all SPANs before open a new paragraph, and reopen SPANs
inside the new paragraph
<br>

View File

@ -1062,7 +1062,7 @@ LoginManagerStorage_legacy.prototype = {
// Line is unused filler for future use
case STATE.FILLER:
// Save the line's value (so we can dump it back out when
// we save the file next time) for forwards compatability.
// we save the file next time) for forwards compatibility.
entry.wrappedJSObject.filler = line.value;
processEntry = true;

View File

@ -49,7 +49,7 @@
* Old version used this to set attributes on the bookmarks RDF root, such
* as the last modified date. We only use H1 to check for the attribute
* PLACES_ROOT, which tells us that this hierarchy root is the places root.
* For backwards compatability, if we don't find this, we assume that the
* For backwards compatibility, if we don't find this, we assume that the
* hierarchy is rooted at the bookmarks menu.
* Heading := any heading other than h1
* Old version used this to set attributes on the current container. We only

View File

@ -172,7 +172,7 @@ bool MachoID::IDCommand(int cpu_type, unsigned char identifier[16]) {
// If we found the command, we'll have initialized the dylib_command
// structure
if (dylib_cmd.cmd == LC_ID_DYLIB) {
// Take the hashed filename, version, and compatability version bytes
// Take the hashed filename, version, and compatibility version bytes
// to form the first 12 bytes, pad the rest with zeros
// create a crude hash of the filename to generate the first 4 bytes

View File

@ -42,7 +42,7 @@ add_test(function() {
info("Clicking 'Enable' button");
EventUtils.synthesizeMouse(button, 2, 2, { }, aWindow);
is(Services.prefs.prefHasUserValue(pref), false, "Check Compatability pref should be cleared");
is(Services.prefs.prefHasUserValue(pref), false, "Check Compatibility pref should be cleared");
is_element_hidden(hbox, "Check Compatibility warning hbox should be hidden");
is_element_hidden(button, "Check Compatibility warning button should be hidden");

View File

@ -51,7 +51,7 @@
* in sync.
*/
typedef enum {
url_All = 0 /**< %-escape every byte uncondtionally */
url_All = 0 /**< %-escape every byte unconditionally */
, url_XAlphas = PR_BIT(0) /**< Normal escape - leave alphas intact, escape the rest */
, url_XPAlphas = PR_BIT(1) /**< As url_XAlphas, but convert spaces (0x20) to '+' and plus to %2B */
, url_Path = PR_BIT(2) /**< As url_XAlphas, but don't escape slash ('/') */