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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user