snapping + resolution leads to weird results with webrender
Categories
(Core :: Graphics: WebRender, defect)
Tracking
()
People
(Reporter: tnikkel, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review |
In writing a test for bug 1662062 I came across some weird behaviour.
The attached patch has a reftest that uses reftest-resolution to add a resolution to the test, and then the reference just draws the test bigger "manually". This matches without wr. With wr the test circle is drawn bigger than the reference.
If I change this line to ScaleToNearestPixels instead of OutsidePixels
then the circle draws at the right size but it is slightly offset. If I change that line to InsidePixels (and create the necessary InsidePixels function) then the circle draws too small.
Another wierdness is that the issue doesn't happen on the built in retina screen on my macbook pro. It does happen if I manually drag the reftest window to my external non-retina display.
If I change the test from a svg circle to an svg polygon then it magically works (which is the test I landed).
Not surprisingly, this doesn't affect regular html content (we have a test for that: layout/reftests/reftest-sanity/reftest-resolution.html).
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 1•4 years ago
|
||
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 3•4 years ago
|
||
Bug 1678867 is another case of a weird svg circle rendering with webrender, in that case no resolution is required to see the problem.
Reporter | ||
Updated•3 years ago
|
Description
•