mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1621478 - Drop mPropagateComponentAlphaFlattening. r=mstange
It hasn't been used since bug 1435643. Differential Revision: https://phabricator.services.mozilla.com/D66334
This commit is contained in:
parent
2dfc5e12ad
commit
4dc36ef4af
@ -852,7 +852,6 @@ struct NewLayerEntry {
|
||||
mLayerState(LayerState::LAYER_INACTIVE),
|
||||
mHideAllLayersBelow(false),
|
||||
mOpaqueForAnimatedGeometryRootParent(false),
|
||||
mPropagateComponentAlphaFlattening(true),
|
||||
mUntransformedVisibleRegion(false),
|
||||
mIsFixedToRootScrollFrame(false) {}
|
||||
// mLayer is null if the previous entry is for a PaintedLayer that hasn't
|
||||
@ -885,9 +884,6 @@ struct NewLayerEntry {
|
||||
// mAnimatedGeometryRoot->GetParent().
|
||||
bool mOpaqueForAnimatedGeometryRootParent;
|
||||
|
||||
// If true, then the content flags for this layer should contribute
|
||||
// to our decision to flatten component alpha layers, false otherwise.
|
||||
bool mPropagateComponentAlphaFlattening;
|
||||
// mVisibleRegion is relative to the associated frame before
|
||||
// transform.
|
||||
bool mUntransformedVisibleRegion;
|
||||
@ -5002,13 +4998,6 @@ void ContainerState::ProcessDisplayItems(nsDisplayList* aList) {
|
||||
nsLayoutUtils::IsReallyFixedPos(item->Frame());
|
||||
}
|
||||
|
||||
// Don't attempt to flatten compnent alpha layers that are within
|
||||
// a forced active layer, or an active transform;
|
||||
if (itemType == DisplayItemType::TYPE_TRANSFORM ||
|
||||
layerState == LayerState::LAYER_ACTIVE_FORCE) {
|
||||
newLayerEntry->mPropagateComponentAlphaFlattening = false;
|
||||
}
|
||||
|
||||
float contentXScale = 1.0f;
|
||||
float contentYScale = 1.0f;
|
||||
if (ContainerLayer* ownContainer = ownLayer->AsContainerLayer()) {
|
||||
|
Loading…
Reference in New Issue
Block a user