Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-02-17 | LibJS: Add a throwable StringBuilder::join method | Timothy Flynn | |
2023-02-17 | LibJS: Pre-allocate the out-of-memory error string on the VM | Timothy Flynn | |
If we are out of memory, we can't try to allocate a string that could fail as well. When Error is converted to String, this would result in an endless OOM-throwing loop. Instead, pre-allocate the string on the VM, and use it to construct the Error. Note that as of this commit, the OOM string is still a DeprecatedString. This is just preporatory for Error's conversion to String. | |||
2023-02-17 | LibJS: Add to_string definitions to CodeGenerationError and ParserError | Timothy Flynn | |
2023-02-17 | LibGUI: Update TextEditor to delete emoji based on gbp cluster | Fausto Tommasi | |
Updated TextDocument and TextEditor to use calls to `find_grapheme_segmentation_boundary` in order to make "correct-feeling" deletions on backspace and delete keys being pressed | |||
2023-02-17 | LibGfx: Remove `Bitmap::load_from_fd_and_close()` | Lucas CHOLLET | |
The method was only used in `load_from_file(StringView path)` and replacing it with `load_from_file(NonnullOwnPtr<Core::File>)` is very straightforward. | |||
2023-02-16 | PixelPaint: Propagate errors from making tool property widgets | Karol Kosek | |
2023-02-16 | LibJS: Actually escape \n|\r|LS|PS when escaping RegExp.source | Ali Mohammad Pur | |
We were previously encoding them as `\<literal newline>`, which is just all sorts of wrong :P | |||
2023-02-16 | LibJS: Manually loop over escaped regex pattern instead of ::replace() | Ali Mohammad Pur | |
This makes it ever-so-slightly faster, but more importantly, it fixes the bug where a `/\//` regex's `source` property would return `\\/` ("\\\\/") instead of `\/` due to the existing '/' -> '\/' replace() call. | |||
2023-02-16 | LibJS: Escape printed strings making them proper string literals | Ali Mohammad Pur | |
Previously we just printed '"' string-contents '"', which was not a proper string literal. | |||
2023-02-16 | LibFileSystemAccessClient: Remove the deprecated API | Lucas CHOLLET | |
Concerned functions are: - try_request_file_read_only_approved_deprecated - try_request_file_deprecated - try_open_file_deprecated - try_save_file_deprecated It also allows some simplifications in the implementation of the client. | |||
2023-02-16 | LibJS: Remove Value::to_deprecated_string_without_side_effects | Timothy Flynn | |
2023-02-16 | Assistant+Spreadsheet: Convert usages of Value::TDSWOSE to Value::TSWOSE | Timothy Flynn | |
2023-02-16 | LibWeb: Convert usages of Value::TDSWOSE to Value::TSWOSE | Timothy Flynn | |
2023-02-16 | LibJS: Convert remaining usages of Value::TDSWOSE to Value::TSWOSE | Timothy Flynn | |
Note the couple of cases using MUST are just debugging statements. | |||
2023-02-16 | LibJS: Change Print's print_type helper to accept a StringView | Timothy Flynn | |
There's no benefit to accepting a fly string, and this will soon be needed to be used with String. | |||
2023-02-16 | LibJS: Remove unused Reference::to_deprecated_string | Timothy Flynn | |
2023-02-16 | LibJS: Convert CanonicalNumericIndexString to use NumberToString | Timothy Flynn | |
2023-02-16 | LibJS: Convert PropertyDescriptor's formatter to String | Timothy Flynn | |
And generally propagate OOM. | |||
2023-02-16 | LbJS: Convert exception-related usages of Value::TDSWOSE to String | Timothy Flynn | |
TDSWOSE being to_deprecated_string_without_side_effects. | |||
2023-02-16 | LibJS: Define Value::to_string_without_side_effects for String | Timothy Flynn | |
2023-02-16 | LibJS: Remove the VM parameter from the NumberToString AO | Timothy Flynn | |
This will be needed by Value::to_string_without_side_effects, which can be called in contexts without a VM (e.g. in AK::Format specializations). So to_string_without_side_effects will need to be callable without a VM, thus NumberToString must be as well. | |||
2023-02-16 | LibJS: Define BigInt::to_string to complement to_deprecated_string | Timothy Flynn | |
2023-02-16 | LibJS+Everywhere: Deprecate Value::to_string_without_side_effects | Timothy Flynn | |
2023-02-16 | su: Only check for an interactive tty if a password is actually needed | Karol Baraniecki | |
2023-02-16 | su: Allow to specify a command to be executed by -c | Karol Baraniecki | |
su -c 'echo yeah' | |||
2023-02-16 | ImageViewer: Rename "Go Back" and "Go Forward" actions | Tim Ledbetter | |
This commit renames "Go Back" to "Go to Previous" and "Go Forward" to "Go to Next". This better reflects what the actions do. | |||
2023-02-16 | ImageViewer: Make arrow key shortcuts work | Tim Ledbetter | |
The user can now navigate to the previous and next image using the left and right arrow keys respectively. These shortcuts were previously not working. | |||
2023-02-16 | 3DFileViewer: Don't unveil "/home/anon/Documents/3D Models" | Lucas CHOLLET | |
Usage of models is now done by `LibFileSystemAccessClient`. | |||
2023-02-16 | 3DFileViewer: 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-16 | 3DFileViewer: Don't try to open textures without `LibFSASC` | Lucas CHOLLET | |
2023-02-16 | 3DFileViewer: Port to `Core::File` | Lucas CHOLLET | |
2023-02-16 | LibGfx: Add a stream compatible overload of `Bitmap::load_from_file()` | Lucas CHOLLET | |
2023-02-16 | LibCore: 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-16 | LibCore: Allow `MappedFile` to make `File` leak its fd | Lucas CHOLLET | |
2023-02-16 | LibCore: Forward declare `MappedFile` | Lucas CHOLLET | |
2023-02-16 | 3DFileViewer: Remove unnecessary tests when loading files | Lucas CHOLLET | |
These tests are already performed by `LibFileSystemAccessClient`. | |||
2023-02-16 | 3DFileViewer: 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-16 | 3DFileViewer: 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-16 | PixelPaint: Add an option for making a Gradient with a secondary color | Karol Kosek | |
2023-02-16 | PixelPaint: Put the main gradient color at the cursor | Karol 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-16 | PixelPaint: Set Tool on_*_color_change logic using virtual functions | Karol 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-16 | LibGUI: Add highlighting to `UrlBox` | Cameron Youell | |
2023-02-16 | LibGUI: Account for `glyph_spacing()` in spans | Cameron Youell | |
2023-02-16 | LibUnicode: Remove non-iterative text segmentation algorithms | Timothy Flynn | |
They are now unused. | |||
2023-02-16 | LibUnicode: Use iterative text segmentation algorithms for titlecasing | Timothy Flynn | |
2023-02-16 | LibJS: Use iterative text segmentation algorithms for Intl.Segmenter | Timothy Flynn | |
This uses the find-next and find-previous APIs instead of storing all indices as a vector. | |||
2023-02-15 | Everywhere: Change all XXX into FIXME or remove as appropriate | Ben Wiederhake | |
2023-02-15 | LibELF: Implement _invoke_entry for aarch64 | Timon Kruiper | |
2023-02-15 | LibELF+LibC: Add support for aarch64 relocations | Timon 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-15 | LibC: Add general implementation for memcpy and memset | Timon Kruiper | |