Tim Ledbetter
d946d94e2d
LibWeb: Improve relList feature detection support
...
`DOMTokenList.supports()` is now correct for all possible `rel`
attribute values for `link`, `a`, `area` and `form` elements.
2024-12-06 18:09:53 +00:00
Timothy Flynn
234f218803
LibJS: Ensure GetDateTimeFormat returns nonnull for the best format
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/8a52801
2024-12-06 11:13:10 -05:00
Timothy Flynn
7104d724ee
LibJS: Simplify condition in GetDateTimeFormat
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/23c74b6
2024-12-06 11:13:10 -05:00
Timothy Flynn
6b8acc0af5
LibJS: Ensure DifferenceISODateTime receives valid ISO date-times
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/b5da334
2024-12-06 11:13:10 -05:00
Andrew Kaster
56d45282ea
LibWeb/WebGL: Don't crash on unknown getParameter on the context
...
And allow the implementation to set the error code.
2024-12-06 15:35:36 +01:00
Andrew Kaster
af536e1192
LibWeb: Add stubbed-out WebGL2RenderingContext
2024-12-06 15:35:36 +01:00
Andrew Kaster
9c24bb3cee
LibWeb/WebGL: Alphabetize imports for WebGLRenderingContextBase IDL
2024-12-06 15:35:36 +01:00
Andrew Kaster
7abc79ece7
LibWeb/WebGL: Add stub class for WebGLVertexArrayObject
...
This is a WebGL 2.0 class
2024-12-06 15:35:36 +01:00
Andrew Kaster
39018d233f
LibWeb/WebGL: Add stub class for WebGLTransformFeedback
...
This is a WebGL 2.0 class
2024-12-06 15:35:36 +01:00
Andrew Kaster
bb3226ee57
LibWeb/WebGL: Add stub class for WebGLSync
...
This is a WebGL 2.0 class
2024-12-06 15:35:36 +01:00
Andrew Kaster
2b5e54e995
LibWeb/WebGL: Add stub class for WebGLSampler
...
This is a WebGL 2.0 class
2024-12-06 15:35:36 +01:00
Andrew Kaster
69e4adbd98
LibWeb/WebGL: Add stub class for WebGLQuery
...
This is a WebGL 2.0 class
2024-12-06 15:35:36 +01:00
Andrew Kaster
d8ccd6b87c
LibWeb/WebGL: Don't crash when there's no skia backend context
2024-12-06 15:35:36 +01:00
Andrew Kaster
f2ac4f3f2e
LibWeb: Add GL types for WebGL 2.0
2024-12-06 15:35:36 +01:00
R-Goc
bebf787c36
LibCore: Add ProcessWindows.cpp to CMakeLists
2024-12-06 13:11:44 +00:00
Totto16
9730e47d51
LibWeb: Add CanvasImageSource to ImageBitmapSource typedef
2024-12-06 13:10:27 +00:00
Luke Warlow
eb1c60f37b
LibWeb: Implement popover methods
...
Implements basics of showPopover, hidePopover and togglePopover.
2024-12-06 12:39:14 +00:00
Luke Warlow
b17bbe6d1f
LibWeb: Implement ::details-content
pseudo element
...
Details' contents matches a new details-content pseudo element.
Further work is required to make this pseudo-element behave per spec.
This pseudo should be element-backed per
https://drafts.csswg.org/css-pseudo/#element-backed
2024-12-06 07:16:41 +00:00
Lucas CHOLLET
2249f09267
LibWeb: Fix use-after-move in handle_successful_bitmap_decode
...
Introduced in bd932858
, the code would try to move `result.color_space`
into the ImmutableBitmap created for each single frame of an image. For
animated images, this would result in a use-after-move from the second
frame.
2024-12-06 06:59:40 +00:00
Luke Warlow
7c9a162f99
LibWeb: Remove :closed pseudo class
...
This was removed from the spec.
2024-12-06 04:49:36 +00:00
Sam Atkins
ebc91686b5
LibWeb/Layout: Add FIXMEs where we're using the wrong font
...
It's not clear how to address these right now, so add a FIXME to make
them easier to find and address later.
2024-12-06 02:57:34 +01:00
Sam Atkins
00302b5b1e
LibWeb/Painting: Place text cursor using GlyphRun font
...
This makes the cursor appear in the correct place when the text makes
use of multiple different fonts.
2024-12-06 02:57:34 +01:00
Sam Atkins
3782975718
LibWeb/Layout: Use GlyphRun font to measure trimmed whitespace
2024-12-06 02:57:34 +01:00
Sam Atkins
e457252c97
LibWeb/Painting: Use GlyphRun font for measuring selection rectangle
...
We incorrectly used the first available font to measure this before,
which may or may not be the correct font for this text.
2024-12-06 02:57:34 +01:00
rmg-x
d2521c8e72
LibWebView+WebContent: Add and set cmdline option for echo server port
2024-12-05 17:02:57 -07:00
rmg-x
ece611718d
LibWebView+UI: Read and set echo server port in HttpEchoServerFixture
...
This commit adds a "echo_server_port" property to `WebContentOptions`.
Additionally, it makes `Application::web_content_options()` return a
mutable reference instead of a const reference so that we can set the
port value from the fixture.
2024-12-05 17:02:57 -07:00
rmg-x
aa4dcca0b2
LibCore/Process: Add DupFd
file action
...
This commit provides a new file action allowing callers to provide a
`write_fd` that Process will "redirect" the child's stdin/stdout to.
2024-12-05 17:02:57 -07:00
rmg-x
cddbe7d10f
LibWeb+Tests: Add internal property for echo server port
2024-12-05 17:02:57 -07:00
Konstantin Konstantin
7d49704481
LibWeb: Serialization for resizable/shared array buffers
...
Add serialization for the following array buffer types:
* ResizableArrayBuffer
* SharedArrayBuffer
* GrowableSharedArrayBuffer
2024-12-05 17:02:41 -07:00
Sam Atkins
21e6db6ba4
LibWeb/HTML: Resolve image decoding promises inside tasks
...
This corresponds to https://github.com/whatwg/html/pull/10753
WHile I was at it, I've also moved the checks inside the spin callback,
and reformatted the spec comments to match our style.
2024-12-05 21:49:10 +01:00
Andreas Kling
8d8aa964da
LibWeb: Make window.clientInformation [Replaceable] per spec IDL
2024-12-05 21:35:59 +01:00
Timothy Flynn
6dfa6993e5
LibJS: Add workaround for invalid ISODateTimes in DifferenceISODateTime
...
The assertions can be hit when Temporal.Duration.prototype.round / total
are provided a PlainDate at the very limits of valid date-times. Tests
were recently added to test262 which trip these assertions, thus we are
now crashing in those tests. Let's throw a RangeError instead, as this
is the behavior expected by the tests.
2024-12-05 15:29:08 -05:00
Timothy Flynn
784e872851
LibJS: Remove errant assertion from ParseISODateTime
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/728beeb
2024-12-05 15:29:08 -05:00
Timothy Flynn
0e81092685
LibJS: Make CombineDateAndTimeDuration infallible
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/794960c
2024-12-05 15:29:08 -05:00
Timothy Flynn
e29c6d2a80
LibJS: Mark invocation to CombineDateAndTimeDuration as infallible
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/6860ad1
2024-12-05 15:29:08 -05:00
Timothy Flynn
46c3406008
LibJS: Swap arguments in invocation to AddTimeDurationToEpochNanoseconds
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/630b043
This also changes the second argument of this AO to not use the alias of
TimeDuration, as that should not be used to refer to epoch nanoseconds.
This was missed in commit 2d9405e5d7
.
2024-12-05 15:29:08 -05:00
Timothy Flynn
713e86cc1d
LibJS: Mark some AO invocations in the Nudge* AOs as infallible
...
These are editorial changes in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/7aef51e
https://github.com/tc39/proposal-temporal/commit/35cc12d
https://github.com/tc39/proposal-temporal/commit/2637ba5
https://github.com/tc39/proposal-temporal/commit/76dc52f
https://github.com/tc39/proposal-temporal/commit/034f756
2024-12-05 15:29:08 -05:00
Timothy Flynn
4cbb5661d0
LibJS: Make ToDateDurationRecordWithoutTime infallible
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/05017b9
2024-12-05 15:29:08 -05:00
Timothy Flynn
4f07cddb2d
LibJS: Mark TemporalDurationFromInternal as infallible in difference AOs
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/76c6612
2024-12-05 15:29:08 -05:00
Timothy Flynn
81b38c66a8
LibJS: Avoid negated test in DifferenceTemporalZonedDateTime
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/38233ae
2024-12-05 15:29:08 -05:00
Timothy Flynn
5c0c1e507c
LibJS: Reverse date comparison in DifferenceISODateTime
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/4a8cdb5
2024-12-05 15:29:08 -05:00
Timothy Flynn
16aebef4f4
LibJS: Make DifferenceISODateTime infallible
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/df74f7f
2024-12-05 15:29:08 -05:00
Timothy Flynn
25c361bb96
LibJS: Remove errant period from ZonedDateTime.prototype.toPlainDate
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/5e25315
2024-12-05 15:29:08 -05:00
Timothy Flynn
fe4995b69a
LibJS: Replace invalid reference to an [[Offset]] internal slot
...
This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/f1569ef
Here, we also update the struct member name to match the correct slot
name.
2024-12-05 15:29:08 -05:00
Luke Wilde
5392aabded
LibWeb/WebGL: Implement texSubImage2D with ArrayBufferView
2024-12-05 21:27:32 +01:00
Luke Wilde
7a6b6627e9
LibWeb/WebGL: Implement bufferSubData
2024-12-05 21:27:32 +01:00
Luke Wilde
bf2b8c5f2b
LibWeb/WebGL: Implement getShaderPrecisionFormat
2024-12-05 21:27:32 +01:00
Luke Wilde
a14cd5dab8
LibWeb/WebGL: Set prototypes of the WebGL objects
2024-12-05 21:27:32 +01:00
Luke Wilde
2e1702a14b
LibWeb/WebGL: Implement deleteFramebuffer
2024-12-05 21:27:32 +01:00
Luke Wilde
111c4495d9
LibWeb/WebGL: Implement deleteTexture
2024-12-05 21:27:32 +01:00