mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
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:
parent
f2ca536e11
commit
24d2a26212
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user