Bug 1646222 - Don't invalidate vector images as a result of size/display mode changes. r=tnikkel

sizemode/displaymode media queries only affect a given browsing context
tree so there's no need to propagate the change to images in that case.

Differential Revision: https://phabricator.services.mozilla.com/D94422
This commit is contained in:
Emilio Cobos Álvarez
2020-10-22 09:29:43 +00:00
parent f014b5cf6f
commit 96044339f2
7 changed files with 75 additions and 63 deletions

View File

@@ -3227,7 +3227,8 @@ nsDocShell::SetDeviceSizeIsPageSize(bool aValue) {
RefPtr<nsPresContext> presContext = GetPresContext();
if (presContext) {
presContext->MediaFeatureValuesChanged(
{MediaFeatureChangeReason::DeviceSizeIsPageSizeChange});
{MediaFeatureChangeReason::DeviceSizeIsPageSizeChange},
MediaFeatureChangePropagation::JustThisDocument);
}
}
return NS_OK;