mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
The set_viewport_size and set_device_pixel_ratio IPC messages were sent separately, potentially causing a race condition when the DPR changes (e.g. moving a window between screens): the DPR message would arrive and use a stale viewport size, computing a temporarily wrong CSS viewport. Combine both into a single set_viewport IPC that updates the device viewport size and DPR together.