mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 783700: Switch nsColumnSetFrame::BuildDisplayList() to use nsFrameList::Enumerator for walking its child frames. r=dbaron
This commit is contained in:
parent
fdc7afa260
commit
d63af71024
@ -1114,12 +1114,11 @@ nsColumnSetFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||||||
nsDisplayGeneric(aBuilder, this, ::PaintColumnRule, "ColumnRule",
|
nsDisplayGeneric(aBuilder, this, ::PaintColumnRule, "ColumnRule",
|
||||||
nsDisplayItem::TYPE_COLUMN_RULE));
|
nsDisplayItem::TYPE_COLUMN_RULE));
|
||||||
|
|
||||||
nsIFrame* kid = mFrames.FirstChild();
|
|
||||||
// Our children won't have backgrounds so it doesn't matter where we put them.
|
// Our children won't have backgrounds so it doesn't matter where we put them.
|
||||||
while (kid) {
|
for (nsFrameList::Enumerator e(mFrames); !e.AtEnd(); e.Next()) {
|
||||||
nsresult rv = BuildDisplayListForChild(aBuilder, kid, aDirtyRect, aLists);
|
nsresult rv = BuildDisplayListForChild(aBuilder, e.get(),
|
||||||
|
aDirtyRect, aLists);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
kid = kid->GetNextSibling();
|
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user