зеркало из https://github.com/mozilla/gecko-dev.git
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
This commit is contained in:
Родитель
1929b806a4
Коммит
8243bd1802
|
@ -51,10 +51,9 @@ function onLoad() {
|
|||
sizeToContent();
|
||||
moveToAlertPosition();
|
||||
doEnabling();
|
||||
doSetOKCancel(onOK);
|
||||
}
|
||||
|
||||
function onOK() {
|
||||
function onAccept() {
|
||||
var zoom = parseInt(dialog.input.value);
|
||||
if (!isNaN(zoom) && zoom >= args.zoomMin && zoom <= args.zoomMax) {
|
||||
args.value = zoom;
|
||||
|
|
|
@ -36,29 +36,21 @@
|
|||
|
||||
<?xml-stylesheet href="chrome://navigator/skin/navigator.css" type="text/css"?>
|
||||
|
||||
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://communicator/locale/askViewZoom.dtd">
|
||||
|
||||
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
id="askViewZoom"
|
||||
title="&askViewZoom.title;"
|
||||
onload="onLoad();"
|
||||
class="dialog"
|
||||
orient="vertical">
|
||||
onload="onLoad();">
|
||||
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/askViewZoom.js"/>
|
||||
|
||||
<hbox>
|
||||
<text class="label" value="&selectZoom.label;"/>
|
||||
<label value="&selectZoom.label;"/>
|
||||
</hbox>
|
||||
|
||||
<hbox>
|
||||
<textbox id="zoomValue" oninput="doEnabling();"/>
|
||||
</hbox>
|
||||
|
||||
<hbox id="okCancelButtons"/>
|
||||
<keyset id="dialogKeys"/>
|
||||
|
||||
</window>
|
||||
</dialog>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
<!-- mac version of platformBrowserBindings.xul -->
|
||||
|
||||
<keybinding id="platformBrowserBindings"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- Mac-specific key bindings -->
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
<!-- mac version of platformEditorBindings.xul -->
|
||||
|
||||
<keybinding id="platformEditorBindings"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- Mac-specific key bindings -->
|
||||
|
|
|
@ -35,14 +35,11 @@
|
|||
%openDialogDTD;
|
||||
]>
|
||||
|
||||
<window id="openLocation"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
<dialog id="openLocation"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
title="&caption.label;"
|
||||
onload="onLoad()"
|
||||
style="width: 40em;"
|
||||
class="dialog"
|
||||
orient="vertical"
|
||||
persist="screenX screenY"
|
||||
screenX="24" screenY="24">
|
||||
|
||||
|
@ -52,16 +49,15 @@
|
|||
<script type="application/x-javascript" src="chrome://navigator/content/sessionHistoryUI.js"/>
|
||||
|
||||
<stringbundle id="openLocationBundle" src="chrome://communicator/locale/openLocation.properties"/>
|
||||
<keyset id="dialogKeys"/>
|
||||
|
||||
<hbox>
|
||||
<separator orient="vertical" class="thin"/>
|
||||
<vbox flex="1">
|
||||
<html>&enter.label;</html>
|
||||
<description>&enter.label;</description>
|
||||
<separator class="thin"/>
|
||||
|
||||
<hbox align="center">
|
||||
<textbox id="dialog.input" flex="1" type="autocomplete"
|
||||
<textbox id="dialog.input" type="autocomplete"
|
||||
searchSessions="history" timeout="50" maxrows="6"
|
||||
oninput="doEnabling();" ontextcommand="if (userAction == 'scrolling' ||
|
||||
userAction == 'typing') open();">
|
||||
|
@ -73,7 +69,7 @@
|
|||
<button label="&chooseFile.label;" oncommand="onChooseFile();"/>
|
||||
</hbox>
|
||||
<hbox align="center">
|
||||
<text class="label" value="&openWhere.label;"/>
|
||||
<label value="&openWhere.label;"/>
|
||||
<menulist id="openAppList">
|
||||
<menupopup>
|
||||
<menuitem value="0" id="currentWindow" label="&topWindow.label;"/>
|
||||
|
@ -83,13 +79,9 @@
|
|||
<menuitem value="2" id="editWindow" label="&editNewWindow.label;"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
<spring flex="1"/>
|
||||
<spacer flex="1"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</hbox>
|
||||
|
||||
<separator/>
|
||||
|
||||
<hbox id="okCancelButtonsRight"/>
|
||||
|
||||
</window>
|
||||
</dialog>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<!-- See bugs 57078 and 71779. -->
|
||||
|
||||
<keybinding id="platformBrowserBindings"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<keyset id="globalKeySet">
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<!-- See bugs 57078 and 71779. -->
|
||||
|
||||
<keybinding id="platformEditorBindings"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- End Unix-specific keybindings -->
|
||||
|
|
|
@ -282,6 +282,7 @@ function goUpdateSelectEditMenuItems()
|
|||
goUpdateCommand('cmd_cut');
|
||||
goUpdateCommand('cmd_copy');
|
||||
goUpdateCommand('cmd_delete');
|
||||
goUpdateCommand('cmd_selectAll');
|
||||
}
|
||||
|
||||
// update menu items that relate to undo/redo
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
<!DOCTYPE window SYSTEM "chrome://communicator/locale/viewZoomOverlay.dtd">
|
||||
|
||||
<overlay id="viewZoomOverlay"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
<!-- windows version of platformBrowserBindings.xul -->
|
||||
|
||||
<keybinding id="platformBrowserBindings"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- xul key for Windows -->
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
<!-- windows version of platformEditorBindings.xul -->
|
||||
|
||||
<keybinding id="platformEditorBindings"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- xul key for Windows -->
|
||||
|
|
Загрузка…
Ссылка в новой задаче