Bug 1178847 - Don't use the MobileViewportManager code on Mulet or Fennec yet. r=botond

This commit is contained in:
Kartikaya Gupta
2015-07-21 10:52:11 -04:00
parent 064fc767ff
commit f0368036ee
2 changed files with 7 additions and 0 deletions

View File

@@ -984,9 +984,12 @@ PresShell::Init(nsIDocument* aDocument,
if (mPresContext->IsRootContentDocument()) {
mZoomConstraintsClient = new ZoomConstraintsClient();
mZoomConstraintsClient->Init(this, mDocument);
#ifndef MOZ_WIDGET_ANDROID
// Fennec will need some work to use this code; see bug 1180267.
if (gfxPrefs::MetaViewportEnabled()) {
mMobileViewportManager = new MobileViewportManager(this, mDocument);
}
#endif
}
}