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
..
2023-06-13 06:08:27 +02:00
2023-03-27 23:28:07 +02:00
2023-04-20 20:43:30 +02:00
2023-04-20 20:43:30 +02:00
2023-06-13 06:08:27 +02:00
2023-06-10 07:09:11 +02:00
2023-06-09 20:37:51 +02:00
2023-06-09 20:37:51 +02:00
2021-04-22 11:22:27 +02:00
2022-10-06 15:29:38 +02:00
2022-10-20 15:16:23 +02:00
2023-06-09 20:37:51 +02:00
2023-06-09 20:37:51 +02:00
2023-06-09 20:37:51 +02:00
2023-06-13 06:08:27 +02:00
2023-05-24 14:40:35 +02:00
2022-10-20 15:16:23 +02:00
2023-06-13 06:08:27 +02:00
2023-06-09 20:37:51 +02:00
2023-06-09 20:37:51 +02:00
2023-05-15 14:08:08 +02:00
2023-06-13 06:08:27 +02:00
2023-06-13 06:05:26 +02:00
2023-06-09 20:37:51 +02:00
2023-05-13 09:08:42 +02:00
2023-05-21 07:44:29 +02:00
2023-06-13 06:08:27 +02:00
2023-05-06 18:41:34 +02:00
2023-03-15 08:48:49 +01:00
2023-01-11 12:55:00 +01:00
2023-04-20 20:43:30 +02:00
2022-03-11 00:21:49 +01:00
2023-06-13 06:08:27 +02:00
2023-06-12 17:51:00 +02:00
2023-06-13 06:08:27 +02:00
2023-06-10 21:46:33 +02:00
2023-04-20 20:43:30 +02:00
2023-03-15 08:48:49 +01:00
2023-06-13 06:08:27 +02:00
2023-06-10 21:46:33 +02:00
2022-10-20 15:16:23 +02:00
2023-06-03 05:54:49 +02:00
2023-06-03 05:54:49 +02:00
2023-06-13 06:08:27 +02:00
2023-05-29 14:12:29 +02:00
2023-06-09 20:37:51 +02:00
2023-06-09 20:37:51 +02:00
2022-10-06 15:29:38 +02:00
2023-06-09 20:37:51 +02:00
2022-03-19 12:42:10 +01:00
2023-06-13 06:08:27 +02:00
2023-06-13 06:08:27 +02:00
2023-04-12 07:40:22 +02:00
2023-04-19 07:52:26 +02:00
2023-04-19 07:52:26 +02:00
2023-06-13 06:08:27 +02:00
2023-05-20 08:49:42 +02:00
2023-06-09 17:20:34 +02:00
2023-06-09 17:20:34 +02:00
2023-06-13 06:08:27 +02:00
2023-06-12 17:51:00 +02:00
2023-01-14 19:22:08 +01:00
2023-01-11 12:55:00 +01:00
2023-06-10 11:17:21 +02:00
2023-06-09 20:37:51 +02:00
2023-04-07 16:02:22 +02:00
2023-06-02 15:00:38 +02:00
2023-02-28 12:21:56 +01:00