Bug 802385 - Never flatten component alpha layers when compositing with an accelerated layer manager. r=roc

This commit is contained in:
Matt Woodrow 2012-11-22 18:34:32 +13:00
Родитель 773bc1d51b
Коммит e035462997
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -2864,9 +2864,11 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder,
nsRect bounds;
nsIntRect pixBounds;
int32_t appUnitsPerDevPixel;
uint32_t stateFlags =
(aContainerFrame->GetStateBits() & NS_FRAME_NO_COMPONENT_ALPHA) ?
ContainerState::NO_COMPONENT_ALPHA : 0;
uint32_t stateFlags = 0;
if ((aContainerFrame->GetStateBits() & NS_FRAME_NO_COMPONENT_ALPHA) &&
mRetainingManager && !mRetainingManager->AreComponentAlphaLayersEnabled()) {
stateFlags = ContainerState::NO_COMPONENT_ALPHA;
}
uint32_t flags;
while (true) {
ContainerState state(aBuilder, aManager, aManager->GetLayerBuilder(),