Sam Atkins
5aba457009
LibWeb/CSS: Add tokenize() method to style values, to get a list of CVs
...
A couple of arbitrary substitution functions require us to get or
produce some style value, and then substitute its ComponentValues into
the original ComponentValue list. So this commit gives CSSStyleValue a
tokenize() method that does so.
Apart from a couple of unusual cases like the guaranteed-invalid value,
style values can all be converted into ComponentValues by serializing
them as a string, and then parsing that as a list of component values.
That feels unnecessarily inefficient in most cases though, so I've
implemented faster overrides for a lot of the basic style value
classes, but left that serialize-and-reparse method as the fallback.
2025-07-16 14:47:45 +01:00
..
2025-07-16 13:05:33 +01:00
2025-07-16 14:47:45 +01:00
2025-07-16 13:05:33 +01:00
2025-05-17 07:53:24 +01:00
2025-04-20 18:43:11 +02:00
2024-11-15 14:49:20 +01:00
2025-03-17 10:00:19 +00:00
2025-05-23 10:17:58 +01:00
2025-07-16 13:05:33 +01:00
2025-05-17 07:53:24 +01:00
2025-05-29 12:04:28 +02:00
2025-03-24 09:49:50 +00:00
2024-12-22 10:12:49 +01:00
2025-05-14 02:01:59 -06:00
2024-12-28 05:39:32 -08:00
2025-07-16 13:05:33 +01:00
2025-07-09 18:07:12 +01:00
2025-07-09 18:07:12 +01:00
2025-06-19 12:35:31 +01:00
2025-06-19 12:35:31 +01:00
2025-02-06 16:47:25 +00:00
2025-04-20 18:43:11 +02:00
2024-11-15 14:49:20 +01:00
2025-04-20 18:43:11 +02:00
2025-06-19 12:35:31 +01:00
2025-05-15 09:53:29 +01:00
2025-06-19 12:35:31 +01:00
2025-05-08 16:21:32 +01:00
2025-04-04 10:40:32 +01:00
2025-05-17 07:53:24 +01:00
2025-05-08 16:21:32 +01:00
2025-06-24 12:51:12 +01:00
2024-11-15 14:49:20 +01:00
2025-05-03 12:01:43 +01:00
2025-04-09 18:45:57 +01:00
2025-04-09 18:45:57 +01:00
2025-04-20 18:43:11 +02:00
2025-03-19 13:53:00 +00:00
2025-03-19 13:53:00 +00:00
2025-04-20 18:43:11 +02:00
2024-11-15 14:49:20 +01:00
2025-04-20 18:43:11 +02:00
2024-11-15 14:49:20 +01:00
2025-04-20 18:43:11 +02:00
2024-11-15 14:49:20 +01:00
2025-04-25 16:43:43 +02:00
2025-05-16 11:01:39 +01:00
2025-05-16 11:01:39 +01:00
2025-05-16 11:01:39 +01:00
2025-04-20 18:43:11 +02:00
2025-07-11 10:57:19 +02:00
2025-07-11 10:57:19 +02:00
2025-04-20 18:43:11 +02:00
2024-11-15 14:49:20 +01:00
2025-04-25 08:48:29 +02:00
2025-04-25 08:48:29 +02:00
2025-04-25 08:48:29 +02:00
2025-02-27 00:44:14 +01:00
2025-01-13 10:59:16 +00:00
2025-06-19 12:35:31 +01:00
2025-05-15 09:53:29 +01:00
2025-05-15 09:53:29 +01:00
2025-05-16 16:42:10 +01:00
2025-05-16 16:42:10 +01:00
2025-05-15 09:53:29 +01:00
2025-05-17 07:53:24 +01:00
2025-04-16 10:41:44 -06:00
2025-06-23 15:21:36 +01:00
2025-05-16 11:01:39 +01:00
2025-06-24 12:51:12 +01:00
2025-06-24 12:51:12 +01:00
2025-04-20 18:43:11 +02:00
2025-06-19 12:35:31 +01:00
2025-03-19 13:53:00 +00:00
2025-07-16 11:16:49 +01:00
2025-06-19 12:35:31 +01:00
2025-03-19 13:53:00 +00:00
2025-06-24 12:51:12 +01:00
2025-04-15 09:54:35 +01:00
2025-03-19 13:53:00 +00:00
2025-06-24 12:51:12 +01:00
2025-06-24 12:51:12 +01:00
2025-07-16 14:47:45 +01:00
2025-07-16 14:47:45 +01:00
2025-04-20 18:43:11 +02:00
2025-07-11 10:57:19 +02:00
2025-07-11 10:57:19 +02:00
2025-05-30 15:48:16 +02:00
2025-05-30 15:48:16 +02:00
2025-07-15 10:05:48 +02:00
2025-04-04 10:40:32 +01:00
2025-04-04 10:40:32 +01:00
2025-05-15 09:53:29 +01:00
2024-11-15 14:46:09 +01:00
2025-01-28 11:24:40 +00:00
2025-03-19 13:53:00 +00:00
2025-07-15 10:05:48 +02:00
2025-05-06 17:37:34 +01:00
2025-05-03 23:22:40 +01:00
2025-07-09 18:07:12 +01:00
2025-05-17 07:53:24 +01:00
2025-05-17 07:53:24 +01:00
2025-06-05 12:10:29 +01:00
2025-06-05 12:10:29 +01:00
2025-07-01 11:50:05 +01:00
2025-07-04 18:10:28 +01:00
2025-07-16 13:05:33 +01:00
2025-05-17 07:53:24 +01:00
2025-07-08 17:26:16 +01:00
2025-07-08 17:26:16 +01:00
2025-06-25 20:45:48 +02:00
2025-06-25 20:45:48 +02:00
2025-07-16 13:05:33 +01:00
2025-07-04 15:28:08 +01:00
2025-01-29 09:30:18 +01:00
2025-07-14 09:32:05 +02:00
2025-07-15 10:05:48 +02:00
2025-07-16 13:05:33 +01:00
2025-05-17 07:53:24 +01:00
2025-04-16 10:41:44 -06:00
2025-07-08 11:45:15 -06:00
2025-01-30 19:31:54 +01:00
2025-05-23 10:17:58 +01:00
2025-04-20 18:43:11 +02:00
2025-03-04 19:07:40 +01:00
2025-05-23 10:17:58 +01:00
2025-05-23 10:17:58 +01:00
2025-04-20 18:43:11 +02:00
2025-02-13 20:52:31 +01:00
2025-04-20 18:43:11 +02:00
2025-05-14 02:01:59 -06:00
2025-05-18 17:23:34 +02:00
2025-05-14 02:01:59 -06:00
2025-05-16 16:42:10 +01:00
2025-05-16 16:42:10 +01:00
2025-07-16 13:05:33 +01:00
2025-06-05 12:10:29 +01:00
2025-05-17 07:53:24 +01:00
2025-07-15 14:26:02 +01:00
2025-06-25 17:09:29 +01:00
2025-04-17 19:45:55 +02:00
2025-07-15 21:27:44 +02:00
2025-07-15 13:54:17 +01:00
2025-03-26 09:47:45 +00:00
2025-05-17 07:53:24 +01:00
2025-05-17 07:53:24 +01:00
2025-04-20 18:43:11 +02:00
2024-11-15 14:49:20 +01:00
2024-11-26 18:44:26 +01:00
2025-04-20 18:43:11 +02:00
2024-11-15 14:49:20 +01:00
2025-07-15 21:27:44 +02:00
2025-07-15 13:54:17 +01:00
2025-07-15 21:27:44 +02:00
2025-04-17 19:45:55 +02:00
2025-05-17 07:53:24 +01:00
2025-05-23 10:17:58 +01:00
2025-05-23 10:17:58 +01:00
2025-04-16 10:41:44 -06:00
2025-04-16 10:41:44 -06:00
2025-07-16 13:05:33 +01:00
2025-07-09 16:44:20 +01:00
2025-06-03 03:51:42 +02:00
2025-04-04 13:06:53 -06:00
2025-05-24 10:31:34 +01:00
2025-01-25 10:16:21 +01:00
2025-05-20 10:14:21 +12:00
2025-04-09 18:45:57 +01:00
2025-04-09 18:45:57 +01:00
2025-03-13 16:56:28 -04:00
2025-05-14 02:01:59 -06:00
2025-05-03 12:01:43 +01:00
2025-04-15 09:40:38 +01:00
2025-03-19 16:42:51 +01:00
2025-03-17 10:00:19 +00:00
2025-01-08 11:18:13 +00:00
2025-05-14 02:01:59 -06:00
2025-07-16 13:05:33 +01:00
2025-05-17 07:53:24 +01:00
2025-07-16 13:05:33 +01:00
2025-06-15 15:59:02 +02:00
2025-04-20 18:43:11 +02:00
2025-05-14 02:01:59 -06:00
2024-12-25 17:14:08 +01:00
2025-06-11 16:26:23 +02:00
2025-06-11 16:26:23 +02:00
2025-04-20 18:43:11 +02:00
2024-11-15 14:49:20 +01:00