mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Building with "--enable-debug" - fix some warnings
https://github.com/MoonchildProductions/moebius/pull/146 https://github.com/MoonchildProductions/Pale-Moon/pull/1400
This commit is contained in:
parent
b56d147095
commit
9ab20590c6
5 changed files with 10 additions and 10 deletions
|
|
@ -6653,8 +6653,9 @@ nsLayoutUtils::DrawSingleImage(gfxContext& aContext,
|
|||
nscoord appUnitsPerCSSPixel = nsDeviceContext::AppUnitsPerCSSPixel();
|
||||
CSSIntSize pixelImageSize(ComputeSizeForDrawingWithFallback(aImage, aDest.Size()));
|
||||
if (pixelImageSize.width < 1 || pixelImageSize.height < 1) {
|
||||
NS_WARNING("Image width or height is non-positive");
|
||||
return DrawResult::TEMPORARY_ERROR;
|
||||
NS_ASSERTION(pixelImageSize.width >= 0 && pixelImageSize.height >= 0,
|
||||
"Image width or height is negative");
|
||||
return DrawResult::SUCCESS; // no point in drawing a zero size image
|
||||
}
|
||||
|
||||
nsSize imageSize(CSSPixel::ToAppUnits(pixelImageSize));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue