mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +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
|
|
@ -618,7 +618,6 @@ nsMathMLContainerFrame::PropagatePresentationDataFromChildAt(nsIFrame* aPa
|
|||
|
||||
void
|
||||
nsMathMLContainerFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
// report an error if something wrong was found in this frame
|
||||
|
|
@ -633,8 +632,7 @@ nsMathMLContainerFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||
|
||||
DisplayBorderBackgroundOutline(aBuilder, aLists);
|
||||
|
||||
BuildDisplayListForNonBlockChildren(aBuilder, aDirtyRect, aLists,
|
||||
DISPLAY_CHILD_INLINE);
|
||||
BuildDisplayListForNonBlockChildren(aBuilder, aLists, DISPLAY_CHILD_INLINE);
|
||||
|
||||
#if defined(DEBUG) && defined(SHOW_BOUNDING_BOX)
|
||||
// for visual debug
|
||||
|
|
|
|||
|
|
@ -126,7 +126,6 @@ public:
|
|||
}
|
||||
|
||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists) override;
|
||||
|
||||
virtual bool ComputeCustomOverflow(nsOverflowAreas& aOverflowAreas) override;
|
||||
|
|
|
|||
|
|
@ -71,14 +71,13 @@ nsMathMLSelectedFrame::SetInitialChildList(ChildListID aListID,
|
|||
// Only paint the selected child...
|
||||
void
|
||||
nsMathMLSelectedFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
// Report an error if something wrong was found in this frame.
|
||||
// We can't call nsDisplayMathMLError from here,
|
||||
// so ask nsMathMLContainerFrame to do the work for us.
|
||||
if (NS_MATHML_HAS_ERROR(mPresentationData.flags)) {
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aDirtyRect, aLists);
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aLists);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -89,7 +88,7 @@ nsMathMLSelectedFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||
// Put the child's background directly onto the content list
|
||||
nsDisplayListSet set(aLists, aLists.Content());
|
||||
// The children should be in content order
|
||||
BuildDisplayListForChild(aBuilder, childFrame, aDirtyRect, set);
|
||||
BuildDisplayListForChild(aBuilder, childFrame, set);
|
||||
}
|
||||
|
||||
#if defined(DEBUG) && defined(SHOW_BOUNDING_BOX)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ public:
|
|||
ChildListChanged(int32_t aModType) override;
|
||||
|
||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists) override;
|
||||
|
||||
virtual nsresult
|
||||
|
|
|
|||
|
|
@ -201,12 +201,11 @@ nsMathMLmencloseFrame::TransmitAutomaticData()
|
|||
|
||||
void
|
||||
nsMathMLmencloseFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
/////////////
|
||||
// paint the menclosed content
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aDirtyRect, aLists);
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aLists);
|
||||
|
||||
if (NS_MATHML_HAS_ERROR(mPresentationData.flags))
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ public:
|
|||
GetAdditionalStyleContext(int32_t aIndex) const override;
|
||||
|
||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists) override;
|
||||
|
||||
NS_IMETHOD
|
||||
|
|
|
|||
|
|
@ -161,12 +161,11 @@ nsMathMLmfencedFrame::CreateFencesAndSeparators(nsPresContext* aPresContext)
|
|||
|
||||
void
|
||||
nsMathMLmfencedFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
/////////////
|
||||
// display the content
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aDirtyRect, aLists);
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aLists);
|
||||
|
||||
////////////
|
||||
// display fences and separators
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ public:
|
|||
nsReflowStatus& aStatus) override;
|
||||
|
||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists) override;
|
||||
|
||||
virtual void
|
||||
|
|
|
|||
|
|
@ -149,12 +149,11 @@ nsMathMLmfracFrame::CalcLineThickness(nsPresContext* aPresContext,
|
|||
|
||||
void
|
||||
nsMathMLmfracFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
/////////////
|
||||
// paint the numerator and denominator
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aDirtyRect, aLists);
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aLists);
|
||||
|
||||
/////////////
|
||||
// paint the fraction line
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ public:
|
|||
ReflowOutput& aDesiredSize) override;
|
||||
|
||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists) override;
|
||||
|
||||
virtual nsresult
|
||||
|
|
|
|||
|
|
@ -78,14 +78,13 @@ nsMathMLmoFrame::UseMathMLChar()
|
|||
|
||||
void
|
||||
nsMathMLmoFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
bool useMathMLChar = UseMathMLChar();
|
||||
|
||||
if (!useMathMLChar) {
|
||||
// let the base class do everything
|
||||
nsMathMLTokenFrame::BuildDisplayList(aBuilder, aDirtyRect, aLists);
|
||||
nsMathMLTokenFrame::BuildDisplayList(aBuilder, aLists);
|
||||
} else {
|
||||
DisplayBorderBackgroundOutline(aBuilder, aLists);
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ public:
|
|||
GetAdditionalStyleContext(int32_t aIndex) const override;
|
||||
|
||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists) override;
|
||||
|
||||
NS_IMETHOD
|
||||
|
|
|
|||
|
|
@ -77,12 +77,11 @@ nsMathMLmrootFrame::TransmitAutomaticData()
|
|||
|
||||
void
|
||||
nsMathMLmrootFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
/////////////
|
||||
// paint the content we are square-rooting
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aDirtyRect, aLists);
|
||||
nsMathMLContainerFrame::BuildDisplayList(aBuilder, aLists);
|
||||
|
||||
/////////////
|
||||
// paint the sqrt symbol
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ public:
|
|||
ReflowOutput& aDesiredSize) override;
|
||||
|
||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists) override;
|
||||
|
||||
uint8_t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue