Sam Atkins
28ceeec435
LibWeb: Split Length::relative_length_to_px() by type
...
Length units are either relative to the font, or to the viewport, but
never both. So we can save some work by not gathering font metrics for
a viewport unit, and not retrieving the viewport for a font unit.
Currently this is only helpful when the `to_px(Layout::Node)` method is
called, but since that is 208 places according to CLion, (plus 33
indirect uses via `Length::resolved()`) it still seems worthwhile. :^)
2023-04-29 16:23:50 +02:00
..
2023-04-28 09:42:28 +02:00
2023-04-29 16:23:50 +02:00
2023-03-15 14:55:49 +01:00
2023-03-30 21:29:50 +02:00
2023-04-13 09:53:47 +02:00
2023-03-25 16:56:04 +00:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-04-28 09:42:28 +02:00
2023-03-15 12:48:25 -04:00
2023-03-15 12:48:25 -04:00
2023-03-15 12:48:25 -04:00
2023-02-18 00:52:47 +01:00
2023-02-18 00:52:47 +01:00
2023-03-15 08:48:49 +01:00
2023-03-15 08:48:49 +01:00
2023-02-18 00:52:47 +01:00
2023-03-30 16:54:15 +02:00
2023-03-15 08:48:49 +01:00
2023-03-15 08:48:49 +01:00
2023-03-30 16:54:15 +02:00
2023-03-15 08:48:49 +01:00
2023-03-29 07:10:53 +02:00
2023-02-21 00:54:04 +01:00
2023-03-05 21:59:16 +00:00
2023-03-15 08:48:49 +01:00
2023-03-15 08:48:49 +01:00
2023-03-15 08:48:49 +01:00
2023-03-15 08:48:49 +01:00
2023-03-07 11:51:12 +00:00
2023-03-06 23:46:35 +01:00
2023-03-23 08:27:51 +00:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-03-20 20:37:40 -04:00
2023-02-19 00:51:16 +01:00
2023-02-19 00:51:16 +01:00
2023-03-30 21:29:50 +02:00
2023-04-13 09:53:47 +02:00
2023-02-19 00:51:16 +01:00
2023-03-30 21:29:50 +02:00
2023-04-29 16:23:50 +02:00
2023-04-29 16:23:50 +02:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-03-07 11:51:12 +00:00
2023-03-06 23:46:35 +01:00
2023-04-29 16:23:50 +02:00
2023-03-30 21:29:50 +02:00
2023-04-09 17:27:27 +02:00
2023-03-06 23:46:35 +01:00
2023-04-07 22:41:01 +02:00
2023-03-05 18:25:59 +00:00
2023-03-05 18:25:59 +00:00
2023-04-13 09:53:47 +02:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-03-10 13:15:44 +01:00
2023-04-28 09:42:28 +02:00
2023-03-30 21:29:50 +02:00
2023-04-29 16:23:50 +02:00
2023-02-21 00:54:04 +01:00
2023-02-18 00:52:47 +01:00
2023-02-18 00:52:47 +01:00
2023-04-06 11:36:56 +02:00
2023-04-06 11:36:56 +02:00
2023-04-06 11:36:56 +02:00
2023-03-21 10:45:19 +01:00
2023-03-30 21:29:50 +02:00
2023-03-30 21:29:50 +02:00
2023-04-29 16:23:50 +02:00
2023-04-29 16:23:50 +02:00
2023-04-29 16:23:50 +02:00
2023-04-29 16:23:50 +02:00
2023-03-15 08:48:49 +01:00
2023-03-30 14:12:07 +02:00
2023-03-15 08:48:49 +01:00
2023-04-29 16:23:50 +02:00
2023-04-29 16:23:50 +02:00
2023-03-07 11:51:12 +00:00
2023-03-07 11:51:12 +00:00
2023-03-30 21:29:50 +02:00
2023-04-13 09:53:47 +02:00