another tweak for tooltips to work on html content. thanks to Robert O'Callahan for the patch.

This commit is contained in:
pinkerton%netscape.com 2000-05-17 01:02:36 +00:00
Родитель 1cb3686726
Коммит e6e6074486
2 изменённых файлов: 4 добавлений и 10 удалений

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

@ -22,6 +22,7 @@
* Contributor(s):
* Dean Tessman <dean_tessman@hotmail.com>
* Pierre Phaneuf <pp@ludusdesign.com>
* Robert O'Callahan <roc+moz@cs.cmu.edu>
*/
/*
@ -321,12 +322,8 @@ XULPopupListenerImpl::MouseOut(nsIDOMEvent* aMouseEvent)
mPopupContent = nsnull; // release the popup
// clear out the tooltip node on the document
nsCOMPtr<nsIDOMEventTarget> eventTarget;
nsCOMPtr<nsIDOMNode> eventTargetNode;
aMouseEvent->GetTarget(getter_AddRefs(eventTarget));
if (eventTarget) eventTargetNode = do_QueryInterface(eventTarget);
nsCOMPtr<nsIDOMXULDocument> doc;
FindDocumentForNode ( eventTargetNode, getter_AddRefs(doc) );
FindDocumentForNode ( mElement, getter_AddRefs(doc) );
if ( doc )
doc->SetTooltipNode(nsnull);
}

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

@ -22,6 +22,7 @@
* Contributor(s):
* Dean Tessman <dean_tessman@hotmail.com>
* Pierre Phaneuf <pp@ludusdesign.com>
* Robert O'Callahan <roc+moz@cs.cmu.edu>
*/
/*
@ -321,12 +322,8 @@ XULPopupListenerImpl::MouseOut(nsIDOMEvent* aMouseEvent)
mPopupContent = nsnull; // release the popup
// clear out the tooltip node on the document
nsCOMPtr<nsIDOMEventTarget> eventTarget;
nsCOMPtr<nsIDOMNode> eventTargetNode;
aMouseEvent->GetTarget(getter_AddRefs(eventTarget));
if (eventTarget) eventTargetNode = do_QueryInterface(eventTarget);
nsCOMPtr<nsIDOMXULDocument> doc;
FindDocumentForNode ( eventTargetNode, getter_AddRefs(doc) );
FindDocumentForNode ( mElement, getter_AddRefs(doc) );
if ( doc )
doc->SetTooltipNode(nsnull);
}