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:
gavin@gavinsharp.com 2007-07-12 08:04:00 -07:00
Родитель 1062299063
Коммит 2c0e8a2bb4
4 изменённых файлов: 6 добавлений и 26 удалений

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

@ -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;
}