ladybird/Tests
Psychpsyo 7f989765f5 LibWeb: Fix MouseEvent position values
The clientX and clientY values are, as per the spec, the offset from
the viewport.
This makes them actually be that and also fixes up the calculations
for offsetX, offsetY, pageX and pageY.
I assume all of these got messed up in some sort of refactor in the
past.

The spec comment from the now-removed
compute_mouse_event_client_offset() function sadly has no convenient
place to be anymore so, for now, it is just gone as well.
Personally, I think it'd make sense to refactor a lot of this file so
that not every mouse event repeats a large chunk of (almost) identical
code. That way there'd be a nice place to put the comment without
repeating it all over the file.
But that is out of the scope of this PR.

Also: I know, offsetX and Y are not fully fixed yet, they still
don't ignore the element's CSS transforms but I am working on that
in a new PR.
2024-11-21 13:22:22 +01:00
..
AK AK: Add Utf8View::for_each_split_view() method 2024-11-15 23:18:29 +01:00
ClangPlugins LibGC: Add a ForeignCell class for ownership of non-C++ objects 2024-11-19 14:32:11 -07:00
LibCompress LibCompress: Don't assume zlib header is available right away 2024-11-18 19:55:46 -05:00
LibCore
LibCrypto
LibDiff
LibGC LibGC: Add Swift bindings to the GC heap 2024-11-19 14:32:11 -07:00
LibGfx LibGfx: Round values in Color::with_opacity() 2024-11-21 11:59:44 +00:00
LibJS LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
LibMedia
LibRegex LibRegex: Avoid generating ForkJumps when jumping to the next alt block 2024-11-17 20:12:39 +01:00
LibTest
LibTextCodec
LibThreading
LibTLS
LibUnicode
LibURL
LibWasm
LibWeb LibWeb: Fix MouseEvent position values 2024-11-21 13:22:22 +01:00
LibWebView
LibXML
Resources Tests: Use ABI entry point for swift-testing tests 2024-11-19 14:32:11 -07:00
CMakeLists.txt