From 7260fcfeba2e9a5bfa80cd90a32cbe71eb94b1bd Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Mon, 20 Jul 2020 08:36:56 +0000 Subject: [PATCH] Bug 1653905. Propagate the fix from bug 1645762 to nsDisplayMasksAndClipPaths::PaintMask. r=heycam Differential Revision: https://phabricator.services.mozilla.com/D84126 --- layout/painting/nsDisplayList.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/painting/nsDisplayList.cpp b/layout/painting/nsDisplayList.cpp index 9da6eaa185db..33bff0009865 100644 --- a/layout/painting/nsDisplayList.cpp +++ b/layout/painting/nsDisplayList.cpp @@ -9238,7 +9238,8 @@ bool nsDisplayMasksAndClipPaths::PaintMask(nsDisplayListBuilder* aBuilder, return maskIsComplete && (imgParams.result == ImgDrawResult::SUCCESS || - imgParams.result == ImgDrawResult::SUCCESS_NOT_COMPLETE); + imgParams.result == ImgDrawResult::SUCCESS_NOT_COMPLETE || + imgParams.result == ImgDrawResult::WRONG_SIZE); } LayerState nsDisplayMasksAndClipPaths::GetLayerState(