зеркало из https://github.com/mozilla/pjs.git
another tweak for tooltips to work on html content. thanks to Robert O'Callahan for the patch.
This commit is contained in:
Родитель
1cb3686726
Коммит
e6e6074486
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче