зеркало из https://github.com/mozilla/gecko-dev.git
Backout 7aceff7124d9 (bug 815591) for Mac test failures
This commit is contained in:
Родитель
3d97e1a8f1
Коммит
4ec09e793c
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче