Bug 1645762 - Don't treat image masks as invalid if painted at an unideal size. r=tnikkel

Differential Revision: https://phabricator.services.mozilla.com/D84110
This commit is contained in:
Cameron McCormack 2020-07-20 00:06:10 +00:00
parent f2ca536e11
commit 24d2a26212

View File

@ -578,7 +578,8 @@ static MaskPaintResult CreateAndPaintMaskSurface(
if (!isMaskComplete ||
(aParams.imgParams.result != ImgDrawResult::SUCCESS &&
aParams.imgParams.result != ImgDrawResult::SUCCESS_NOT_COMPLETE)) {
aParams.imgParams.result != ImgDrawResult::SUCCESS_NOT_COMPLETE &&
aParams.imgParams.result != ImgDrawResult::WRONG_SIZE)) {
// Now we know the status of mask resource since we used it while painting.
// According to the return value of PaintMaskSurface, we know whether mask
// resource is resolvable or not.