зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
870664a37a
Коммит
4af0e76c46
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче