mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 17:59:34 +00:00

We basically use a couple primitives to draw these (PaintRoundedRectWithRadius, FillRect), so making the code a bit generic implementing stuff with WebRender seems straight-forward. I've kept using the fallback codepath for the bits that draw complex paths like arrows and such, but the rest of the things should work with this patch. A thing I'm not too happy about is the scrollbar painting setup (requires a lot of boilerplate), but modulo template hacks make nsNativeBasicTheme a template that receives its super class as a parameter or something) it seems hard to do better. Differential Revision: https://phabricator.services.mozilla.com/D105931