mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 16:42:19 +02:00
Make CSSPixels::to_float(), to_double(), and to_int() constexpr inline instead of out-of-line in the .cpp file. These are trivial one-liners called in very hot painting paths. Also optimize DevicePixelConverter::rounded_device_rect() to work directly with CSSPixels values instead of constructing an intermediate Rect<double> and scaling it.
1.8 KiB
1.8 KiB