Bug 656167 - Temorarily disable or back out fixed layers. r=jones.chris.g
authorOleg Romashin <romaxa@gmail.com>
Thu, 12 May 2011 09:49:33 -0700
changeset 69442 7ba9f4f76e735b9afea8b147e85a9eb9b624e4bc
parent 69441 72f447a53575e24c0f18f80d76931426cde9f660
child 69443 307b23c4d2468f34168d164a4ce810f5b6447157
push id19977
push userromaxa@gmail.com
push dateFri, 13 May 2011 14:26:48 +0000
treeherdermozilla-central@7ba9f4f76e73 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjones
bugs656167
milestone6.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 656167 - Temorarily disable or back out fixed layers. r=jones.chris.g
gfx/layers/ipc/ShadowLayersParent.cpp
--- a/gfx/layers/ipc/ShadowLayersParent.cpp
+++ b/gfx/layers/ipc/ShadowLayersParent.cpp
@@ -285,17 +285,20 @@ ShadowLayersParent::RecvUpdate(const Inf
 
       const CommonLayerAttributes& common = attrs.common();
       layer->SetVisibleRegion(common.visibleRegion());
       layer->SetContentFlags(common.contentFlags());
       layer->SetOpacity(common.opacity());
       layer->SetClipRect(common.useClipRect() ? &common.clipRect() : NULL);
       layer->SetTransform(common.transform());
       layer->SetTileSourceRect(common.useTileSourceRect() ? &common.tileSourceRect() : NULL);
-      layer->SetIsFixedPosition(common.isFixedPosition());
+      static bool fixedPositionLayersEnabled = getenv("MOZ_ENABLE_FIXED_POSITION_LAYERS") != 0;
+      if (fixedPositionLayersEnabled) {
+        layer->SetIsFixedPosition(common.isFixedPosition());
+      }
 
       typedef SpecificLayerAttributes Specific;
       const SpecificLayerAttributes& specific = attrs.specific();
       switch (specific.type()) {
       case Specific::Tnull_t:
         break;
 
       case Specific::TThebesLayerAttributes: {