Bug 1518965: Remove nsPresContext::mLastResizeEventVisibleArea and accessor functions that are never used. r=botond

Differential Revision: https://phabricator.services.mozilla.com/D16126

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brad Werth 2019-01-10 01:56:41 +00:00
Родитель 870664a37a
Коммит 4af0e76c46
2 изменённых файлов: 0 добавлений и 12 удалений

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

@ -176,11 +176,6 @@ nsPresContext::nsPresContext(dom::Document* aDocument, nsPresContextType aType)
mCurAppUnitsPerDevPixel(0),
mAutoQualityMinFontSizePixelsPref(0),
mLangService(nsLanguageAtomService::GetService()),
// origin nscoord_MIN is impossible, so the first ResizeReflow always
// fires
mLastResizeEventVisibleArea(nsRect(nscoord_MIN, nscoord_MIN,
NS_UNCONSTRAINEDSIZE,
NS_UNCONSTRAINEDSIZE)),
mPageSize(-1, -1),
mPageScale(0.0),
mPPScale(1.0f),

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

@ -476,12 +476,6 @@ class nsPresContext : public nsISupports,
}
}
bool ShouldFireResizeEvent() const {
return !mLastResizeEventVisibleArea.IsEqualEdges(mVisibleArea);
}
void WillFireResizeEvent() { mLastResizeEventVisibleArea = mVisibleArea; }
/**
* Return true if this presentation context is a paginated
* context.
@ -1312,7 +1306,6 @@ class nsPresContext : public nsISupports,
mozilla::UniquePtr<gfxMissingFontRecorder> mMissingFonts;
nsRect mVisibleArea;
nsRect mLastResizeEventVisibleArea;
nsSize mPageSize;
float mPageScale;
float mPPScale;