diff --git a/gfx/layers/ipc/ShadowLayersParent.cpp b/gfx/layers/ipc/ShadowLayersParent.cpp index a35e45cb384..b64785b0e98 100644 --- a/gfx/layers/ipc/ShadowLayersParent.cpp +++ b/gfx/layers/ipc/ShadowLayersParent.cpp @@ -246,11 +246,8 @@ ShadowLayersParent::RecvUpdate(const InfallibleTArray& cset, layer->SetClipRect(common.useClipRect() ? &common.clipRect() : NULL); layer->SetBaseTransform(common.transform().value()); layer->SetPostScale(common.postXScale(), common.postYScale()); - static bool fixedPositionLayersEnabled = getenv("MOZ_ENABLE_FIXED_POSITION_LAYERS") != 0; - if (fixedPositionLayersEnabled) { - layer->SetIsFixedPosition(common.isFixedPosition()); - layer->SetFixedPositionAnchor(common.fixedPositionAnchor()); - } + layer->SetIsFixedPosition(common.isFixedPosition()); + layer->SetFixedPositionAnchor(common.fixedPositionAnchor()); if (PLayerParent* maskLayer = common.maskLayerParent()) { layer->SetMaskLayer(cast(maskLayer)->AsLayer()); } else { diff --git a/layout/base/nsDisplayList.cpp b/layout/base/nsDisplayList.cpp index e211042091b..4e3f7298913 100644 --- a/layout/base/nsDisplayList.cpp +++ b/layout/base/nsDisplayList.cpp @@ -552,11 +552,8 @@ static bool ForceVisiblityForFixedItem(nsDisplayListBuilder* aBuilder, void nsDisplayListBuilder::SetDisplayPort(const nsRect& aDisplayPort) { - static bool fixedPositionLayersEnabled = getenv("MOZ_ENABLE_FIXED_POSITION_LAYERS") != 0; - if (fixedPositionLayersEnabled) { - mHasDisplayPort = true; - mDisplayPort = aDisplayPort; - } + mHasDisplayPort = true; + mDisplayPort = aDisplayPort; } void nsDisplayListBuilder::MarkOutOfFlowFrameForDisplay(nsIFrame* aDirtyFrame, diff --git a/mobile/android/base/GeckoAppShell.java b/mobile/android/base/GeckoAppShell.java index e7551bf65de..e768b4fa254 100644 --- a/mobile/android/base/GeckoAppShell.java +++ b/mobile/android/base/GeckoAppShell.java @@ -428,9 +428,6 @@ public class GeckoAppShell f = Environment.getDownloadCacheDirectory(); GeckoAppShell.putenv("EXTERNAL_STORAGE=" + f.getPath()); - // Enable fixed position layers - GeckoAppShell.putenv("MOZ_ENABLE_FIXED_POSITION_LAYERS=1"); - // setup the app-specific cache path f = context.getCacheDir(); GeckoAppShell.putenv("CACHE_DIRECTORY=" + f.getPath());