aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmodelement.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-08-11 11:31:32 -0600
committerbors-servo <metajack+bors@gmail.com>2015-08-11 11:31:32 -0600
commit9c528c6382ee4355f42824a7caad217c4eb8a3b0 (patch)
tree05ac8ae6c56433ac04709ca09da1c489be0f2e8c /components/script/dom/htmlmodelement.rs
parent84c4a26e4d05015da4cbbf1f120b317a23bec0b4 (diff)
parent3b6dc09e474a02d3724e8aa8a0c52653c59862f8 (diff)
downloadservo-9c528c6382ee4355f42824a7caad217c4eb8a3b0.tar.gz
servo-9c528c6382ee4355f42824a7caad217c4eb8a3b0.zip
Auto merge of #7161 - mbrubeck:underline, r=pcwalton
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 -->
Diffstat (limited to 'components/script/dom/htmlmodelement.rs')
0 files changed, 0 insertions, 0 deletions