Kenneth Myhra
c8c5f05de5
LibWeb: Make sure Blob type is not outside range 0x0020-0x007E
...
This makes sure that type is set to an empty string if
BlobPropertyBag::type is outside the range 0x0020 to 0x007E.
2022-08-02 08:20:40 +01:00
Kenneth Myhra
73aec263b1
LibWeb: Move is_basic_latin() to Blob.{cpp,h}
...
This method needs to be accessible from both Blob and File.
2022-08-02 08:20:40 +01:00
networkException
ad060befad
WindowServer+LibGUI: Remove awkward roundtrip for set wallpaper response
...
Previously we would wait for a separate message confirming that a
wallpaper got set instead of just calling a synchronous api.
I'm guessing that this was a limitation of the IPC system when
WindowServer got ported to using it.
This patch removes the SetWallpaperFinished message and updates the
set_wallpaper api to synchronously return a success boolean.
2022-08-02 04:04:08 +00:00
Andreas Kling
548081ea23
Userland+Base: Make the window titlebar font configurable separately
...
Instead of defaulting to "bold variant of the system default font",
let's allow the user to set any font they want as the titlebar font.
2022-08-01 10:29:53 +02:00
Andreas Kling
8862434376
LibGUI: Allow Tab key to switch focus from non-editable GUI::TextEditor
2022-08-01 10:29:53 +02:00
Andreas Kling
d18c25e973
LibGUI: Expose GUI::Button's "default" property to GML
2022-08-01 10:29:53 +02:00
Brian Gianforcaro
ea9ef33a7f
AK: Prefix CACHE_ALIGNED & SYSTEM_CACHE_ALIGNMENT_SIZE
2022-08-01 00:19:16 +02:00
Linus Groh
5f253988ef
LibJS: Call HostEnsureCanCompileStrings in PerformShadowRealmEval
...
We now do have this host-defined abstract operation :^)
2022-07-31 14:39:06 +02:00
Linus Groh
fed1498824
LibJS: Implement & use the {Ordinary,PrepareFor}WrappedFunctionCall AOs
...
This is a normative change in the ShadowRealm spec.
See: 5a3aae8
2022-07-31 14:39:06 +02:00
Karol Kosek
cf69763b54
LibGfx: Compress PNGs with a better compression level
...
While for a general purpose encoder a good balance between compression
speed and size by default is important, in case of PNG it don't matter
that much, as it was said in #14594 .
Also note that it's not the best we can have. We use zlib's compression
level, which has a range of 0-4, while our deflate implementation ranges
from 0 to 5.
2022-07-30 23:21:42 +02:00
Karol Kosek
a0546318f9
LibWeb: Make <th> elements bold by default
2022-07-30 22:32:29 +02:00
MacDue
d4b2eb22e1
LibWeb: Resolve circular IDL imports
...
These circular imports led to the generator silently failing to
generate the required methods/properties.
2022-07-30 13:20:47 +02:00
Kenneth Myhra
bbd9490683
LibWeb: Handle endings member of options being "native"
...
This patch passes the options argument to process_blob_parts() and makes
use of the "convert line endings to native" algorithm when the endings
member of options (BlobPropertyBag) is set to "native".
2022-07-30 10:59:46 +01:00
Kenneth Myhra
516ea4d758
LibWeb: Implement "convert line endings to native" algorithm
...
This adds the "convert line endings to native" algorithm from the
FileAPI spec.
2022-07-30 10:59:46 +01:00
Linus Groh
0355c72d6a
LibJS: Validate fractionalSecondDigits after truncation
...
This is a normative change in the Temporal spec.
Also correct some bogus spec numbers.
See:
- 39e1784
- c3c0ee1
- 273cb2e
2022-07-30 10:50:50 +01:00
Linus Groh
6850f25840
LibJS: Support IANA legacy names in the Temporal ISO 8601 grammar
...
This is a normative change in the Temporal spec.
See: 2419680
2022-07-30 10:50:50 +01:00
Linus Groh
41791146fd
LibJS: Disallow out-of-range return from previous / next transition
...
This is a normative change in the Temporal spec.
See: f3c771f
2022-07-30 10:50:50 +01:00
Sam Atkins
200e111af0
LibWeb: Extract the InnerHTML IDL mixin
2022-07-29 17:15:49 +01:00
Sam Atkins
b456adcb59
LibWeb: Extract the WindowOrWorkerGlobalScope IDL mixin
...
`Window` itself isn't generated from an IDL file so it doesn't get to
make use of this mixin, but it ideally would do so.
2022-07-29 17:15:49 +01:00
Sam Atkins
899fa30bdd
LibWeb: Extract the LinkStyle IDL mixin
2022-07-29 17:15:49 +01:00
Sam Atkins
8d2d315858
LibWeb: Extract the HTMLHyperlinkElementUtils IDL mixin
...
Also added FIXMEs for some missing methods while I was at it.
2022-07-29 17:15:49 +01:00
Sam Atkins
d4c40e3aad
LibWeb: Extract the ParentNode IDL mixin
2022-07-29 17:15:49 +01:00
Sam Atkins
79fdc08de9
LibWeb: Correct typo in Document.idl
...
Makes me wonder how things were working when Document was never
including GlobalEventHandlers.
2022-07-29 17:15:49 +01:00
Sam Atkins
d6a5ddd3c0
LibWeb: Extract the ChildNode IDL mixin
2022-07-29 17:15:49 +01:00
Undefine
97cc33ca47
Everywhere: Make the codebase more architecture aware
2022-07-27 21:46:42 +00:00
Tim Schumacher
6c4b5775e1
LibCore: Implement four-digit modes for FilePermissionsMask
parsing
2022-07-27 21:45:01 +00:00
Tim Schumacher
130f04c493
LibCore: Implement the 'X' modifier into FilePermissionMask
2022-07-27 21:45:01 +00:00
Timothy Flynn
60f3880650
LibJS: Remove %TypedArray%.prototype.toSpliced
...
This was removed from the change-array-by-copy proposal. See:
4c194d9
2022-07-27 17:35:50 +01:00
Timothy Flynn
a8d532c4fe
LibJS: Update Array.prototype.sort comments to align with implementation
...
This was fixed in the change-array-by-copy proposal. See:
60823eb
2022-07-27 17:35:50 +01:00
demostanis
48766449e5
LaunchServer+LibDesktop: Open from mime type
...
Before, LaunchServer would only open files based on their extension.
This wouldn't work if the file had the wrong one.
2022-07-27 17:11:25 +01:00
Andreas Kling
031322fde3
LibWeb: Make :enabled and :disabled selector handling more idiomatic
2022-07-27 17:29:48 +02:00
Andreas Kling
2ad98fdf80
LibWeb: Add fast_is<HTMLElement>()
...
This avoids slow RTTI lookups in selector matching.
2022-07-27 17:29:48 +02:00
Andreas Kling
9f32da1dbc
LibWeb: Add fast_is<HTMLBaseElement>()
...
This avoids slow RTTI lookups in Document::base_url().
2022-07-27 17:29:48 +02:00
Sam Atkins
7b4004d682
LibWeb: Ensure PercentageOr<T>::resolved() returns a concrete T
...
Which is to say, a T where `is_calculated()` is false.
As is becoming a repeating theme with CSS types, we have two states for
a FooPercentage that is a `calc()` expression: Either the FooPercentage
holds the CalculatedStyleValue directly, or it holds a Foo which itself
holds the CalculatedStyleValue. The first case was already handled to
return Foo, and with this patch, the second is too. :^)
2022-07-27 17:03:55 +02:00
Sam Atkins
3fce4f7c91
LibWeb: Resolve calc() FooPercentages that only contained percentages
...
Fixes #14697
Percentages inside `calc()` only got converted to the concrete type
(eg, Length) when added or subtracted with one. So if the `calc
()` doesn't contain any of that type, it would resolve to a
Percentage.
Now, we catch that returned Percentage and convert it to the proper
type. This fixes cases like `width: calc(100% / 2);`.
2022-07-27 17:03:55 +02:00
Sam Atkins
ef2469bfed
LibWeb: Add missing Formatters for CSS dimension types
2022-07-27 17:03:55 +02:00
Karol Kosek
fe60459353
LibAudio: Seek to the first frame on reset in FLAC
...
The files weren't starting exactly from the beginning before.
This happened because the parameter now takes the sample index, instead
of a seekpoint.
2022-07-26 23:59:06 +01:00
Karol Kosek
2878ad681e
LibAudio: Read FLAC Metadata blocks larger than the buffer size
...
Out of 40/63 failed tests, this change reduces the number down to four.
:^)
See: #14683
2022-07-26 23:59:06 +01:00
MacDue
b68f48eb71
LibWeb: Shrink the inner border radii to accommodate the border widths
...
This fixes the shape of the subreddit logo on new reddit.
2022-07-26 23:56:29 +01:00
Kenneth Myhra
890514a057
LibWeb: Introduce the File interface from the FileAPI spec
2022-07-26 20:54:30 +01:00
Kenneth Myhra
df91dbfbb6
LibWeb: Add missing spec links to the Blob interface
2022-07-26 20:54:30 +01:00
Kenneth Myhra
6305ef197f
LibWeb: Fix const issue on type() accessor for the Blob interface
2022-07-26 20:54:30 +01:00
Kenneth Myhra
c038a8c9c9
LibWeb: Make process_blob_parts() publicly accessible
...
This pulls process_blob_parts() out of the Blob class and makes it
publicly accessible.
2022-07-26 20:54:30 +01:00
Kenneth Myhra
622a4f29a7
LibWeb: Add public get accessor function for Blob's internal ByteBuffer
...
Blob::bytes() returns the ReadonlyBytes representation of our internal
ByteBuffer.
This change requires us to ByteBuffer::copy() Blob's ReadonlyBytes to a
ByteBuffer in XHR::send() and corresponding error handling of the copy
operation.
This removes the need for Blob to declare XMLHttpRequest as a friend
class.
2022-07-26 20:54:30 +01:00
Timothy Flynn
417a385db1
LibJS: Allow out-of-order plural ranges to be formatted
...
This is a normative change to the Intl NumberFormat V3 spec:
0c3d849
2022-07-26 10:46:08 -07:00
Timothy Flynn
fd7d97fba5
LibJS: Allow out-of-order number ranges to be formatted
...
This is a normative change to the Intl NumberFormat V3 spec:
0c3d849
2022-07-26 10:46:08 -07:00
Timothy Flynn
415742ab98
LibJS: Allow out-of-order date ranges to be formatted
...
This is a normative change to the Intl spec:
769df4b
2022-07-26 10:46:08 -07:00
gbowser3@gmail.com
16d189e96b
LibGUI: Move tooltip position up 4 pixels to prevent cursor pop-under
2022-07-26 12:42:18 +02:00
Andreas Kling
5f34c8ab03
LibWeb: Make automatic heights for abspos non-replaced behave better
...
Previously we were checking if values were "auto" after resolving the
"auto"-ness out of them, which didn't work. There's still a bunch of
work to do on this algorithm, but now we can at least resolve some basic
automatic height scenarios.
2022-07-26 01:53:41 +02:00
Andreas Kling
0258fd8043
LibWeb: Remove FFC helpers is_{main,cross}_axis_margin_first_auto()
...
We already cache these values with each flex item, so let's just use
those instead.
2022-07-26 01:53:41 +02:00