Bug 1489095 - Change nsITooltipListener to use XPCOM strings. r=hsivonen

Differential Revision: https://phabricator.services.mozilla.com/D15602
This commit is contained in:
Ryan Scherich
2019-01-14 14:06:07 +00:00
parent 5ff7cd4411
commit 55cd67e7cf
3 changed files with 5 additions and 6 deletions

View File

@@ -1166,9 +1166,8 @@ ChromeTooltipListener::ShowTooltip(int32_t aInXCoords, int32_t aInYCoords,
nsCOMPtr<nsITooltipListener> tooltipListener(
do_QueryInterface(mWebBrowserChrome));
if (tooltipListener) {
rv = tooltipListener->OnShowTooltip(aInXCoords, aInYCoords,
PromiseFlatString(aInTipText).get(),
PromiseFlatString(aTipDir).get());
rv = tooltipListener->OnShowTooltip(aInXCoords, aInYCoords, aInTipText,
aTipDir);
if (NS_SUCCEEDED(rv)) {
mShowingTooltip = true;
}