Backed out changeset 5e3507a7e8ec (bug 1228716) for reftest failures.

This commit is contained in:
Ryan VanderMeulen 2016-01-09 18:06:23 -05:00
Родитель 9992ced19f
Коммит 98e2df851f
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -2411,6 +2411,8 @@ nsDisplayBackgroundImage::AppendBackgroundItemsToTop(nsDisplayListBuilder* aBuil
return false;
}
bool needBlendContainer = false;
// Passing bg == nullptr in this macro will result in one iteration with
// i = 0.
NS_FOR_VISIBLE_BACKGROUND_LAYERS_BACK_TO_FRONT(i, bg) {
@ -2419,7 +2421,7 @@ nsDisplayBackgroundImage::AppendBackgroundItemsToTop(nsDisplayListBuilder* aBuil
}
if (bg->mLayers[i].mBlendMode != NS_STYLE_BLEND_NORMAL) {
aBuilder->SetContainsBlendMode(bg->mLayers[i].mBlendMode);
needBlendContainer = true;
}
DisplayListClipState::AutoSaveRestore clipState(aBuilder);
@ -2434,6 +2436,11 @@ nsDisplayBackgroundImage::AppendBackgroundItemsToTop(nsDisplayListBuilder* aBuil
bgItemList.AppendNewToTop(bgItem);
}
if (needBlendContainer) {
bgItemList.AppendNewToTop(
new (aBuilder) nsDisplayBlendContainer(aBuilder, aFrame, &bgItemList));
}
aList->AppendToTop(&bgItemList);
return false;
}