Bug 1178847 - Don't use the MobileViewportManager code on Mulet or Fennec yet. r=botond
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
#filter substitution
|
||||
|
||||
// For the all MOZ_MULET ifdef conditions in this file: see bug 1174234
|
||||
|
||||
#ifndef MOZ_MULET
|
||||
pref("toolkit.defaultChromeURI", "chrome://b2g/content/shell.html");
|
||||
pref("browser.chromeURL", "chrome://b2g/content/");
|
||||
@@ -457,7 +459,9 @@ pref("dom.ipc.processCount", 100000);
|
||||
|
||||
pref("dom.ipc.browser_frames.oop_by_default", false);
|
||||
|
||||
#ifndef MOZ_MULET
|
||||
pref("dom.meta-viewport.enabled", true);
|
||||
#endif
|
||||
|
||||
// SMS/MMS
|
||||
pref("dom.sms.enabled", true);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user