Issue #2112 - Part 3: Remove --enable-stylo config and conditionals

This commit is contained in:
FranklinDM 2022-05-23 23:05:22 +08:00 • committed by roytam1
commit e777ae5a3c
21 changed files with 0 additions and 254 deletions

View file

@ -3767,15 +3767,6 @@ XREMain::XRE_mainRun()
rv = appStartup->CreateHiddenWindow();
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
#ifdef MOZ_STYLO
// We initialize Servo here so that the hidden DOM window is available,
// since initializing Servo calls style struct constructors, and the
// HackilyFindDeviceContext stuff we have right now depends on the hidden
// DOM window. When we fix that, this should move back to
// nsLayoutStatics.cpp
Servo_Initialize();
#endif
#if defined(HAVE_DESKTOP_STARTUP_ID) && defined(MOZ_WIDGET_GTK)
nsGTKToolkit* toolkit = nsGTKToolkit::GetToolkit();
if (toolkit && !mDesktopStartupID.IsEmpty()) {
@ -3848,12 +3839,6 @@ XREMain::XRE_mainRun()
}
}
#ifdef MOZ_STYLO
// This, along with the call to Servo_Initialize, should eventually move back
// to nsLayoutStatics.cpp.
Servo_Shutdown();
#endif
return rv;
}