mirror of
https://github.com/servo/servo.git
synced 2025-07-31 19:20:22 +01:00
Snap rectangles to nearest pixels consistently. Snapping the top-left and bottom-right corners separately can cause a rectangle to change size or even become empty when offset by a subpixel amount. Instead, this patch snaps the top-left corner, then snaps the size to a whole pixel amount, so any rectangle of a given original size will always have the same snapped size. Fixes #7152. r? @pcwalton or @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7161) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
dromaeo | ||
html | ||
jquery | ||
power | ||
ref | ||
unit | ||
wpt | ||
reftest.rs |