mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 506126 - globalOverlay.js is full of caller-less functions; r=enndeakin
This commit is contained in:
parent
49083c2784
commit
3ec1c83a08
@ -178,11 +178,6 @@ function visitLink(aEvent) {
|
||||
protocolSvc.loadUrl(uri);
|
||||
}
|
||||
|
||||
function isValidLeftClick(aEvent, aName)
|
||||
{
|
||||
return (aEvent.button == 0 && aEvent.originalTarget.localName == aName);
|
||||
}
|
||||
|
||||
function setTooltipText(aID, aTooltipText)
|
||||
{
|
||||
var element = document.getElementById(aID);
|
||||
@ -190,23 +185,6 @@ function setTooltipText(aID, aTooltipText)
|
||||
element.setAttribute("tooltiptext", aTooltipText);
|
||||
}
|
||||
|
||||
function FillInTooltip ( tipElement )
|
||||
{
|
||||
var retVal = false;
|
||||
var textNode = document.getElementById("TOOLTIP-tooltipText");
|
||||
if (textNode) {
|
||||
while (textNode.hasChildNodes())
|
||||
textNode.removeChild(textNode.firstChild);
|
||||
var tipText = tipElement.getAttribute("tooltiptext");
|
||||
if (tipText) {
|
||||
var node = document.createTextNode(tipText);
|
||||
textNode.appendChild(node);
|
||||
retVal = true;
|
||||
}
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
__defineGetter__("NS_ASSERT", function() {
|
||||
delete this.NS_ASSERT;
|
||||
var tmpScope = {};
|
||||
|
@ -4,6 +4,26 @@
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
|
||||
<script type="application/javascript"><![CDATA[
|
||||
|
||||
function FillInTooltip ( tipElement )
|
||||
{
|
||||
var retVal = false;
|
||||
var textNode = document.getElementById("TOOLTIP-tooltipText");
|
||||
if (textNode) {
|
||||
while (textNode.hasChildNodes())
|
||||
textNode.removeChild(textNode.firstChild);
|
||||
var tipText = tipElement.getAttribute("tooltiptext");
|
||||
if (tipText) {
|
||||
var node = document.createTextNode(tipText);
|
||||
textNode.appendChild(node);
|
||||
retVal = true;
|
||||
}
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
]]></script>
|
||||
|
||||
<popupset id="aTooltipSet">
|
||||
<popup id="aTooltip" class="tooltip" onpopupshowing="return FillInTooltip(document.tooltipNode);" >
|
||||
|
Loading…
Reference in New Issue
Block a user