mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-05 02:38:57 +00:00
We currently pass around the individual fields of the Application class to a bunch of free functions. This makes adding a new field, and passing it all the way to e.g. run_dump_test pretty annoying, as we have to go through about 5 function calls. This will get much worse in an upcoming patch to run LibWeb tests concurrently. There, we will have to further pass these flags around as async lambda value captures. To make this nicer, just access the flags from Application::the(), which is how the "real" UIs access their application objects as well.