servo/components/style/values
Emilio Cobos Álvarez bb5de5833c style: Improve LookAndFeel color caching
To be honest, I'm a bit baffled that bug 1773795 caused a performance
regression, but I think it's because the standins codepath is not really
cached, so system colors that are "spoofed" always go through the
massive switch, which could potentially be expensive.

To fix, this, rejigger a bit the caches so that we key on both
color-scheme and use-standins. Also, while at it, make the set of colors
we spoof a single bitflag check, rather than relying on the compiler to
do something potentially smart with it.

I had to shuffle the order of colors around so that the expression to
initialize the bitfield is constexpr (doesn't go over 1 << 64), but
other than that this patch should be relatively straight-forward.

Differential Revision: https://phabricator.services.mozilla.com/D150100
2023-10-02 14:37:19 +00:00
..
animated style: Use style interpolation code for gradients 2023-10-02 14:37:19 +00:00
computed style: Use style interpolation code for gradients 2023-10-02 14:37:19 +00:00
generics Further changes required by Servo 2023-10-02 14:37:19 +00:00
resolved style: Move fixed-point font types to Rust 2023-10-02 14:37:19 +00:00
specified style: Improve LookAndFeel color caching 2023-10-02 14:37:19 +00:00
distance.rs style: Move fixed-point font types to Rust 2023-10-02 14:37:19 +00:00
mod.rs style: Support scroll-timeline-name longhand in style system 2023-10-02 14:37:19 +00:00