зеркало из https://github.com/mozilla/gecko-dev.git
Bug 811950 - Remove fixed position environment variable. r=roc, a=overholt
This commit is contained in:
Родитель
f6807302cf
Коммит
2aa1e3acd9
|
@ -246,11 +246,8 @@ ShadowLayersParent::RecvUpdate(const InfallibleTArray<Edit>& 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 {
|
||||
|
|
|
@ -551,11 +551,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,
|
||||
|
|
|
@ -425,9 +425,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());
|
||||
|
|
Загрузка…
Ссылка в новой задаче