зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
fa7287c726
Коммит
bb57a22878
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче