summaryrefslogtreecommitdiff
path: root/Userland
AgeCommit message (Collapse)Author
2023-02-17LibJS: Add a throwable StringBuilder::join methodTimothy Flynn
2023-02-17LibJS: Pre-allocate the out-of-memory error string on the VMTimothy 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-17LibJS: Add to_string definitions to CodeGenerationError and ParserErrorTimothy Flynn
2023-02-17LibGUI: Update TextEditor to delete emoji based on gbp clusterFausto 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-17LibGfx: 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-16PixelPaint: Propagate errors from making tool property widgetsKarol Kosek
2023-02-16LibJS: Actually escape \n|\r|LS|PS when escaping RegExp.sourceAli Mohammad Pur
We were previously encoding them as `\<literal newline>`, which is just all sorts of wrong :P
2023-02-16LibJS: 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-16LibJS: Escape printed strings making them proper string literalsAli Mohammad Pur
Previously we just printed '"' string-contents '"', which was not a proper string literal.
2023-02-16LibFileSystemAccessClient: Remove the deprecated APILucas 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-16LibJS: Remove Value::to_deprecated_string_without_side_effectsTimothy Flynn
2023-02-16Assistant+Spreadsheet: Convert usages of Value::TDSWOSE to Value::TSWOSETimothy Flynn
2023-02-16LibWeb: Convert usages of Value::TDSWOSE to Value::TSWOSETimothy Flynn
2023-02-16LibJS: Convert remaining usages of Value::TDSWOSE to Value::TSWOSETimothy Flynn
Note the couple of cases using MUST are just debugging statements.
2023-02-16LibJS: Change Print's print_type helper to accept a StringViewTimothy Flynn
There's no benefit to accepting a fly string, and this will soon be needed to be used with String.
2023-02-16LibJS: Remove unused Reference::to_deprecated_stringTimothy Flynn
2023-02-16LibJS: Convert CanonicalNumericIndexString to use NumberToStringTimothy Flynn
2023-02-16LibJS: Convert PropertyDescriptor's formatter to StringTimothy Flynn
And generally propagate OOM.
2023-02-16LbJS: Convert exception-related usages of Value::TDSWOSE to StringTimothy Flynn
TDSWOSE being to_deprecated_string_without_side_effects.
2023-02-16LibJS: Define Value::to_string_without_side_effects for StringTimothy Flynn
2023-02-16LibJS: Remove the VM parameter from the NumberToString AOTimothy 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-16LibJS: Define BigInt::to_string to complement to_deprecated_stringTimothy Flynn
2023-02-16LibJS+Everywhere: Deprecate Value::to_string_without_side_effectsTimothy Flynn
2023-02-16su: Only check for an interactive tty if a password is actually neededKarol Baraniecki
2023-02-16su: Allow to specify a command to be executed by -cKarol Baraniecki
su -c 'echo yeah'
2023-02-16ImageViewer: Rename "Go Back" and "Go Forward" actionsTim 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-16ImageViewer: Make arrow key shortcuts workTim 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-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-15LibC: Add general implementation for memcpy and memsetTimon Kruiper