Bug 91312 - Make titles (tooltips) BIDI match their source.

r=smontagu
sr=roc
a=bsmedberg
Patch by mozilla-bugzilla@future.shiny.co.il
This commit is contained in:
silver%warwickcompsoc.co.uk 2004-07-09 16:26:48 +00:00
Родитель 6e592d434b
Коммит 903936c742
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1767,17 +1767,20 @@ function FillInHTMLTooltip(tipElement)
var titleText = null;
var XLinkTitleText = null;
var direction = "inherit";
while (!titleText && !XLinkTitleText && tipElement) {
if (tipElement.nodeType == Node.ELEMENT_NODE) {
titleText = tipElement.getAttribute("title");
XLinkTitleText = tipElement.getAttributeNS(XLinkNS, "title");
direction = tipElement.ownerDocument.defaultView.getComputedStyle(tipElement, "").getPropertyValue("direction");
}
tipElement = tipElement.parentNode;
}
var texts = [titleText, XLinkTitleText];
var tipNode = document.getElementById("aHTMLTooltip");
tipNode.style.direction = direction;
for (var i = 0; i < texts.length; ++i) {
var t = texts[i];