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 LibUnicode: Cache the system time zone 2024-08-25 09:47:42 +02:00
LibCrypto LibWeb: Implement RSAOAEP.decrypt() 2024-10-27 11:26:12 +01:00
LibDiff LibDiff: Fix wrong index used when prepending context lines 2023-09-11 12:10:50 +01:00
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 LibMedia+Ladybird: Use pkg_check_modules to find pulseaudio 2024-10-02 20:23:03 -04:00
LibRegex LibRegex: Avoid generating ForkJumps when jumping to the next alt block 2024-11-17 20:12:39 +01:00
LibTest Everywhere: Remove LibSQL, SQLServer, and the sql REPL :^) 2024-06-06 11:27:03 -04:00
LibTextCodec LibTextCodec: Add SingleByteEncoders 2024-10-10 10:39:28 +02:00
LibThreading LibThreading: Remove the thread pool 2024-09-22 14:07:16 -04:00
LibTLS Revert "LibTLS+Everywhere: Switch to using WolfSSL" 2024-07-06 15:15:34 -06:00
LibUnicode Tests: Remove duplicated test for UnicodeCharacterTypes 2024-11-06 09:22:44 +00:00
LibURL LibURL: Use UTF-8 for percent encoding URL fragments 2024-10-23 11:30:59 -06:00
LibWasm LibJS+LibWeb: Use realm.create<T> instead of heap.allocate<T> 2024-11-13 16:51:44 -05:00
LibWeb LibWeb: Fix MouseEvent position values 2024-11-21 13:22:22 +01:00
LibWebView LibWebView: Allow data URLs in sanitize_url 2024-06-24 06:31:17 -04:00
LibXML LibXML: Read code points when parsing names 2024-11-06 10:07:52 +01:00
Resources Tests: Use ABI entry point for swift-testing tests 2024-11-19 14:32:11 -07:00
CMakeLists.txt LibMedia: Absorb LibAudio 2024-09-12 10:01:19 +02:00