summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-163DFileViewer: Don't unveil "/home/anon/Documents/3D Models"Lucas CHOLLET
Usage of models is now done by `LibFileSystemAccessClient`.
2023-02-163DFileViewer: Set the window title name in `load_file()`Lucas CHOLLET
This patch allows two things: - Factorizing code that was in main and the open action - Displaying the full path of non-unveiled paths Indeed, looking for the path of a fd is not allowed if the file isn't unveiled. By setting the title in `load_file()` we are actually relying on the value returned by `LibFSAC` who is actually authorized to retrieve the entire path.
2023-02-163DFileViewer: Don't try to open textures without `LibFSASC`Lucas CHOLLET
2023-02-163DFileViewer: Port to `Core::File`Lucas CHOLLET
2023-02-16LibGfx: Add a stream compatible overload of `Bitmap::load_from_file()`Lucas CHOLLET
2023-02-16LibCore: Add `MappedFile::map_from_file()`Lucas CHOLLET
This method relies on `map_from_fd_and_close()` but takes a `File` instead of a fd.
2023-02-16LibCore: Allow `MappedFile` to make `File` leak its fdLucas CHOLLET
2023-02-16LibCore: Forward declare `MappedFile`Lucas CHOLLET
2023-02-163DFileViewer: Remove unnecessary tests when loading filesLucas CHOLLET
These tests are already performed by `LibFileSystemAccessClient`.
2023-02-163DFileViewer: Use `LibFSAC` in `GLContextWidget::load_path()`Lucas CHOLLET
It was the only function to not use the `LibFSAC`, it will allow us to: - Not unveil some file - Drop some tests on to-be-read-from file as they are performed in `LibFSAC`.
2023-02-163DFileViewer: Port `MeshLoader` and its child to the new `Core::File`Lucas CHOLLET
As it was using the `lines()` method of `Core::DeprecatedFile`, this patch also introduce the usage of `BufferedFile` to take advantage of its API: `can_read_line()` and `read_line()`.
2023-02-16PixelPaint: Add an option for making a Gradient with a secondary colorKarol Kosek
2023-02-16PixelPaint: Put the main gradient color at the cursorKarol Kosek
It doesn't seem right to me that we are 'holding' a transparent color, with the main color being on the opposite side.
2023-02-16PixelPaint: Set Tool on_*_color_change logic using virtual functionsKarol Kosek
Previously, we were rewriting the on_primary_color_change in the Text Tool and Gradient, which made the palette widget no longer update after picking a color from an image. Additionally, it also crashed the program after leaving the Gradient tool and trying to change color.
2023-02-16LibGUI: Add highlighting to `UrlBox`Cameron Youell
2023-02-16LibGUI: Account for `glyph_spacing()` in spansCameron Youell
2023-02-16LibUnicode: Remove non-iterative text segmentation algorithmsTimothy Flynn
They are now unused.
2023-02-16LibUnicode: Use iterative text segmentation algorithms for titlecasingTimothy Flynn
2023-02-16LibJS: Use iterative text segmentation algorithms for Intl.SegmenterTimothy Flynn
This uses the find-next and find-previous APIs instead of storing all indices as a vector.
2023-02-15Everywhere: Change all XXX into FIXME or remove as appropriateBen Wiederhake
2023-02-15LibELF: Implement _invoke_entry for aarch64Timon Kruiper
2023-02-15LibELF+LibC: Add support for aarch64 relocationsTimon Kruiper
This commit adds the used relocation types to elf.h, and handles the types in DynamicLoader and DynamicObject. No new functionalitty has to be added, as the same code can be reused between aarch64 and x86_64.
2023-02-15Kernel/aarch64: Implement Thread Local StorageTimon Kruiper
This commit adds Processor::set_thread_specific_data, and this function is used to factor out architecture specific implementation of setting the thread specific data. This function is implemented for aarch64 and x86_64, and the callsites are changed to use this function instead.
2023-02-15Kernel/aarch64: Remove tpidr_el0 from RegisterStateTimon Kruiper
In the next commit, this register will be populated by directly writing to it, instead of using the RegisterState mechanism.
2023-02-15LibC: Add general implementation for memcpy and memsetTimon Kruiper
2023-02-15Kernel/aarch64: Add implementations for safe_memset and safe_strnlenTimon Kruiper
They currently do not actually implement a safe memset or safe strnlen, but this initial implementation works fine for now.
2023-02-15Kernel/aarch64: Implement storing and restoring floating-point registersTimon Kruiper
2023-02-15Kernel/aarch64: Do not trap floating-point instructionsTimon Kruiper
This requires setting the FPEN field of the Architectural Feature Access Control Register (CPACR_EL1) to 0b11.
2023-02-15CMake: Add -mstrict-align flag to compile options for aarch64 buildTimon Kruiper
The aarch64 processor is set up to trap on unaligned memory accesses, so to enforce that the compiler correctly generates aligned accesses, the -mstrict-align flag is needed. We also need the -Wno-cast-align as there are some files in AK that don't build without the flag.
2023-02-15Kernel/aarch64: Handle SVC exception by calling syscall_handlerTimon Kruiper
The SVC (supervisor call) instruction is used in userland to do syscalls, and this commit adds the handling of syscalls to Interrupts.cpp.
2023-02-15LibELF+LibC: Add support for relative relocations in aarch64 binariesTimon Kruiper
This commit adds R_AARCH64_RELATIVE to elf.h and uses it in ELF::perform_relative_relocations to correctly verify the relocation type. This is the only change needed to support relative relocations for aarch64.
2023-02-15DynamicLoader: Disable stack protector in some files for aarch64 buildTimon Kruiper
The code would access the __stack_chk_guard variable in main.cpp and LibELF/Relocation.cpp before the loader was able to relocate itself, so this commit disable the stack protector for the aarch64 build to make sure that no accesses to __stack_chk_guard are inserted.
2023-02-15LibGfx: Move QOIWriter implementation-only things into cpp fileNico Weber
No behavior change.
2023-02-15LibWeb: Port CSS/Serialize.{h,cpp} to new Strings, and propagate errorsSam Atkins
2023-02-15LibWeb: Port CSS::MediaQuery to new StringsSam Atkins
2023-02-15LibWeb: Port CSS::Supports to new StringsSam Atkins
2023-02-15LibWeb: Port CSS::UnicodeRange to new StringsSam Atkins
2023-02-15LibWeb: Use StringView in CSS::PreferredColorSchemeSam Atkins
This doesn't need to hold the string data.
2023-02-15LibWeb: Port CSS::Display to new StringsSam Atkins
2023-02-15LibWeb: Port CSS::Parser::Rule to new StringsSam Atkins
`Rule::to_deprecated_string()` and `DeclarationOrAtRule::to_deprecated_string()` are not used anywhere, so we can just delete them.
2023-02-15LibWeb: Port CSS::Parser::Declaration to new StringsSam Atkins
2023-02-15LibWeb: Port CSS::Parser::ComponentValue to new StringsSam Atkins
2023-02-15LibWeb: Port CSS::Parser::Function to new StringsSam Atkins
2023-02-15LibWeb: Port CSS::Parser::Block to new StringsSam Atkins
2023-02-15LibWeb: Port ComputedValues to new StringsSam Atkins
2023-02-15LibWeb: Remove unused includes for DeprecatedStringSam Atkins
Missed these before, oops.
2023-02-15LibWeb: Port CSS Tokenizer to new StringsSam Atkins
Specifically, this uses FlyString, because the data gets held long-term as a FlyString anyway.
2023-02-15LibWeb: Implement ASCII case-insensitive matchingSam Atkins
While DeprecatedString and StringView use ASCII case-insensitivity when matching, String uses the Unicode rules, so in order to match the spec, we need to *not* use `String::equals_ignoring_case()`. This function needs to be used everywhere that the spec refers to an "ASCII case-insensitive match".
2023-02-15AK: Add StringBuilder::to_fly_string()Sam Atkins
2023-02-15AK: Let FlyStrings be assigned from StringsSam Atkins