Files
serenity/Userland/Libraries/LibWeb/CSS/Time.cpp
Andreas Kling bee67f187c LibWeb: Make CSS::PercentageOr<T> non-virtual
This shrinks each instance of PercentageOr by 8 bytes and avoids virtual
dispatch when resolving calc() values. It's a win-win!

Many data structures shrink as a result. An example is ComputedValues
which goes from 3376 bytes to 3024 bytes per instance.

(cherry picked from commit c282138fd0b20604384b39bfc0a8c5f6ccab56bd)
2024-08-13 15:42:19 -04:00

1.6 KiB