Use int instead of uint for vector dimension cap.

This commit is contained in:
wolfbeast
2018-02-04 12:35:44 +01:00
committed by Roy Tam
parent ea3f12320f
commit 0b2d3c5cfa
+1 -1
View File
@@ -935,7 +935,7 @@ VectorImage::CreateSurfaceAndShow(const SVGDrawingParameters& aParams, BackendTy
// x or y > maxDimension, because for vector images this can cause bad perf
// issues if large sizes are scaled repeatedly (a rather common scenario)
// that can quickly exhaust the cache.
uint32_t maxDimension = 3000;
int32_t maxDimension = 3000;
bool bypassCache = bool(aParams.flags & FLAG_BYPASS_SURFACE_CACHE) ||
// Refuse to cache animated images: