Cairo node scales wrong with low scale values when snapshot is converted to a child node
Steps to reproduce
- add a cairo node drawing a line and a color node with same coordinates to a snapshot
- convert the snapshot to a node
- scale the parent snapshot down a lot and add the child node to it
Example (In Rust, sorry): https://gitlab.com/Voker57/gtktest/-/tree/313c0da35c613f1b5b354475803c3ae279484f20
Current behavior
It can be seen if both GSK color node and Cairo node are added with the same coordinates: the cairo line and color node scale differently, cairo line does not start in the proper position and is moved out of the rect a bit:
It gets worse as scale becomes smaller.
Expected outcome
the cairo line and color node scale the same, the way it works if snapshot is scaled before converting to node
Version information
gtk 4.7.2 (debian experimental)
Additional information
Edited by Voker57