mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
58b32814e0
commit
674075f79e
Notes:
github-actions[bot]
2025-12-04 15:42:18 +00:00
Author: https://github.com/trflynn89
Commit: 674075f79e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7019
Reviewed-by: https://github.com/AtkinsSJ ✅
19 changed files with 155 additions and 97 deletions
19
Libraries/LibWeb/HTML/NavigatorConcurrentHardware.cpp
Normal file
19
Libraries/LibWeb/HTML/NavigatorConcurrentHardware.cpp
Normal 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();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue