ladybird/Userland/Libraries/LibWeb/UIEvents
Aliaksandr Kalenik 147c3b3d97 LibWeb+WebContent: Forbid access to underlying type of CSSPixels
Although DistinctNumeric, which is supposed to abstract the underlying
type, was used to represent CSSPixels, we have a whole bunch of places
in the layout code that assume CSSPixels::value() returns a
floating-point type. This assumption makes it difficult to replace the
underlying type in CSSPixels with a non-floating type.

To make it easier to transition CSSPixels to fixed-point math, one step
we can take is to prevent access to the underlying type using value()
and instead use explicit conversions with the to_float(), to_double(),
and to_int() methods.
2023-06-13 06:08:27 +02:00
..
EventModifier.h LibWeb: Add the missing KeyboardEvent IDL constructor 2021-10-01 20:14:45 +02:00
EventModifier.idl LibWeb: Add the missing KeyboardEvent IDL constructor 2021-10-01 20:14:45 +02:00
EventNames.cpp LibWeb: Port {HTML,UIEvents,XHR}::EventNames to new String 2023-04-06 23:49:08 +02:00
EventNames.h LibWeb: Fire the contextmenu event on right click (if not holding shift) 2023-05-22 06:07:05 +02:00
FocusEvent.cpp LibWeb: Port {Mouse,UI,Wheel,}Event to new String 2023-04-07 22:41:01 +02:00
FocusEvent.h LibWeb: Port FocusEvent to new String 2023-04-06 08:41:43 +02:00
FocusEvent.idl LibWeb: Port FocusEvent to new String 2023-04-06 08:41:43 +02:00
KeyboardEvent.cpp LibWeb: Preserve case for key events 2023-05-23 06:02:00 +02:00
KeyboardEvent.h LibWeb: Port KeyboardEvent to new String 2023-04-06 08:41:43 +02:00
KeyboardEvent.idl LibWeb: Port KeyboardEvent to new String 2023-04-06 08:41:43 +02:00
MouseEvent.cpp LibWeb+WebContent: Forbid access to underlying type of CSSPixels 2023-06-13 06:08:27 +02:00
MouseEvent.h LibWeb: Port {Mouse,UI,Wheel,}Event to new String 2023-04-07 22:41:01 +02:00
MouseEvent.idl LibWeb: Port {Mouse,UI,Wheel,}Event to new String 2023-04-07 22:41:01 +02:00
UIEvent.cpp LibWeb: Port {Mouse,UI,Wheel,}Event to new String 2023-04-07 22:41:01 +02:00
UIEvent.h LibWeb: Port {Mouse,UI,Wheel,}Event to new String 2023-04-07 22:41:01 +02:00
UIEvent.idl LibWeb: Port {Mouse,UI,Wheel,}Event to new String 2023-04-07 22:41:01 +02:00
WheelEvent.cpp LibWeb+WebContent: Forbid access to underlying type of CSSPixels 2023-06-13 06:08:27 +02:00
WheelEvent.h LibWeb: Port {Mouse,UI,Wheel,}Event to new String 2023-04-07 22:41:01 +02:00
WheelEvent.idl LibWeb: Port {Mouse,UI,Wheel,}Event to new String 2023-04-07 22:41:01 +02:00