summaryrefslogtreecommitdiff
path: root/Userland
AgeCommit message (Collapse)Author
2023-05-13FontEditor: Move common restoration work into restore_state()thankyouverycool
2023-05-13FontEditor: Use resultant FSAC filename when Saving-asthankyouverycool
Fixes desync between file and title.
2023-05-13FontEditor: Use fallible {Input,Message}Boxesthankyouverycool
And replace DeprecatedString and fix misnamed argument in show_error()
2023-05-13FontEditor: Don't crash on missing iconsthankyouverycool
Instead of crashing on failed icon loading with TRY(), let's report missing but non-critical resources in detail and gracefully move on.
2023-05-13FontEditor: Rename m_edited_font => m_font and remove getterthankyouverycool
Pithier and it matches the naming convention used in FontEditor's child widgets. Since it was never used outside MainWidget and there will soon be no guarantee that m_font is nonnull, the public BitmapFont& getter has also been removed.
2023-05-13FontEditor: Remove unnecessary call to hide() NewFontDialogthankyouverycool
This workaround has not been needed since 5c92397
2023-05-13FontEditor: Remove unnecessary setters and gettersthankyouverycool
As these were only used internally, let's simplify things and prevent potential desync between widget state and saved settings by moving the logic into their respective actions.
2023-05-13FontEditor: Remove unnecessary deferred invokesthankyouverycool
Since moving initialization out of the constructor and recalculating GlyphMap's content size on range and font changes, these deferrals are no longer needed.
2023-05-13FontEditor: Make update_title() privatethankyouverycool
2023-05-13FontEditor: Tighten lambda capturesthankyouverycool
2023-05-13FontEditor: Propagate errors formatting preview textthankyouverycool
2023-05-13FontEditor: Propagate errors when loading GMLthankyouverycool
2023-05-13FontEditor: Port some instances of DeprecatedStringthankyouverycool
2023-05-13FontEditor: Iterate slope and weight lists by size()thankyouverycool
2023-05-13FontEditor: Convert Model lists to Vector<String>thankyouverycool
And propagate errors while building them.
2023-05-13LibGfx: Convert FontStyleMappings to Arraysthankyouverycool
This will let us neatly ensure capacities, do unchecked appends, and iterate by size() on FontEditor's models.
2023-05-13LibGUI: Add fallible factories to ItemListModelthankyouverycool
2023-05-13LibGUI: Ignore Alt+{Left,Right} key events in GlyphMapWidgetthankyouverycool
Fixes seek actions not activating by keyboard shortcut when GlyphMapWidget has focus.
2023-05-13LibWeb: Return grid container width from automatic_content_width in GFCAliaksandr Kalenik
automatic_content_width() should return grid container width that is supposed to be set by determine_intrinsic_size_of_grid_container().
2023-05-13LibWeb: Implement grid container intrinsic sizes calculationAliaksandr Kalenik
When a width/height constraint is applied to GFC it should set its own width/height to the sum of track sizes according to the spec. Changes in layout tests are improvement over what we had before.
2023-05-13LibWeb: Fix condition to determine auto tracks while sizing in GFCAliaksandr Kalenik
This solves the issue when track with "fixed" min sizing function were treated like "auto" during sizing.
2023-05-13SpiceAgent: Gracefully handle the host clearing the clipboardDaniel Bertalan
When the host clears the clipboard (e.g. by running `pbcopy </dev/null`) the Spice server sends an empty string to us. Previously, we would crash as `AnonymousBuffer::create_with_size` doesn't accept a size of 0. Fix this by passing `{}` to `async_set_clipboard_data` in this case.
2023-05-13LibWeb: Let HTMLImageElement delay the document load event againAndreas Kling
2023-05-13LibWeb: Don't force HTMLImageElement to have a legacy ImageLoaderAndreas Kling
We achieve this by adding a new Layout::ImageProvider class and having both HTMLImageElement and HTMLObjectElement inherit from it. The HTML spec is vague on how object image loading should work, which is why this first pass is focusing on image elements.
2023-05-13LibWeb: Implement enough of "update the image data" to load imagesAndreas Kling
This first pass is enough to get us: - Image loading via fetch - Source selection via srcset and sizes attributes
2023-05-13LibWeb: Add a class to represent the "source set" concept from HTMLAndreas Kling
Also comes with a little extra CSS parser helper for parsing "sizes" attributes in images.
2023-05-13LibWeb: Add class to represent "list of available images" from HTML specAndreas Kling
2023-05-13LibWeb: Start fleshing out HTML "image requests" and "image data"Andreas Kling
This patch adds HTML::ImageRequest and HTML::DecodedImageData. The latter had to use a different name than "ImageData", as there is already an IDL-exposed ImageData class in HTML.
2023-05-13LibDebug: Propagate errors around LineProgramBen Wiederhake
Found while playing Fixme-Roulette.
2023-05-13LibCore: Remove unused API from DeprecatedFileBen Wiederhake
It looks like this migration it taking a while, so let's make sure noone accidentally introduces new usages of this currently-unused API.
2023-05-13Userland: Merge DEFAULT_PATH into LibFileSystem/FileSystem.hBen Wiederhake
2023-05-13LibWeb: Make PercentageOr<T> equality comparison work for calc() valuesAndreas Kling
This makes hovering around on GitHub fast again, as it no longer believes that the grid-template-areas property keeps changing when it didn't :^) Also made to_string() work for calc() values as well, since I stumbled upon that while debugging this.
2023-05-13LibWeb: Fix typo in containing_block_size_for_item in GFCAliaksandr Kalenik
2023-05-13LibWeb: Align calculate_min/max_content_contribution with the specAliaksandr Kalenik
This change brings more spec compliant implementation of functions to calculate min/max contributions of grid items in containing block size.
2023-05-12SystemServer: Migrate from DeprecatedFile to FileBen Wiederhake
Note that previously, the only check was that at least one byte was read from /dev/devctl. This is incorrect, as potentially not the entire struct was read. In practice, this probably never happened, but the new code at least detects this case and aborts.
2023-05-12LibKeyboard: Read keymap through File, not DeprecatedFileBen Wiederhake
This results in a new OOM prevention. Hooray!
2023-05-12AudioServer: Migrate from DeprecatedFile to FileBen Wiederhake
Advances #17129.
2023-05-12ClipboardHistory: Use titlecasing in the applet's window titleTimothy Flynn
2023-05-12LibGfx+Fuzz: Convert ImageDecoder::initialize to ErrorOrBen Wiederhake
This prevents callers from accidentally discarding the result of initialize(), which was the root cause of this OSS Fuzz bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=55896&q=label%3AProj-serenity&sort=summary
2023-05-12LibWeb: Implement fetching classic scripts using Fetch infrastructureTimothy Flynn
2023-05-12LibWeb: Implement the fetch a classic script AOTimothy Flynn
Note that this unfortunately requires the same workaround as <link> elements to handle CORS cross-origin responses.
2023-05-12LibTextCodec: Change UTF-8's decoder to replace invalid code pointsTimothy Flynn
The UTF-8 decoder will currently crash if it is provided invalid UTF-8 input. Instead, change its behavior to match that of all other decoders to replace invalid code points with U+FFFD. This is required by the web.
2023-05-12LibWeb: Add an alias for FetchAlgorithm's consume-body callback argumentTimothy Flynn
This will make it more convenient in places where the Variant would need to be re-typed outside of this class.
2023-05-12LibWeb: Change the script fetch completion callback to accept any scriptTimothy Flynn
The completion callback currently only accepts a JavaScriptModuleScript. The same callback will need to be used for ClassicScript scripts as well so allow the callback to accept any Script type. The single existing outside caller already stores the result as a Script.
2023-05-12LibWeb: Implement the fetch response's unsafe response AOTimothy Flynn
2023-05-12LibWeb: Implement the fetch response is CORS-cross-origin AOTimothy Flynn
2023-05-12LibWeb: Implement the legacy extracting an encoding AOTimothy Flynn
2023-05-12LibWeb: Implement the CORS settings attribute credentials mode AOTimothy Flynn
2023-05-12LibGfx: VERIFY() error is finite when splitting bezier curvesMacDue
If this value somehow becomes nan/inf the painter will keep splitting the path till the process OOMs, a simple crash would be preferable.
2023-05-12LibWeb: Use .to_px_or_zero() in tentative_height_for_replaced_element()MacDue
If just .to_px() is used the height can end up as the float `inf` or `nan`. This caused an OOM when loading Polygon as this `inf` would become a `nan` and propagate to the SVG painting, which then attempts to draw a path with nan control points, which would make the Gfx::Painter infinitely split the path till it OOM'd.