Bug 1705836 - Check for negative sample bounds r=tsmith,kvark
Bug 1705836 - Check for negative sample bounds r=tsmith,kvark

Differential Revision: https://phabricator.services.mozilla.com/D112444

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/3c2dc2a4800277b5af54b1bca558fd486a01c828

servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender