Bug 1138651 - Enable CSS Scroll Snapping by Default on B2G. r=roc
authorKearwood (Kip) Gilbert <kgilbert@mozilla.com>
Mon, 02 Mar 2015 13:55:00 +0100
changeset 233806 2156bc3a102d98e07466d6412c2d08bc526a3b36
parent 233805 cda379df919077762abd5f482ce697aef8937539
child 233807 66c780b6b377cdb32c0dce36b915592ee6ffb21d
push id56949
push usercbook@mozilla.com
push dateMon, 16 Mar 2015 12:34:38 +0000
treeherdermozilla-inbound@9cbd4a5c9a38 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1138651, 969250
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1138651 - Enable CSS Scroll Snapping by Default on B2G. r=roc - CSS Scroll Snapping can be enabled on Firefox OS earlier than other platforms, as it does not require scrollbar support (Bug 969250)
b2g/app/b2g.js
--- a/b2g/app/b2g.js
+++ b/b2g/app/b2g.js
@@ -689,16 +689,19 @@ pref("javascript.options.mem.gc_max_empt
 pref("ui.showHideScrollbars", 1);
 pref("ui.useOverlayScrollbars", 1);
 pref("ui.scrollbarFadeBeginDelay", 450);
 pref("ui.scrollbarFadeDuration", 200);
 
 // Scrollbar position follows the document `dir` attribute
 pref("layout.scrollbar.side", 1);
 
+// CSS Scroll Snapping
+pref("layout.css.scroll-snap.enabled", true);
+
 // Enable the ProcessPriorityManager, and give processes with no visible
 // documents a 1s grace period before they're eligible to be marked as
 // background. Background processes that are perceivable due to playing
 // media are given a longer grace period to accomodate changing tracks, etc.
 pref("dom.ipc.processPriorityManager.enabled", true);
 pref("dom.ipc.processPriorityManager.backgroundGracePeriodMS", 1000);
 pref("dom.ipc.processPriorityManager.backgroundPerceivableGracePeriodMS", 5000);
 pref("dom.ipc.processPriorityManager.temporaryPriorityLockMS", 5000);