mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 00280175733e (bug 846901) for crashes; CLOSED TREE
This commit is contained in:
parent
3be8543796
commit
64d5e46eeb
@ -2056,18 +2056,6 @@ IsRootScrollFrameActive(nsIPresShell* aPresShell)
|
||||
return sf && sf->IsScrollingActive();
|
||||
}
|
||||
|
||||
static nsDisplayItem*
|
||||
WrapInWrapList(nsDisplayListBuilder* aBuilder,
|
||||
nsIFrame* aFrame, nsDisplayList* aList)
|
||||
{
|
||||
nsDisplayItem* item = aList->GetBottom();
|
||||
if (!item || item->GetAbove() || item->GetUnderlyingFrame() != aFrame) {
|
||||
return new (aBuilder) nsDisplayWrapList(aBuilder, aFrame, aList);
|
||||
}
|
||||
aList->RemoveBottom();
|
||||
return item;
|
||||
}
|
||||
|
||||
void
|
||||
nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
|
||||
nsIFrame* aChild,
|
||||
@ -2302,7 +2290,7 @@ nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
|
||||
if (buildFixedPositionItem) {
|
||||
item = new (aBuilder) nsDisplayFixedPosition(aBuilder, child, child, &list);
|
||||
} else {
|
||||
item = WrapInWrapList(aBuilder, child, &list);
|
||||
item = new (aBuilder) nsDisplayWrapList(aBuilder, child, &list);
|
||||
}
|
||||
if (isSVG) {
|
||||
aLists.Content()->AppendNewToTop(item);
|
||||
@ -2325,7 +2313,8 @@ nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
|
||||
}
|
||||
} else if (!isSVG && disp->IsFloating(child)) {
|
||||
if (!list.IsEmpty()) {
|
||||
aLists.Floats()->AppendNewToTop(WrapInWrapList(aBuilder, child, &list));
|
||||
aLists.Floats()->AppendNewToTop(new (aBuilder)
|
||||
nsDisplayWrapList(aBuilder, child, &list));
|
||||
}
|
||||
} else {
|
||||
aLists.Content()->AppendToTop(&list);
|
||||
|
Loading…
Reference in New Issue
Block a user