Backout 7aceff7124d9 (bug 815591) for Mac test failures

This commit is contained in:
Robert O'Callahan 2012-11-29 20:39:36 +13:00
Родитель 3d97e1a8f1
Коммит 4ec09e793c
1 изменённых файлов: 5 добавлений и 7 удалений

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

@ -1565,13 +1565,11 @@ nsDisplayBackgroundImage::AppendBackgroundItemsToTop(nsDisplayListBuilder* aBuil
drawBackgroundImage, drawBackgroundColor);
}
// Even if we don't actually have a background color to paint, we may still need
// to create an item for hit testing.
if (color != NS_RGBA(0,0,0,0) || aBuilder->IsForEventDelivery()) {
aList->AppendNewToTop(
new (aBuilder) nsDisplayBackgroundColor(aBuilder, aFrame, bg,
drawBackgroundColor ? color : NS_RGBA(0, 0, 0, 0)));
}
// Even if we don't actually have a background color to paint, we still need
// to create the item because it's used for hit testing.
aList->AppendNewToTop(
new (aBuilder) nsDisplayBackgroundColor(aBuilder, aFrame, bg,
drawBackgroundColor ? color : NS_RGBA(0, 0, 0, 0)));
// Passing bg == nullptr in this macro will result in one iteration with
// i = 0.