зеркало из https://github.com/mozilla/pjs.git
Bug 387685: clean up Firefox tooltip code now that bug 279703 has landed (back out most of the patch for bug 218223), r=Enn (original SeaMonkey patch by Neil Rashbrook in bug 386390)
This commit is contained in:
Родитель
06d7b95c55
Коммит
87266ad55f
|
@ -2608,12 +2608,11 @@ function FillInHTMLTooltip(tipElement)
|
||||||
tipElement = tipElement.parentNode;
|
tipElement = tipElement.parentNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
var tipNode = document.getElementById("aHTMLTooltip").firstChild;
|
var tipNode = document.getElementById("aHTMLTooltip");
|
||||||
var label = tipNode.firstChild;
|
tipNode.style.direction = direction;
|
||||||
|
|
||||||
for each (var t in [titleText, XLinkTitleText]) {
|
for each (var t in [titleText, XLinkTitleText]) {
|
||||||
if (t && /\S/.test(t)) {
|
if (t && /\S/.test(t)) {
|
||||||
tipNode.style.direction = direction;
|
|
||||||
|
|
||||||
// Per HTML 4.01 6.2 (CDATA section), literal CRs and tabs should be
|
// Per HTML 4.01 6.2 (CDATA section), literal CRs and tabs should be
|
||||||
// replaced with spaces, and LFs should be removed entirely.
|
// replaced with spaces, and LFs should be removed entirely.
|
||||||
|
@ -2623,8 +2622,7 @@ function FillInHTMLTooltip(tipElement)
|
||||||
t = t.replace(/[\r\t]/g, ' ');
|
t = t.replace(/[\r\t]/g, ' ');
|
||||||
t = t.replace(/\n/g, '');
|
t = t.replace(/\n/g, '');
|
||||||
|
|
||||||
label.textContent = t;
|
tipNode.setAttribute("label", t);
|
||||||
|
|
||||||
retVal = true;
|
retVal = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,11 +101,7 @@
|
||||||
onpopupshowing="return BrowserForwardMenu(event);"
|
onpopupshowing="return BrowserForwardMenu(event);"
|
||||||
oncommand="gotoHistoryIndex(event);"
|
oncommand="gotoHistoryIndex(event);"
|
||||||
onclick="checkForMiddleClick(this, event);"/>
|
onclick="checkForMiddleClick(this, event);"/>
|
||||||
<tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);">
|
<tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
|
||||||
<hbox>
|
|
||||||
<label flex="1" class="htmltooltip-label"/>
|
|
||||||
</hbox>
|
|
||||||
</tooltip>
|
|
||||||
|
|
||||||
<panel type="autocomplete" chromedir="&locale.dir;" id="PopupAutoComplete"/>
|
<panel type="autocomplete" chromedir="&locale.dir;" id="PopupAutoComplete"/>
|
||||||
|
|
||||||
|
|
|
@ -1332,10 +1332,3 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
|
||||||
-moz-border-bottom-colors: -moz-mac-menushadow -moz-mac-menushadow ThreeDShadow !important;
|
-moz-border-bottom-colors: -moz-mac-menushadow -moz-mac-menushadow ThreeDShadow !important;
|
||||||
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight !important;
|
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ::::: Tooltips (multi-line) from content ::::: */
|
|
||||||
.htmltooltip-label {
|
|
||||||
max-width: 40em;
|
|
||||||
margin: 0;
|
|
||||||
white-space: -moz-pre-wrap;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1460,10 +1460,3 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
|
||||||
-moz-border-bottom-colors: #000000;
|
-moz-border-bottom-colors: #000000;
|
||||||
}
|
}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
/* ::::: Tooltips (multi-line) from content ::::: */
|
|
||||||
.htmltooltip-label {
|
|
||||||
max-width: 40em;
|
|
||||||
margin: 0;
|
|
||||||
white-space: -moz-pre-wrap;
|
|
||||||
}
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче