doc->SetTooltipElement ( element ); self->LaunchPopup ( element, self->mMouseLocX, self->mMouseLocY, 0, 0 );
nsAutoString disabledState; element->GetAttribute ( "disabled", disabledState ); if ( disabledState != "true" ) { doc->SetTooltipElement ( element ); self->LaunchPopup ( element, self->mMouseScreenX, self->mMouseScreenY, self->mMouseClientX, self->mMouseClientY ); }
XULPopupListenerImpl :: sTooltipCallback (nsITimer *aTimer, void *aClosure){  XULPopupListenerImpl* self = NS_STATIC_CAST(XULPopupListenerImpl*, aClosure);  if ( self ) {    // set the node in the document that triggered the tooltip and show it    nsCOMPtr<nsIDOMXULDocument> doc;    self->FindDocumentForNode ( self->mPossibleTooltipNode, getter_AddRefs(doc) );    if ( doc ) {      nsCOMPtr<nsIDOMElement> element ( do_QueryInterface(self->mPossibleTooltipNode) );      if ( element ) {        doc->SetTooltipElement ( element );                self->LaunchPopup ( element, self->mMouseLocX, self->mMouseLocY, 0, 0 );      }    } // if document  } // if "self" data valid  } // sTimerCallback