mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 847839 - Remove some remnants of XUL fennec from the android widget codebase. r=cpeterson
This commit is contained in:
parent
973691f4a3
commit
ff7fe4d6fe
@ -767,8 +767,6 @@ public:
|
||||
ACTIVITY_PAUSING = 10,
|
||||
ACTIVITY_SHUTDOWN = 11,
|
||||
LOAD_URI = 12,
|
||||
SURFACE_CREATED = 13, // used by XUL fennec only
|
||||
SURFACE_DESTROYED = 14, // used by XUL fennec only
|
||||
NOOP = 15,
|
||||
FORCED_RESIZE = 16, // used internally in nsAppShell/nsWindow
|
||||
ACTIVITY_START = 17,
|
||||
|
@ -626,21 +626,6 @@ nsAppShell::PostEvent(AndroidGeckoEvent *ae)
|
||||
MutexAutoLock lock(mQueueLock);
|
||||
EVLOG("nsAppShell::PostEvent %p %d", ae, ae->Type());
|
||||
switch (ae->Type()) {
|
||||
case AndroidGeckoEvent::SURFACE_DESTROYED:
|
||||
// Give priority to this event, and discard any pending
|
||||
// SURFACE_CREATED events.
|
||||
mEventQueue.InsertElementAt(0, ae);
|
||||
AndroidGeckoEvent *event;
|
||||
for (int i = mEventQueue.Length() - 1; i >= 1; i--) {
|
||||
event = mEventQueue[i];
|
||||
if (event->Type() == AndroidGeckoEvent::SURFACE_CREATED) {
|
||||
EVLOG("nsAppShell: Dropping old SURFACE_CREATED event at %p %d", event, i);
|
||||
mEventQueue.RemoveElementAt(i);
|
||||
delete event;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case AndroidGeckoEvent::COMPOSITOR_CREATE:
|
||||
case AndroidGeckoEvent::COMPOSITOR_PAUSE:
|
||||
case AndroidGeckoEvent::COMPOSITOR_RESUME:
|
||||
|
Loading…
Reference in New Issue
Block a user