Sam Atkins
52cd0b2f47
LibWeb: Split BackgroundRepeatStyleValue out of StyleValue.{h,cpp}
2023-03-25 16:56:04 +00:00
Sam Atkins
92a0d4c0af
LibWeb: Split BackgroundStyleValue out of StyleValue.{h,cpp}
2023-03-25 16:56:04 +00:00
Sam Atkins
777d3e73f9
LibWeb: Split AngleStyleValue out of StyleValue.{h,cpp}
2023-03-25 16:56:04 +00:00
Marco Cutecchia
36c5afdfb2
Revert "Revert "Kernel/Storage: Remove the ramdisk implementation""
...
This reverts commit 187723776a
.
This was reverted because it was needed until the aarch64 port
got an SD card driver
Co-authored-by: Ollrogge <nils-ollrogge@outlook.de>
2023-03-25 16:50:36 +00:00
Marco Cutecchia
d09852642c
Revert "Kernel/aarch64: Embed disk image into kernel binary"
...
This reverts commit 3b65fd64fc
.
This is no longer needed as we don't use the ramdisk anymore
Co-authored-by: Ollrogge <nils-ollrogge@outlook.de>
2023-03-25 16:50:36 +00:00
Marco Cutecchia
f3363c1088
Meta: Run aarch64 with the disk image in the SD card slot
...
Co-authored-by: Timon Kruiper <timonkruiper@gmail.com>
Co-authored-by: Ollrogge <nils-ollrogge@outlook.de>
2023-03-25 16:50:36 +00:00
Marco Cutecchia
c91db6ec97
Kernel: Add an SD card driver for the aarch64 port
...
Co-authored-by: Ollrogge <nils-ollrogge@outlook.de>
2023-03-25 16:50:36 +00:00
Marco Cutecchia
bb8092d6a1
Kernel: Allow enabling high level detection on GPIOs
...
Co-authored-by: Timon Kruiper <timonkruiper@gmail.com>
Co-authored-by: Ollrogge <nils-ollrogge@outlook.de>
2023-03-25 16:50:36 +00:00
Marco Cutecchia
28acf25035
Kernel: Use u64 instead of int for the bitfields of CPACR_EL1
...
This fixes the Clang build of the aarch64 port
2023-03-25 16:50:36 +00:00
Marco Cutecchia
d0403d24d4
Kernel: Add missing include to Jail.h
2023-03-25 16:50:36 +00:00
Ali Mohammad Pur
6fc9f5fa28
LibRegex: Make ^ and $ accept all LineTerminator
s instead of just '\n'
...
Also adds a couple tests.
2023-03-25 15:44:05 +01:00
Liav A
59a76b1279
Kernel: Remove 2 duplicated listings of cpp files in CMakeLists.txt file
2023-03-25 08:46:54 +00:00
MacDue
95b6e57bfb
LibCore: Use Core::Process::spawn to start WebDriver processes
2023-03-24 22:06:38 +00:00
MacDue
cd7459d608
LibCore: Get the environment in Core::Process::spawn() on macOS
...
This is copied over from ladybird, but putting it here makes this
more reusable.
2023-03-24 22:06:38 +00:00
MacDue
3feddbf9da
Run: Use Core::Process::spawn() to launch commands
2023-03-24 22:06:38 +00:00
MacDue
43529ea25e
Taskbar: Use Process::spawn_or_show_error() for shutdown actions
2023-03-24 22:06:38 +00:00
MacDue
e46b9c189e
Taskbar: Use Process::spawn_or_show_error() to open the "Run" dialog
2023-03-24 22:06:38 +00:00
MacDue
c9043280ec
Taskbar: Use GUI::Process::spawn_or_show_error() to launch apps
...
And while here make a partial fix for launching terminal apps that
require root and contain spaces in their name/path.
2023-03-24 22:06:38 +00:00
MacDue
0af3e37f5d
KeyboardPreferenceLoader: Use Core::Process::spawn() to set keymap
2023-03-24 22:06:38 +00:00
MacDue
ceffca9a75
WebDriver: Use Core::Process::spawn() to launch browsers
2023-03-24 22:06:38 +00:00
MacDue
2aa8c9950e
FileManager: Use GUI::Process::spawn_or_show_error() to open terminals
2023-03-24 22:06:38 +00:00
MacDue
d27a513dc5
LibCore: Add KeepAsChild option to Core::Process::spawn()
...
This now allows spawning a process without disowning.
2023-03-24 22:06:38 +00:00
MacDue
b3edd83e0a
LibGUI: Allow passing working directory to spawn_or_show_error()
2023-03-24 22:06:38 +00:00
MacDue
62e8360dcf
LibCore: Fix memory leak in Core::Process::spawn()
...
Previously the spawn_actions were not destroyed, which leaked a
little memory.
2023-03-24 22:06:38 +00:00
Pankaj Raghav
d0ac24ddbf
Kernel/Syscalls: Use copy_n_to_user when applicable
...
copy_to_user() with bytes as the last argument could be changed to using
copy_n_to_user() with a count.
2023-03-24 18:25:12 +01:00
Pankaj Raghav
f32fde6152
Kernel/StdLib: Change try_copy_n_to_user to copy_n_to_user
...
Let us keep the naming consistent between copy_n_from_user() and
copy_n_to_user()
2023-03-24 18:25:12 +01:00
Andreas Kling
aeb8224ec8
LibCompress: Speed up deflate decompression by ~11%
...
...simply by using LittleEndianInputBitStream::read_bit() instead of
read_bits(1). This puts us on the fast path for single-bit reads.
There's still lots of money on the table for bigger optimizations to
claim here, just picking an embarrassingly low-hanging fruit. :^)
2023-03-24 17:08:35 +01:00
Jelle Raaijmakers
ea9707ec29
LibCrypto: Update entire blocks in SHA*::update()
...
Instead of going byte by byte, copy entire blocks at once and only check
if we need to update the state once per block. This pretty much
eliminates `::update()` from profiles and measurably improves
performance for utilities like `sha256sum`.
2023-03-24 15:28:10 +00:00
Jelle Raaijmakers
0606d371fe
Tests/LibCrypto: Test block splitting logic for SHA1/SHA256
...
We were not testing this logic and I caused a regression while
modifying some of the hashing code, so let's add these. Note that I only
added two tests to test both 'families' of implementations for the SHA
hashes.
2023-03-24 15:28:10 +00:00
Jelle Raaijmakers
88b0b80aab
LibCrypto: Stop shadowing i
variable
2023-03-24 15:28:10 +00:00
Cameron Youell
c048cf2004
Libraries: Convert DeprecatedFile
usages to LibFileSystem
2023-03-24 10:58:43 +00:00
Cameron Youell
1dc3ba6ed5
Applications: Convert DeprecatedFile
usages to LibFileSystem
2023-03-24 10:58:43 +00:00
MacDue
5ba7449342
Base: Add radio buttons to the accent-color demo page
2023-03-24 09:57:48 +00:00
MacDue
dd77b878b3
LibWeb: Add scalable radio buttons (with theme/accent-color support)
...
These are similar to the checkboxes now (though no SDFs here all just
plain AA painter).
2023-03-24 09:57:48 +00:00
MacDue
56bc653e72
LibWeb: Move checkbox color palette computation to helper header
...
This will allow these to be more easily reused for other inputs.
Note that we need this as the base LibGfx pallet does not quite have
the required range for HTML inputs (though these shades are based off
the LibGfx palette).
2023-03-24 09:57:48 +00:00
MacDue
98040c508f
LibGfx: Handle signed distance field edges better
...
Small change to treat pixels outside the signed distance field bitmap
as outside the shape.
2023-03-24 09:57:48 +00:00
Lucas CHOLLET
fcaa535dec
LibGfx/PortableFormat: Use static_cast
instead of C-style casts
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
fd04b2dc9b
LibGfx/PortableFormat: Propagate errors from decode()
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
7ec310384a
LibGfx/PortableFormat: Propagate errors from read_image_data()
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
2356b48f13
LibGfx/PortableFormat: Propagate errors from read_magic_number()
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
f96b61fdd8
LibGfx: Remove unused class Streamer
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
7cafd7d177
LibGfx/PortableFormat: Port to Stream
...
Each one of `[PBM, PGM, PPM]Loader` used yet another stream-like relic.
This patch ports all of them to `AK::Stream`.
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
b9574c180e
LibGfx/PortableFormat: Use finite loops in read_image_data
...
The `read_image_data` function of each one of[PBM, PGM, PPM]Loader use
the same structure to read an image. This patch harmonizes the three
functions and use finite loops instead of reading until EOF. It allows
to quit early on bloated file, but it's mainly done for refactoring
purpose.
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
24087ef6eb
LibGfx: Return true from PortableImageDecoderPlugin::initialize()
...
Reading the two magic bytes are always done in `decode()` by calling
`read_magic_number()`. So no need to read it twice.
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
4554d10fe5
LibGfx: Remove unused functions load_from_memory
and load_impl
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
05e6ed6ecb
LibGfx/PortableFormat: Propagate errors from some read_*
functions
...
These functions are:
- read_width
- read_height
- read_max_val
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
bab2113ec1
LibGfx/PortableFormat: Make read_whitespace
return an ErrorOr
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
74f893e9f4
LibGfx/PortableFormat: Make read_comment
return an ErrorOr
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
964172754e
LibGfx/PortableFormat: Don't accept comments that don't start with #
2023-03-24 10:56:58 +01:00
Lucas CHOLLET
9052a6febf
LibGfx/PortableFormat: Simplify read_number
signature
...
The function signature goes from:
`bool read_number(Streamer& streamer, TValue* value)`
to
`ErrorOr<u16> read_number(Streamer& streamer)`
It allows us to, on one hand use `ErrorOr` for error propagation,
removing an out parameter in the meantime, and on the other hand remove
the useless template.
2023-03-24 10:56:58 +01:00