From 1cee88971a853ec2285a4d511303820c829dea0a Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Sun, 30 Dec 2018 02:16:30 +0000 Subject: [PATCH] Bug 1516368 - Drop nsIDOMWindowUtils.isResolutionSet. r=botond It's been unused since bug 1337325. Depends on D15338 Differential Revision: https://phabricator.services.mozilla.com/D15339 --HG-- extra : moz-landing-system : lando --- dom/base/nsDOMWindowUtils.cpp | 12 ------------ dom/interfaces/base/nsIDOMWindowUtils.idl | 9 --------- layout/base/nsIPresShell.h | 5 ----- 3 files changed, 26 deletions(-) diff --git a/dom/base/nsDOMWindowUtils.cpp b/dom/base/nsDOMWindowUtils.cpp index a1b69f423e02..bb936c4bf41c 100644 --- a/dom/base/nsDOMWindowUtils.cpp +++ b/dom/base/nsDOMWindowUtils.cpp @@ -580,18 +580,6 @@ nsDOMWindowUtils::GetResolution(float* aResolution) { return NS_OK; } -NS_IMETHODIMP -nsDOMWindowUtils::GetIsResolutionSet(bool* aIsResolutionSet) { - nsIPresShell* presShell = GetPresShell(); - if (!presShell) { - return NS_ERROR_FAILURE; - } - - *aIsResolutionSet = presShell->IsResolutionSet(); - - return NS_OK; -} - NS_IMETHODIMP nsDOMWindowUtils::SetIsFirstPaint(bool aIsFirstPaint) { nsIPresShell* presShell = GetPresShell(); diff --git a/dom/interfaces/base/nsIDOMWindowUtils.idl b/dom/interfaces/base/nsIDOMWindowUtils.idl index 0f1a35041e2b..89095b36dc9a 100644 --- a/dom/interfaces/base/nsIDOMWindowUtils.idl +++ b/dom/interfaces/base/nsIDOMWindowUtils.idl @@ -234,15 +234,6 @@ interface nsIDOMWindowUtils : nsISupports { in uint32_t aDisplayWidth, in uint32_t aDisplayHeight); - /** - * Whether the resolution has been set by the user. - * This gives a way to check whether the provided resolution is the default - * value or restored from a previous session. - * - * Can only be accessed with chrome privileges. - */ - readonly attribute boolean isResolutionSet; - /** * Whether the next paint should be flagged as the first paint for a document. * This gives a way to track the next paint that occurs after the flag is diff --git a/layout/base/nsIPresShell.h b/layout/base/nsIPresShell.h index f013bb0af593..e4d1af0006d1 100644 --- a/layout/base/nsIPresShell.h +++ b/layout/base/nsIPresShell.h @@ -1393,11 +1393,6 @@ class nsIPresShell : public nsStubDocumentObserver { */ virtual float GetCumulativeNonRootScaleResolution() = 0; - /** - * Was the current resolution set by the user or just default initialized? - */ - bool IsResolutionSet() { return mResolution.isSome(); } - /** * Used by session restore code to restore a resolution before the first * paint.