Moustafa Raafat
b69ceae10c
LibJS: Improve alias names in ResolveISOMonth
...
This is an editorial change in the Temporal spec.
See: https://github.com/tc39/proposal-temporal/commit/01d5fbe
2022-10-19 22:39:33 +02:00
Moustafa Raafat
d758566996
LibJS: Simplify ResolveISOMonth
...
This is an editorial change in the Temporal spec.
See: https://github.com/tc39/proposal-temporal/commit/1b83226
2022-10-19 22:39:33 +02:00
Tobias Christiansen
92fd97ed63
WebDriver: Fix old current_window style
2022-10-19 22:34:10 +02:00
Tobias Christiansen
e87456e38f
WebDriver: Implement GET /session/{id}/element/{id}/property/{name}
2022-10-19 22:30:06 +02:00
Tobias Christiansen
3db92885cd
WebContent+Friends: Add get_element_property IPC and plumbing
2022-10-19 22:30:06 +02:00
Linus Groh
6641c99c80
WebDriver: Implement GET /session/{session id}/window/handles
endpoint
2022-10-19 22:23:47 +02:00
Jelle Raaijmakers
91cec51b99
LibGL: Correctly normalize different vertex attribute type pointers
...
According to the OpenGL 2.0 spec § 2.8, the data for each attribute type
pointer is normalized according to the type. The only exception to this
is `glVertexAttribPointer` which accepts a `normalized` parameter, but
we have not yet implemented that API.
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
00b21fba57
LibGL: Return GLboolean
value in glIsEnabled
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
fe5419da0f
LibGL: Implement state for all pixel store parameters
...
This implements the state and context parameters for all packing and
unpacking parameters accepted by `glPixelStore*`.
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
e2b151812e
LibGL: Don't repeat ourselves in read_from_vertex_attribute_pointer
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
5def168f14
LibGL: Implement missing glDeleteLists
error conditions
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
2d59c9b6b6
LibGL: Make read_from_vertex_attribute_pointer
static
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
01a4d58432
LibGL: Do not return early if client-side vertex array is disabled
...
According to the spec, enabling the client-side vertex array should
behave as if `glVertex` is executed after all other states such as the
normal, color, etc. have changed. We were not changing these states if
the client-side vertex array was disabled which probably does not affect
a lot of applications, but this seems like the correct thing to do. :^)
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
03258f4c96
LibGL: Add buffer API stubs
...
No implemented functionality, but this makes it easier to see if
software is using this family of functions.
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
1c32d93a12
LibSoftGPU: Call floor_int_range
only once in sample_2d_lod
...
We were invoking `frac_int_range` twice to get the `alpha` and `beta`
values to interpolate between 4 texels, but these call into
`floor_int_range` again. Let's not repeat the work.
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
88ca72aa79
LibSoftGPU: Extract argb32_color
value in rasterization
...
This makes it easier to correlate slow instructions in the disassembly
view of ProfileViewer.
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
681695a07a
LibSoftGPU: Make alpha testing a static function
...
There is no need to access the Device's members for alpha testing; pass
in the required alpha function and reference value.
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
bdb2be8f9e
LibGL: Remove context initialization from tests
...
We are either not using these defaults or they are already the
`GLContext`'s defaults to begin with.
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
4e63ce231f
LibSoftGPU: Clean up Sampler
imports
2022-10-19 22:22:58 +02:00
Jelle Raaijmakers
1774fde37c
LibSoftGPU: Drop texel Z coordinate from Sampler
...
We only support 2D indexing into textures at the moment, so don't
perform any work trying to support the Z coordinate.
2022-10-19 22:22:58 +02:00
cflip
75d46e0e96
Ports: Add a ClassiCube port
2022-10-19 22:07:05 +02:00
cflip
fea43a647f
Ports/libopenal: Build with SDL2 backend, and disable example programs
...
This patch fixes libopenal's build by disabling the alsoft-config
utility which required qt6, and disabling the example programs that were
causing compiler errors.
This also forces CMake to build with an SDL2 backend so audio can
actually be played.
2022-10-19 22:07:05 +02:00
cflip
f872d945c3
Ports/SDL2: Add null check to SerenitySDLWidget::paint_event
...
This was causing a crash when message boxes appeared before the window
painted anything.
2022-10-19 22:07:05 +02:00
cflip
abc0c44f0b
LibGL+LibGPU+LibSoftGPU: Report maximum texture size
2022-10-19 22:07:05 +02:00
Linus Groh
04ae4b89a3
WebDriver: Fix Session::close_window() declaration order
2022-10-19 21:11:37 +02:00
Linus Groh
7cb9b85c25
WebDriver: Rename Session::{get_window_object => current_window}()
...
- It's not a "window object" (in the JS sense), it's a simple struct
storing a handle and is_open property
- We usually omit 'get' for getters
- The new name makes it more clear that this is looked up using the
m_current_window_handle as a key
2022-10-19 21:11:37 +02:00
Linus Groh
7812b3c130
WebDriver: Remove unused Session::get_window_handles()
...
With all the implementations being in the Session class, there should
be no reason to expose this to the outside world anyway.
2022-10-19 21:11:37 +02:00
Linus Groh
6eecdb6853
WebDriver: Condense Client handler functions a bit
...
These comments really aren't necessary, it's clear from the code that
they forward to Session for the actual implementation.
2022-10-19 21:11:37 +02:00
Linus Groh
24ee5a2202
WebDriver: Move GET /session/{session id}/window
impl into Session
2022-10-19 21:11:37 +02:00
Linus Groh
0064d2e8c8
WebDriver: Implement POST /session/{session id}/timeouts
endpoint
2022-10-19 21:11:37 +02:00
Linus Groh
5c32eacac9
WebDriver: Implement GET /session/{session id}/timeouts
endpoint
2022-10-19 21:11:37 +02:00
Linus Groh
4db5f6d081
WebDriver: Use monotonic timer in Session::find()
2022-10-19 21:11:37 +02:00
Linus Groh
f0a8e3bc05
WebDriver: Replace hardcoded timeout with a TimeoutsConfiguration struct
2022-10-19 21:11:37 +02:00
Etienne Rodriguez
e5a9f030f2
LibGUI: Insert first displayed emoji on return
...
This enables users to insert emojis without using the mouse by searching
for it in the EmojiInputDialog and then hitting return.
2022-10-19 14:05:42 -04:00
Andreas Kling
178f0b9971
LibJS: Support non-base-10 BigInt literals in bytecode VM
...
Fixes 39 tests in test262 and a handful in test-js. :^)
2022-10-19 19:58:15 +02:00
Andreas Kling
29935fe943
LibJS: Support for (x in obj)
iteration in bytecode VM
...
We were mistakenly treating these as `for (x of obj)`. By reorganizing
the code a little bit, we actually support both kinds of iteration with
less duplication. :^)
Fixes 17 tests in test262.
2022-10-19 19:03:57 +02:00
Tobias Christiansen
249350a7a3
WebDriver: Implement GET /session/{id}/element/{id}/attribute/{name}
2022-10-19 17:30:58 +02:00
Tobias Christiansen
3f5a620b5d
WebContent+Friends: Add get_element_attribute IPC and plumbing
2022-10-19 17:30:58 +02:00
Aliaksandr Kalenik
dfc3a4772b
LibWeb: Ignore "pointer-events: none" elements in hit_test
2022-10-19 16:11:15 +02:00
Andreas Kling
f39b6ae3c6
LibJS: Avoid expensive UTF-8/16 conversion in legacy RegExp properties
...
Let's not incur the cost of a synchronous conversion to UTF-8 for all
the legacy static properties after running a regular expression.
The SunSpider subtest regexp-dna goes from taking ~25 sec to ~0.7 sec
on my machine.
2022-10-19 16:10:42 +02:00
Tobias Christiansen
e1fb64abad
WebDriver: Implement POST /session/{id}/element/{id}/elements
2022-10-19 15:32:31 +02:00
Tobias Christiansen
d26bbcab42
WebDriver: Implement POST /session/{id}/element/{id}/element
2022-10-19 15:32:31 +02:00
Tobias Christiansen
063bd663a7
WebDriver: Implement POST /session/{id}/elements
endpoint
2022-10-19 15:32:31 +02:00
Tobias Christiansen
e6f71d5e05
WebDriver: Fix broken Optional<> returns through IPC
2022-10-19 15:32:31 +02:00
Tobias Christiansen
0e5cfccc71
WebContent: Fix broken Optional<> returns through IPC
...
Apparently one can not use the brace-initializer to return an empty
Optional through IPC, it has to be explicitly constructed.
2022-10-19 15:32:31 +02:00
Andreas Kling
d9b543da68
LibJS: Disable bytecode optimizations by default
...
The optimization passes are not stable, which makes test262 flaky.
Address this by introducing a new OptimizationLevel::None and making it
the default.
This removes all the flakiness from test262 in my testing.
We can enable optimizations by default again once they have been made
stable. :^)
2022-10-19 14:37:57 +02:00
Linus Groh
8fc4c5d27b
WebDriver: Avoid some JsonValue copies in Session::find_element()
2022-10-18 23:22:38 +02:00
Linus Groh
f3d66b1108
WebDriver: Include (empty) capabilities object in /session POST response
...
Still not spec compliant, but at least we now return both assumed values
of the JSON object ("sessionId", "capabilities").
2022-10-18 23:22:38 +02:00
Linus Groh
dd4e5d5028
WebDriver: Make functions always match their spec command name
...
This is easier to grasp than sometimes naming it after the HTTP method,
and sometimes not.
2022-10-18 23:22:38 +02:00
Linus Groh
47f25d4008
WebDriver: Add GET /session/{id}/window
endpoint
2022-10-18 23:22:38 +02:00