This commit is contained in:
Ben Turner 2009-07-30 13:38:27 -07:00
Родитель dec6db0c06 e780f1d450
Коммит b7bb540247
6 изменённых файлов: 9 добавлений и 30 удалений

Просмотреть файл

@ -2055,7 +2055,7 @@ MicrosummaryResource.prototype = {
getService(Ci.nsICharsetResolver);
if (resolver) {
var charset = resolver.requestCharset(null, request.channel, {}, {});
if (charset != "");
if (charset != "")
request.channel.contentCharset = charset;
}
}

Просмотреть файл

@ -154,7 +154,7 @@ PlacesController.prototype = {
var result = this._view.getResult();
if (result) {
var container = asContainer(result.root);
if (container.containerOpen && container.childCount > 0);
if (container.containerOpen && container.childCount > 0)
return true;
}
}

Просмотреть файл

@ -1,24 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="f()">
<script type="text/javascript">
<![CDATA[
function f ()
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var tb = document. getElementById ("tb01");
var inputField = tb. inputField;
var editor = inputField. QueryInterface (Components. interfaces. nsIDOMNSEditableElement). editor;
editor = editor. QueryInterface (Components. interfaces. nsIEditor);
editor = editor. QueryInterface (Components. interfaces. nsIPlaintextEditor);
editor. wrapWidth = -1;
}
]]>
</script>
<textbox id="tb01" multiline="true"/>
</window>

Просмотреть файл

@ -39,4 +39,3 @@ load 473914-1.html
skip load long-url-list-stack-overflow.html # skipped due to being slow (bug 477490)
load 495269-1.html
load 495269-2.html
load 504311-1.xul

Просмотреть файл

@ -1918,14 +1918,13 @@ nsStyleText::~nsStyleText(void) { }
nsChangeHint nsStyleText::CalcDifference(const nsStyleText& aOther) const
{
if (NewlineIsSignificant() != aOther.NewlineIsSignificant()) {
if (mWhiteSpace != aOther.mWhiteSpace) {
// This may require construction of suppressed text frames
return NS_STYLE_HINT_FRAMECHANGE;
}
if ((mTextAlign != aOther.mTextAlign) ||
(mTextTransform != aOther.mTextTransform) ||
(mWhiteSpace != aOther.mWhiteSpace) ||
(mWordWrap != aOther.mWordWrap) ||
(mLetterSpacing != aOther.mLetterSpacing) ||
(mLineHeight != aOther.mLineHeight) ||

Просмотреть файл

@ -66,7 +66,12 @@ var EXPORTED_SYMBOLS = [ "DownloadUtils" ];
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource://gre/modules/PluralForm.jsm");
__defineGetter__("PluralForm", function() {
delete this.PluralForm;
Cu.import("resource://gre/modules/PluralForm.jsm");
return PluralForm;
});
const kDownloadProperties =
"chrome://mozapps/locale/downloads/downloads.properties";