Backed out changeset ed7a32143aeb (bug 1041530) for OS X debug mochitest failures

This commit is contained in:
Ed Morley 2014-07-24 16:11:47 +01:00
Родитель e0c40e5472
Коммит 59d4295a07
1 изменённых файлов: 4 добавлений и 5 удалений

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

@ -2635,11 +2635,10 @@ ContainerState::ComputeOpaqueRect(nsDisplayItem* aItem,
opaqueClipped.Contains(mContainerBounds)) {
aList->SetIsOpaque();
}
// Add opaque areas to the "exclude glass" region. Only do this when our
// container layer is going to be the rootmost layer, otherwise transforms
// etc will mess us up (and opaque contributions from other containers are
// not needed).
if (!nsLayoutUtils::GetCrossDocParentFrame(mContainerFrame)) {
// Add opaque areas to the "exclude glass" region. Only do this for
// ThebesLayers which are direct children of the root layer; this means
// they can't have transforms or opacity wrapping them.
if (!mContainerLayer->GetParent()) {
mBuilder->AddWindowOpaqueRegion(opaqueClipped);
}
opaquePixels = ScaleRegionToInsidePixels(opaqueClipped, snapOpaque);