Bug 1613431 - Part 2: Ignore synced setters return value. r=nika

Depends on D83645

Differential Revision: https://phabricator.services.mozilla.com/D83646
This commit is contained in:
Andreas Farre
2020-07-31 13:37:00 +00:00
parent 515e42106c
commit a531ef1d94
11 changed files with 51 additions and 23 deletions

View File

@@ -680,7 +680,8 @@ void ImageDocument::ResetZoomLevel() {
}
if (RefPtr<BrowsingContext> bc = GetBrowsingContext()) {
bc->SetFullZoom(mOriginalZoomLevel);
// Resetting the zoom level on a discarded browsing context has no effect.
Unused << bc->SetFullZoom(mOriginalZoomLevel);
}
}