Backing out bug 391385 for Ts/Txul regression

This commit is contained in:
philringnalda%gmail.com 2007-08-27 18:05:40 +00:00
Родитель a31c1a76ab
Коммит 1ba5e8ad71
5 изменённых файлов: 11 добавлений и 50 удалений

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

@ -1,18 +1,13 @@
/* ::::: search bar ::::: */
searchbar { searchbar {
-moz-binding: url("chrome://browser/content/search/search.xml#searchbar"); -moz-binding: url("chrome://browser/content/search/search.xml#searchbar");
} }
#SearchAutoComplete {
-moz-binding: url("chrome://browser/content/search/search.xml#searchbar-result-popup");
}
/* ::::: location bar ::::: */ /* ::::: location bar ::::: */
#urlbar { #urlbar {
-moz-binding: url(chrome://browser/content/urlbarBindings.xml#urlbar); -moz-binding: url(chrome://browser/content/urlbarBindings.xml#urlbar);
} }
#UrlbarAutoComplete { #PopupAutoComplete {
-moz-binding: url("chrome://browser/content/urlbarBindings.xml#urlbar-result-popup"); -moz-binding: url("chrome://browser/content/urlbarBindings.xml#urlbar-result-popup");
} }

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

@ -98,9 +98,7 @@
onclick="checkForMiddleClick(this, event);"/> onclick="checkForMiddleClick(this, event);"/>
<tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/> <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
<panel type="autocomplete" chromedir="&locale.dir;" id="UrlbarAutoComplete" noautofocus="true"/> <panel type="autocomplete" chromedir="&locale.dir;" id="PopupAutoComplete" noautofocus="true"/>
<panel type="autocomplete" chromedir="&locale.dir;" id="SearchAutoComplete" noautofocus="true"/>
<panel type="autocomplete" chromedir="&locale.dir;" id="ContentAutoComplete" noautofocus="true"/>
<panel id="editBookmarkPanel" orient="vertical"> <panel id="editBookmarkPanel" orient="vertical">
<vbox id="editBookmarkPanelContent" flex="1"/> <vbox id="editBookmarkPanelContent" flex="1"/>
@ -222,7 +220,7 @@
chromedir="&locale.dir;" chromedir="&locale.dir;"
type="autocomplete" type="autocomplete"
autocompletesearch="history" autocompletesearch="history"
autocompletepopup="UrlbarAutoComplete" autocompletepopup="PopupAutoComplete"
completeselectedindex="true" completeselectedindex="true"
tabscrolling="true" tabscrolling="true"
showcommentcolumn="true" showcommentcolumn="true"
@ -302,8 +300,7 @@
<toolbaritem id="search-container" title="&searchItem.title;" <toolbaritem id="search-container" title="&searchItem.title;"
align="center" class="chromeclass-toolbar-additional" align="center" class="chromeclass-toolbar-additional"
flex="100" persist="width"> flex="100" persist="width">
<searchbar id="searchbar" flex="1" chromedir="&locale.dir;" <searchbar id="searchbar" flex="1" chromedir="&locale.dir;"/>
autocompletepopup="SearchAutoComplete"/>
</toolbaritem> </toolbaritem>
<toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional" <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
@ -433,7 +430,7 @@
flex="1" contenttooltip="aHTMLTooltip" flex="1" contenttooltip="aHTMLTooltip"
contentcontextmenu="contentAreaContextMenu" contentcontextmenu="contentAreaContextMenu"
onnewtab="BrowserOpenTab();" onnewtab="BrowserOpenTab();"
autocompletepopup="ContentAutoComplete" autocompletepopup="PopupAutoComplete"
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);" ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
onclick="return contentAreaClick(event, false);"/> onclick="return contentAreaClick(event, false);"/>
</vbox> </vbox>

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

@ -504,8 +504,7 @@
</binding> </binding>
<binding id="urlbar-result-popup" <binding id="urlbar-result-popup" extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-result-popup">
extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-result-popup">
<implementation> <implementation>
<method name="onPopupClick"> <method name="onPopupClick">
<parameter name="aEvent"/> <parameter name="aEvent"/>

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

@ -90,6 +90,7 @@
anonid="searchbar-textbox" anonid="searchbar-textbox"
type="autocomplete" type="autocomplete"
flex="1" flex="1"
autocompletepopup="PopupAutoComplete"
autocompletesearch="search-autocomplete" autocompletesearch="search-autocomplete"
autocompletesearchparam="searchbar-history" autocompletesearchparam="searchbar-history"
timeout="250" timeout="250"
@ -97,7 +98,7 @@
completeselectedindex="true" completeselectedindex="true"
showcommentcolumn="true" showcommentcolumn="true"
tabscrolling="true" tabscrolling="true"
xbl:inherits="disabled,disableautocomplete,autocompletepopup,searchengine,src"> xbl:inherits="disabled,disableautocomplete,searchengine,src">
</xul:textbox> </xul:textbox>
</xul:hbox> </xul:hbox>
@ -838,35 +839,4 @@
<children/> <children/>
</content> </content>
</binding> </binding>
<binding id="searchbar-result-popup"
extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-result-popup">
<implementation>
<method name="onPopupClick">
<parameter name="aEvent"/>
<body><![CDATA[
var controller = this.view.QueryInterface(Components.interfaces.nsIAutoCompleteController);
// default action on unmodified left-click
if (aEvent.button == 0 && !aEvent.shiftKey && !aEvent.ctrlKey &&
!aEvent.altKey && !aEvent.metaKey) {
controller.handleEnter();
}
// completely ignore right-clicks
else if (aEvent.button != 2) {
// handle search bar click
var search = controller.getValueAt(this.tree.view.selection.currentIndex);
var textbox = this.mInput;
// close the autocomplete popup and copy the selected value to the search box
this.closePopup();
textbox.value = search;
// open the search results according to the clicking subtlety
var where = whereToOpenLink(aEvent, false, true);
textbox._getParentSearchbar().doSearch(search, where);
}
]]></body>
</method>
</implementation>
</binding>
</bindings> </bindings>

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

@ -914,15 +914,15 @@ toolbar[iconsize="small"] #paste-button:not([disabled="true"]):hover:active {
direction: ltr; direction: ltr;
} }
#UrlbarAutoComplete { #PopupAutoComplete {
direction: ltr !important; direction: ltr !important;
} }
#UrlbarAutoComplete[chromedir="rtl"] > tree > treerows { #PopupAutoComplete[chromedir="rtl"] > tree > treerows {
direction: rtl; direction: rtl;
} }
#UrlbarAutoComplete .autocomplete-treebody { #PopupAutoComplete .autocomplete-treebody {
direction: ltr; direction: ltr;
} }