Bug 1716648 - Avoid stretching with large linear gradients in some cases. r=gfx-reviewers,lsalzman
Bug 1716648 - Avoid stretching with large linear gradients in some cases. r=gfx-reviewers,lsalzman

The tile size edtermines the number of pixels we allocate for the gradinrt pattern, and is eventually clamped to a maximum value. Minimizing the tile size after other transformations avoids some cases where we request more area than we need.

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

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/8582a1d2caa7b81c891bf3eb695a91a309c232bf

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