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
This commit is contained in:
Hiroyuki Ikezoe 2018-12-30 02:16:30 +00:00
Родитель d95e67add7
Коммит 1cee88971a
3 изменённых файлов: 0 добавлений и 26 удалений

Просмотреть файл

@ -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();

Просмотреть файл

@ -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

Просмотреть файл

@ -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.