mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1187401 (Part 3) - For consistency, call DoError if SetMetadata sees a negative size. r=tn
This commit is contained in:
parent
39bdedbc03
commit
aa26047103
@ -955,6 +955,8 @@ RasterImage::SetMetadata(const ImageMetadata& aMetadata,
|
||||
if (aMetadata.HasSize()) {
|
||||
IntSize size = aMetadata.GetSize();
|
||||
if (size.width < 0 || size.height < 0) {
|
||||
NS_WARNING("Image has negative intrinsic size");
|
||||
DoError();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user