Bug 1436904 - Part 1: Add a static constructor function for display items. r=Bas

This commit is contained in:
Matt Woodrow
2018-02-13 13:43:28 +13:00
parent 79868f24c0
commit 2bcbca93c9
49 changed files with 248 additions and 232 deletions

View File

@@ -1280,7 +1280,7 @@ nsColumnSetFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
if (IsVisibleForPainting(aBuilder)) {
aLists.BorderBackground()->
AppendToTop(new (aBuilder) nsDisplayColumnRule(aBuilder, this));
AppendToTop(MakeDisplayItem<nsDisplayColumnRule>(aBuilder, this));
}
// Our children won't have backgrounds so it doesn't matter where we put them.