Commit e2a9a7f
LibWeb: Bucket CSS rules by pseudo-element
Instead of throwing all pseudo-element rules in one bucket, let's have
one bucket per pseudo-element.
This means we only run ::before rules for ::before pseudo-elements,
only ::after rules for ::after, etc.
Average style update time on https://tailwindcss.com/ 250ms -> 215ms.
(cherry picked from commit 87056ee)1 parent aeca8c4 commit e2a9a7f
File tree
2 files changed
+9
-3
lines changed- Userland/Libraries/LibWeb/CSS
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| |||
2644 | 2644 | | |
2645 | 2645 | | |
2646 | 2646 | | |
| 2647 | + | |
2647 | 2648 | | |
2648 | 2649 | | |
2649 | 2650 | | |
2650 | 2651 | | |
2651 | 2652 | | |
| 2653 | + | |
2652 | 2654 | | |
2653 | 2655 | | |
2654 | 2656 | | |
| |||
2735 | 2737 | | |
2736 | 2738 | | |
2737 | 2739 | | |
2738 | | - | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
2739 | 2745 | | |
2740 | 2746 | | |
2741 | 2747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
0 commit comments