mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
806f45888a
commit
ea11428774
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user