gecko-dev/servo
Emilio Cobos Álvarez c14065f628 Bug 1776162 - Improve LookAndFeel color caching. r=mstange
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
2022-06-23 22:38:02 +00:00
..
components Bug 1776162 - Improve LookAndFeel color caching. r=mstange 2022-06-23 22:38:02 +00:00
ports/geckolib Bug 1773493 - Use Rust's `ComputedTimingFunction` for IPDL. r=emilio 2022-06-23 17:07:13 +00:00
tests/unit Bug 1768905 - Move size of tests to compile-time tests in the style crate. r=dshin 2022-05-11 19:02:58 +00:00
moz.build
rustfmt.toml