mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out bug 1154243 since mWindow is an nsIDOMWindow
Landed on a CLOSED TREE
This commit is contained in:
parent
805924c431
commit
ef487c9722
@ -199,11 +199,12 @@ AudioChannelAgent::GetWindowVolume(float* aVolume)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aVolume);
|
||||
|
||||
if (!mWindow) {
|
||||
nsCOMPtr<nsPIDOMWindow> win = do_QueryInterface(mWindow);
|
||||
if (!win) {
|
||||
*aVolume = 1.0f;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
*aVolume = mWindow->GetAudioGlobalVolume();
|
||||
*aVolume = win->GetAudioGlobalVolume();
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user