зеркало из 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;
|
||||
}
|
||||
|
||||
var tipNode = document.getElementById("aHTMLTooltip").firstChild;
|
||||
var label = tipNode.firstChild;
|
||||
|
||||
var tipNode = document.getElementById("aHTMLTooltip");
|
||||
tipNode.style.direction = direction;
|
||||
|
||||
for each (var t in [titleText, XLinkTitleText]) {
|
||||
if (t && /\S/.test(t)) {
|
||||
tipNode.style.direction = direction;
|
||||
|
||||
// Per HTML 4.01 6.2 (CDATA section), literal CRs and tabs should be
|
||||
// replaced with spaces, and LFs should be removed entirely.
|
||||
|
@ -2622,9 +2621,8 @@ function FillInHTMLTooltip(tipElement)
|
|||
// distinguish that from a literal character in the source by this point.
|
||||
t = t.replace(/[\r\t]/g, ' ');
|
||||
t = t.replace(/\n/g, '');
|
||||
|
||||
label.textContent = t;
|
||||
|
||||
|
||||
tipNode.setAttribute("label", t);
|
||||
retVal = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,11 +101,7 @@
|
|||
onpopupshowing="return BrowserForwardMenu(event);"
|
||||
oncommand="gotoHistoryIndex(event);"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
<tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);">
|
||||
<hbox>
|
||||
<label flex="1" class="htmltooltip-label"/>
|
||||
</hbox>
|
||||
</tooltip>
|
||||
<tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
|
||||
|
||||
<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-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;
|
||||
}
|
||||
%endif
|
||||
|
||||
/* ::::: Tooltips (multi-line) from content ::::: */
|
||||
.htmltooltip-label {
|
||||
max-width: 40em;
|
||||
margin: 0;
|
||||
white-space: -moz-pre-wrap;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче