Bug 1243070 - Remove obsolete size-change code; r=snorp
Remove obsolete SIZE_CHANGED event and its handler in nsWindow. Also remove some other supporting code (such as gAndroidBounds and the FORCED_RESIZE event) that should be unnecessary by now.
This commit is contained in:
@@ -735,15 +735,6 @@ nsAppShell::LegacyGeckoEvent::Run()
|
||||
break;
|
||||
}
|
||||
|
||||
case AndroidGeckoEvent::SIZE_CHANGED: {
|
||||
// store the last resize event to dispatch it to new windows with a FORCED_RESIZE event
|
||||
if (curEvent.get() != gLastSizeChange) {
|
||||
gLastSizeChange = AndroidGeckoEvent::CopyResizeEvent(curEvent.get());
|
||||
}
|
||||
nsWindow::OnGlobalAndroidEvent(curEvent.get());
|
||||
break;
|
||||
}
|
||||
|
||||
case AndroidGeckoEvent::VISITED: {
|
||||
#ifdef MOZ_ANDROID_HISTORY
|
||||
nsCOMPtr<IHistory> history = services::GetHistoryService();
|
||||
@@ -953,13 +944,6 @@ nsAppShell::LegacyGeckoEvent::PostTo(mozilla::LinkedList<Event>& queue)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsAppShell::ResendLastResizeEvent(nsWindow* aDest) {
|
||||
if (gLastSizeChange) {
|
||||
nsWindow::OnGlobalAndroidEvent(gLastSizeChange);
|
||||
}
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsAppShell::AddObserver(const nsAString &aObserverKey, nsIObserver *aObserver)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user