Andreas Kling
4bef0d0aea
LibWeb: Don't rebuild rule cache so eagerly to check for :has/:defined
...
Instead, change the APIs from "has :foo" to "may have :foo" and return
true if we don't have a valid rule cache at the moment.
This allows us to defer the rebuilding of the rule cache until a later
time, for the cost of a wider invalidation at the moment.
Do note that if our rule cache is invalid, the whole document has
invalid style anyway! So this is actually always less work. :^)
Knocks ~1 second of loading time off of https://wpt.fyi/
2025-01-24 17:54:34 +01:00
..
2025-01-21 11:34:06 -05:00
2025-01-09 14:08:23 +00:00
2025-01-21 11:34:06 -05:00
2025-01-21 11:34:06 -05:00
2025-01-21 11:34:06 -05:00
2025-01-24 17:54:34 +01:00
2025-01-24 17:54:34 +01:00
2025-01-21 11:34:06 -05:00
2025-01-22 12:33:55 +00:00
2025-01-21 19:08:37 +01:00
2025-01-21 21:36:05 +01:00
2025-01-22 12:33:55 +00:00
2025-01-22 12:33:55 +00:00
2025-01-24 13:55:52 +01:00
2025-01-14 23:46:09 +01:00
2025-01-22 12:33:55 +00:00
2025-01-21 11:34:06 -05:00
2025-01-23 09:33:10 +01:00
2025-01-12 00:35:58 +01:00
2025-01-12 00:35:58 +01:00
2025-01-21 11:34:06 -05:00
2025-01-12 00:35:58 +01:00
2025-01-22 12:25:48 +00:00
2025-01-23 09:33:10 +01:00
2025-01-12 00:35:58 +01:00
2025-01-21 11:34:06 -05:00
2025-01-10 23:33:35 +01:00
2025-01-22 12:33:55 +00:00
2025-01-21 19:22:07 +00:00
2025-01-21 11:34:06 -05:00
2025-01-23 21:38:31 +01:00
2025-01-12 00:35:58 +01:00
2025-01-21 11:34:06 -05:00
2025-01-21 11:34:06 -05:00
2025-01-21 21:36:05 +01:00
2025-01-23 21:39:02 +01:00
2025-01-22 12:33:55 +00:00
2025-01-22 12:33:55 +00:00
2025-01-12 00:35:58 +01:00
2025-01-21 11:34:06 -05:00
2025-01-24 13:55:52 +01:00
2025-01-23 09:33:10 +01:00
2025-01-21 21:36:05 +01:00
2025-01-21 21:36:05 +01:00
2025-01-12 00:35:58 +01:00
2025-01-12 00:35:58 +01:00
2025-01-23 09:33:10 +01:00