mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1355 - Store the dirty rect on the display list builder rather than passing it as a parameter to BuildDisplayList
Also fix build bustage for De-unified layout/xul in nsRootBoxFrame.cpp
This commit is contained in:
parent
7ae0c88c46
commit
85b85bac28
154 changed files with 259 additions and 430 deletions
|
|
@ -331,17 +331,15 @@ nsContainerFrame::GetChildLists(nsTArray<ChildList>* aLists) const
|
|||
|
||||
void
|
||||
nsContainerFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
DisplayBorderBackgroundOutline(aBuilder, aLists);
|
||||
|
||||
BuildDisplayListForNonBlockChildren(aBuilder, aDirtyRect, aLists);
|
||||
BuildDisplayListForNonBlockChildren(aBuilder, aLists);
|
||||
}
|
||||
|
||||
void
|
||||
nsContainerFrame::BuildDisplayListForNonBlockChildren(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists,
|
||||
uint32_t aFlags)
|
||||
{
|
||||
|
|
@ -350,7 +348,7 @@ nsContainerFrame::BuildDisplayListForNonBlockChildren(nsDisplayListBuilder* aB
|
|||
nsDisplayListSet set(aLists, aLists.Content());
|
||||
// The children should be in content order
|
||||
while (kid) {
|
||||
BuildDisplayListForChild(aBuilder, kid, aDirtyRect, set, aFlags);
|
||||
BuildDisplayListForChild(aBuilder, kid, set, aFlags);
|
||||
kid = kid->GetNextSibling();
|
||||
}
|
||||
}
|
||||
|
|
@ -1340,13 +1338,12 @@ nsContainerFrame::ReflowOverflowContainerChildren(nsPresContext* aPres
|
|||
|
||||
void
|
||||
nsContainerFrame::DisplayOverflowContainers(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
nsFrameList* overflowconts = GetPropTableFrames(OverflowContainersProperty());
|
||||
if (overflowconts) {
|
||||
for (nsIFrame* frame : *overflowconts) {
|
||||
BuildDisplayListForChild(aBuilder, frame, aDirtyRect, aLists);
|
||||
BuildDisplayListForChild(aBuilder, frame, aLists);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue