mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 904579 - don't use nsCOMPtr for concrete classes in android's nsWindow.cpp; r=blassey
This commit is contained in:
parent
393e11df13
commit
586a409105
@ -72,7 +72,7 @@ static gfxIntSize gAndroidScreenBounds;
|
||||
#include "nsThreadUtils.h"
|
||||
|
||||
class ContentCreationNotifier;
|
||||
static nsCOMPtr<ContentCreationNotifier> gContentCreationNotifier;
|
||||
static StaticRefPtr<ContentCreationNotifier> gContentCreationNotifier;
|
||||
|
||||
// A helper class to send updates when content processes
|
||||
// are created. Currently an update for the screen size is sent.
|
||||
@ -822,7 +822,7 @@ nsWindow::OnGlobalAndroidEvent(AndroidGeckoEvent *ae)
|
||||
if (!obs)
|
||||
break;
|
||||
|
||||
nsCOMPtr<ContentCreationNotifier> notifier = new ContentCreationNotifier;
|
||||
nsRefPtr<ContentCreationNotifier> notifier = new ContentCreationNotifier;
|
||||
if (NS_SUCCEEDED(obs->AddObserver(notifier, "ipc:content-created", false))) {
|
||||
if (NS_SUCCEEDED(obs->AddObserver(notifier, "xpcom-shutdown", false)))
|
||||
gContentCreationNotifier = notifier;
|
||||
|
Loading…
Reference in New Issue
Block a user