Bug 1470504 - Make layout.scroll.root-frame-containers a Live pref. r=mattwoodrow
authorBotond Ballo <botond@mozilla.com>
Wed, 12 Sep 2018 20:16:50 -0400
changeset 487829 a02b46f1567ed9dad5c294b862c9c5ec6d48bea8
parent 487828 cf3a63af2da7a4a855afb8f31e3a68bcd9f2e34e
child 487830 8eac3912d00352712ab0f4145ae995e9ed9f17cf
push id246
push userfmarier@mozilla.com
push dateSat, 13 Oct 2018 00:15:40 +0000
reviewersmattwoodrow
bugs1470504
milestone64.0a1
Bug 1470504 - Make layout.scroll.root-frame-containers a Live pref. r=mattwoodrow All of its callers are in painting code, so changes will take effect on the next paint, so there is no need for it to be a Once pref. Making it Live allows us to selectively enable it in specific mochitests. Differential Revision: https://phabricator.services.mozilla.com/D7340
gfx/thebes/gfxPrefs.h
--- a/gfx/thebes/gfxPrefs.h
+++ b/gfx/thebes/gfxPrefs.h
@@ -696,17 +696,17 @@ private:
   DECL_GFX_PREF(Live, "layout.display-list.flatten-transform", LayoutFlattenTransform, bool, true);
 
   DECL_GFX_PREF(Once, "layout.frame_rate",                     LayoutFrameRate, int32_t, -1);
   DECL_GFX_PREF(Once, "layout.less-event-region-items",        LessEventRegionItems, bool, true);
   DECL_GFX_PREF(Live, "layout.min-active-layer-size",          LayoutMinActiveLayerSize, int, 64);
   DECL_GFX_PREF(Once, "layout.paint_rects_separately",         LayoutPaintRectsSeparately, bool, true);
 
   // This and code dependent on it should be removed once containerless scrolling looks stable.
-  DECL_GFX_PREF(Once, "layout.scroll.root-frame-containers",   LayoutUseContainersForRootFrames, bool, true);
+  DECL_GFX_PREF(Live, "layout.scroll.root-frame-containers",   LayoutUseContainersForRootFrames, bool, true);
   // This pref is to be set by test code only.
   DECL_GFX_PREF(Live, "layout.scrollbars.always-layerize-track", AlwaysLayerizeScrollbarTrackTestOnly, bool, false);
   DECL_GFX_PREF(Live, "layout.smaller-painted-layers",         LayoutSmallerPaintedLayers, bool, false);
 
   DECL_GFX_PREF(Once, "media.hardware-video-decoding.force-enabled",
                                                                HardwareVideoDecodingForceEnabled, bool, false);
 #ifdef XP_WIN
   DECL_GFX_PREF(Live, "media.wmf.dxva.d3d11.enabled", PDMWMFAllowD3D11, bool, true);