Bug 1756587. Fix a couple of aInnerWindowId parameters to be uint64_t in ImageFactory.cpp. r=aosmond

Depends on D139370

Differential Revision: https://phabricator.services.mozilla.com/D139371
This commit is contained in:
Timothy Nikkel 2022-02-26 07:22:44 +00:00
Родитель 0549dd7bec
Коммит 45f27f573e
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -103,7 +103,7 @@ static void NotifyImageLoading(nsIURI* aURI) {
already_AddRefed<Image> ImageFactory::CreateImage(
nsIRequest* aRequest, ProgressTracker* aProgressTracker,
const nsCString& aMimeType, nsIURI* aURI, bool aIsMultiPart,
uint32_t aInnerWindowId) {
uint64_t aInnerWindowId) {
// Compute the image's initialization flags.
uint32_t imageFlags = ComputeImageFlags(aURI, aMimeType, aIsMultiPart);
@ -225,7 +225,7 @@ uint32_t GetContentSize(nsIRequest* aRequest) {
already_AddRefed<Image> ImageFactory::CreateRasterImage(
nsIRequest* aRequest, ProgressTracker* aProgressTracker,
const nsCString& aMimeType, nsIURI* aURI, uint32_t aImageFlags,
uint32_t aInnerWindowId) {
uint64_t aInnerWindowId) {
MOZ_ASSERT(aProgressTracker);
nsresult rv;
@ -253,7 +253,7 @@ already_AddRefed<Image> ImageFactory::CreateRasterImage(
already_AddRefed<Image> ImageFactory::CreateVectorImage(
nsIRequest* aRequest, ProgressTracker* aProgressTracker,
const nsCString& aMimeType, nsIURI* aURI, uint32_t aImageFlags,
uint32_t aInnerWindowId) {
uint64_t aInnerWindowId) {
MOZ_ASSERT(aProgressTracker);
nsresult rv;

Просмотреть файл

@ -43,7 +43,7 @@ class ImageFactory {
ProgressTracker* aProgressTracker,
const nsCString& aMimeType,
nsIURI* aURI, bool aIsMultiPart,
uint32_t aInnerWindowId);
uint64_t aInnerWindowId);
/**
* Creates a new image which isn't associated with a URI or loaded through
* the usual image loading mechanism.
@ -71,12 +71,12 @@ class ImageFactory {
static already_AddRefed<Image> CreateRasterImage(
nsIRequest* aRequest, ProgressTracker* aProgressTracker,
const nsCString& aMimeType, nsIURI* aURI, uint32_t aImageFlags,
uint32_t aInnerWindowId);
uint64_t aInnerWindowId);
static already_AddRefed<Image> CreateVectorImage(
nsIRequest* aRequest, ProgressTracker* aProgressTracker,
const nsCString& aMimeType, nsIURI* aURI, uint32_t aImageFlags,
uint32_t aInnerWindowId);
uint64_t aInnerWindowId);
// This is a static factory class, so disallow instantiation.
virtual ~ImageFactory() = 0;