Bug 1496279 - Don't register CSS images in the loading document when printing r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D7677

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Cameron McCormack 2018-10-04 18:32:33 +00:00
Родитель fa7287c726
Коммит bb57a22878
1 изменённых файлов: 2 добавлений и 10 удалений

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

@ -1404,16 +1404,8 @@ css::ImageValue::LoadImage(nsIDocument* aDocument)
this,
mCORSMode);
// Register the image in the loading document, and in our document if it's
// different from the loading document.
imgRequestProxy* request =
loadingDoc->StyleImageLoader()->RegisterCSSImage(this);
if (aDocument != loadingDoc) {
request = aDocument->StyleImageLoader()->RegisterCSSImage(this);
}
return request;
// Register the image in the document that's using it.
return aDocument->StyleImageLoader()->RegisterCSSImage(this);
}
css::ImageValue::~ImageValue()