Bug 1018464 - Make ContainerState::FindOpaqueBackgroundColorFor look through holes in display items. r=roc

--HG--
extra : rebase_source : 69d82381327e1114a6264d5ed360dd16aca39166
This commit is contained in:
Markus Stange 2014-06-03 14:50:42 +02:00
parent 81714ca17f
commit 9aa68b0bc5

View File

@ -1674,6 +1674,10 @@ ContainerState::FindOpaqueBackgroundColorFor(int32_t aThebesLayerIndex)
break;
}
if (item->IsInvisibleInRect(appUnitRect)) {
continue;
}
nscolor color;
if (item->IsUniform(mBuilder, &color) && NS_GET_A(color) == 255)
return color;