summaryrefslogtreecommitdiff
path: root/Userland/Libraries
AgeCommit message (Collapse)Author
2023-01-29LibJS: Fully qualify the use of AK::is in MUST_OR_THROW_OOMTimothy Flynn
This is to allow using this macro in contexts that have defined `is` already. For example, in ObjectConstructor, there is a native function `is` which would trip up the compiler without this change.
2023-01-29LibJS: Add a method to ThrowCompletionOr to drop allocation errorsTimothy Flynn
This should solely be used to ignore completions from Heap::allocate in currently-infallible contexts. It's mostly meant to let us both ignore these errors and mark them with a FIXME in one go.
2023-01-29LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errorsTimothy Flynn
Note that as of this commit, there aren't any such throwers, and the call site in Heap::allocate will drop exceptions on the floor. This commit only serves to change the declaration of the overrides, make sure they return an empty value, and to propagate OOM errors frm their base initialize invocations.
2023-01-29LibJS+LibWeb: Move headers around to allow including Value from CellTimothy Flynn
The goal here is to allow Cell::initialize to return a ThrowCompletion, to handle OOM for example. Cell.h will then need to include Completion.h which must include Value.h. This currently can't happen because Value.h includes BigInt.h, which in turn includes Cell.h. So we would have an include cycle. This removes BigInt.h from Value.h, as it is forward-declarable (it is only referred to with a reference or pointer). Then the Value overload for Cell::Visitor::visit is moved to Cell.h, and missing BigInt.h includes as peppered as needed.
2023-01-29LibJS: Define Date constants such that translation units don't copy themTimothy Flynn
Variables that are constexpr must be delcared inline in the global namespace to prevent copying them. The static keyword is meaningless on variables in headers in the global namespace. Declare the static bigint as extern and define it out-of-line instead.
2023-01-28LibJS: Replace some deprecated_string() with utf8_string() in TemporalLinus Groh
The remaining ones are needed for PropertyKey, which is not yet String compatible.
2023-01-28LibJS: Replace to_deprecated_string() with to_string() in TemporalLinus Groh
Turns out all of these can already be replaced with no further changes!
2023-01-28LibWeb: Replace ARIA role static FlyStrings with an enumMacDue
This replaces the FlyStrings for ARIA roles that were constructed in a [[gnu::constructor]] with a single enum. I came across this as the DOM inspector was crashing due to a null FlyString for an ARIA role. After fixing that, I was confused as to why these roles were not an enum. Looking at the spec there's a fixed list of roles and switching from references to static strings to an enum was pretty much an exercise in find and replace :). No functional changes (outside of fixing the mentioned crash).
2023-01-28LibAudio: Remove `try_` prefix from fallible LoaderPlugin methodsLinus Groh
2023-01-28LibAudio: Remove `try_` prefix from fallible LoaderPlugin methodsLinus Groh
2023-01-28LibCore: Remove `try_` prefix from fallible SharedCircularQueue methodsLinus Groh
2023-01-28AK: Remove `try_` prefix from FixedArray creation functionsLinus Groh
2023-01-28LibGfx+icc: Read and display lut16Type and lut8Type ICC tag typesNico Weber
2023-01-28LibGfx: Use AssertSize<> in ICC/Profile.cppNico Weber
2023-01-28LibWasm: Implement data.drop instructionSam Atkins
2023-01-28LibWasm: Move memory.init code together with other memory.foo implsSam Atkins
And add a spec link while I'm at it.
2023-01-28LibWasm: Implement memory.copy instructionSam Atkins
2023-01-28LibWasm: Implement memory.fill instructionSam Atkins
2023-01-28LibGfx: Make PNGImageDecoderPlugin::icc_data() return data if presentNico Weber
2023-01-28LibGfx: Process colorspace-related chunks in PNGLoaderNico Weber
This stores the data from all these chunks on PNGLoadingContext but doesn't do anything with it yet.
2023-01-28LibJS: Add spec comments to FunctionPrototypeLinus Groh
2023-01-28LibJS: Add spec comments to FinalizationRegistryPrototypeLinus Groh
2023-01-28LibJS: Add spec comments to FinalizationRegistryConstructorLinus Groh
2023-01-28LibJS: Add spec comments to DataViewPrototypeLinus Groh
2023-01-28LibJS: Add spec comments to DataViewConstructorLinus Groh
2023-01-28LibJS: Add spec comments to CompletionLinus Groh
2023-01-28LibJS: Add spec comments to BooleanConstructorLinus Groh
2023-01-28LibJS: Add spec comments to BigIntPrototypeLinus Groh
2023-01-28LibJS: Add spec comments to ArrayConstructorLinus Groh
2023-01-28LibJS: Add spec comments to ArrayBufferConstructorLinus Groh
2023-01-28LibJS: Implement the thisBooleanValue AO and use it in BooleanPrototypeLinus Groh
2023-01-28LibGfx: Split ICC/Profile.{h,cpp} into several filesNico Weber
s15Fixed16Number and XYZNumber are somewhat awkwardly duplicated in both Profile.cpp and TagTypes.cpp. Other than that, this is a pure code move. No behavior change.
2023-01-28LibGfx: Bump copyright year in ICC/Profile.{h,cpp}Nico Weber
2023-01-28LibGfx: Move ICCProfile.{h,cpp} to ICC/Profile.{h,cpp}Nico Weber
2023-01-28LibWeb: Add a few extra spec links to CanvasGradientMacDue
2023-01-28LibWeb: Throw exception if any canvas radial gradient radius is < 0MacDue
As per the specification: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createradialgradient
2023-01-28LibJS: Port Intl.DurationFormat to StringTimothy Flynn
2023-01-28LibJS: Port Intl.RelativeTimeFormat to StringTimothy Flynn
2023-01-28LibJS: Remove last use of DeprecatedString from Intl.MathematicalValueTimothy Flynn
2023-01-28LibLocale: Remove last use of DeprecatedString from LibLocaleTimothy Flynn
2023-01-28LibJS: Use String::join and String::trim in Temporal AOsTimothy Flynn
2023-01-27AK: Remove StringBuilder::build() in favor of to_deprecated_string()Linus Groh
Having an alias function that only wraps another one is silly, and keeping the more obvious name should flush out more uses of deprecated strings. No behavior change.
2023-01-27LibXML: Remove declarations for non-existent methodsSam Atkins
2023-01-27LibWeb: Remove declarations for non-existent methodsSam Atkins
2023-01-27LibWasm: Remove declarations for non-existent methodsSam Atkins
2023-01-27LibVideo: Remove declarations for non-existent methodsSam Atkins
2023-01-27LibTLS: Remove declarations for non-existent methodsSam Atkins
2023-01-27LibRegex: Remove declarations for non-existent methodsSam Atkins
2023-01-27LibPDF: Remove declarations for non-existent methodsSam Atkins
2023-01-27LibJS: Remove declarations for non-existent methodsSam Atkins