Everywhere: Remove LibCore/System.h includes from header files

This reduces the number of compilation jobs when System.h changes from
about 750 to 60. (There are still a large number of linker jobs.)
This commit is contained in:
Timothy Flynn 2025-12-04 09:59:18 -05:00 committed by Sam Atkins
parent 58b32814e0
commit 674075f79e
Notes: github-actions[bot] 2025-12-04 15:42:18 +00:00
19 changed files with 155 additions and 97 deletions

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2022, Andrew Kaster <akaster@serenityos.org>
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/System.h>
#include <LibWeb/HTML/NavigatorConcurrentHardware.h>
namespace Web::HTML {
// https://html.spec.whatwg.org/multipage/workers.html#dom-navigator-hardwareconcurrency
WebIDL::UnsignedLongLong NavigatorConcurrentHardwareMixin::hardware_concurrency()
{
return Core::System::hardware_concurrency();
}
}