зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1022612. Part 34: Skip RecomputeVisibilityForItems in inactive layers. r=mattwoodrow
RecomputeVisibilityForItems for the retained ThebesLayer already recomputes visibility for all items in that layer, including items nested in other items. --HG-- extra : rebase_source : 5549164408aef7bcb3fb9204b1d6b96476d3f675
This commit is contained in:
Родитель
06102a099d
Коммит
11fd05eb6b
|
@ -4259,13 +4259,17 @@ FrameLayerBuilder::DrawThebesLayer(ThebesLayer* aLayer,
|
|||
// ThebesLayer
|
||||
gfxContextMatrixAutoSaveRestore saveMatrix(aContext);
|
||||
nsIntPoint offset = GetTranslationForThebesLayer(aLayer);
|
||||
|
||||
nsPresContext* presContext = entry->mContainerLayerFrame->PresContext();
|
||||
int32_t appUnitsPerDevPixel = presContext->AppUnitsPerDevPixel();
|
||||
|
||||
RecomputeVisibilityForItems(entry->mItems, builder, aRegionToDraw,
|
||||
offset, appUnitsPerDevPixel,
|
||||
userData->mXScale, userData->mYScale);
|
||||
if (!layerBuilder->GetContainingThebesLayerData()) {
|
||||
// Recompute visibility of items in our ThebesLayer. Note that this
|
||||
// recomputes visibility for all descendants of our display items too,
|
||||
// so there's no need to do this for the items in inactive ThebesLayers.
|
||||
int32_t appUnitsPerDevPixel = presContext->AppUnitsPerDevPixel();
|
||||
RecomputeVisibilityForItems(entry->mItems, builder, aRegionToDraw,
|
||||
offset, appUnitsPerDevPixel,
|
||||
userData->mXScale, userData->mYScale);
|
||||
}
|
||||
|
||||
nsRefPtr<nsRenderingContext> rc = new nsRenderingContext();
|
||||
rc->Init(presContext->DeviceContext(), aContext);
|
||||
|
|
Загрузка…
Ссылка в новой задаче