Andreas Kling
4bfdc4db17
LibWeb: Make CSS rule cache smarter about pseudo elements
...
Instead of putting every rule that matches a pseudo element in the
same bucket, let them go in the best ID/class/tag name bucket instead.
Then, add a flag to MatchingRule that says whether it contains a
pseudo element in the rightmost compound selector.
When deciding which selectors to run for an element, we can now simply
filter in/out pseudo element selectors as appropriate depending on what
we're trying to match.
This fixes an issue where pages using Font Awesome had 1700+ rules in the
pseudo-element rule cache. (This meant all those rules had to run
against every element twice or more while instantiating pseudo elements.)
2023-03-09 21:54:59 +01:00
..
2023-03-07 11:51:12 +00:00
2023-03-07 00:43:36 +01:00
2023-02-08 19:15:45 +00:00
2023-02-21 00:54:04 +01:00
2023-01-29 00:02:45 +00:00
2023-01-29 00:02:45 +00:00
2023-02-18 00:52:47 +01:00
2023-02-18 00:52:47 +01:00
2023-01-29 00:02:45 +00:00
2023-01-29 00:02:45 +00:00
2023-02-18 00:52:47 +01:00
2023-02-18 00:52:47 +01:00
2023-02-18 00:52:47 +01:00
2023-02-18 00:52:47 +01:00
2023-02-28 12:36:14 +01:00
2023-03-06 23:46:35 +01:00
2023-03-07 11:51:12 +00:00
2023-02-21 00:54:04 +01:00
2023-03-05 21:59:16 +00:00
2023-03-07 11:51:12 +00:00
2023-03-06 23:46:35 +01:00
2023-03-07 11:51:12 +00:00
2023-03-06 23:46:35 +01:00
2023-03-07 11:51:12 +00:00
2023-03-06 23:46:35 +01:00
2023-02-12 00:15:52 +00:00
2023-02-15 12:48:26 -05:00
2023-02-15 12:48:26 -05:00
2023-02-19 00:51:16 +01:00
2023-02-19 00:51:16 +01:00
2023-02-19 00:51:16 +01:00
2023-02-25 20:51:49 +01:00
2023-02-03 12:49:13 +00:00
2023-03-04 00:29:38 +01:00
2023-02-15 12:48:26 -05:00
2023-03-07 11:51:12 +00:00
2023-03-06 23:46:35 +01:00
2023-03-06 23:46:35 +01:00
2023-03-06 23:46:35 +01:00
2023-03-06 23:46:35 +01:00
2023-03-06 23:46:35 +01:00
2023-03-05 18:25:59 +00:00
2023-03-05 18:25:59 +00:00
2023-03-05 18:25:59 +00:00
2023-02-15 12:48:26 -05:00
2023-02-15 12:48:26 -05:00
2023-02-03 12:49:13 +00:00
2023-02-28 12:21:56 +01: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-03-06 23:46:35 +01:00
2023-03-06 23:46:35 +01:00
2023-03-08 13:19:15 +01:00
2023-02-15 12:48:26 -05:00
2023-02-15 12:48:26 -05:00
2023-02-25 20:51:49 +01:00
2023-03-09 21:54:59 +01:00
2023-03-09 21:54:59 +01:00
2023-03-06 23:46:35 +01:00
2023-02-21 00:54:04 +01:00
2023-02-28 12:36:14 +01:00
2023-02-28 12:36:14 +01:00
2023-03-06 23:46:35 +01:00
2023-03-06 23:46:35 +01:00
2023-03-07 11:51:12 +00:00
2023-03-07 11:51:12 +00:00
2023-02-15 12:48:26 -05:00