From 28f1fa03232cdd15b2c4e52f9f7e8b364f651845 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 8 Oct 1999 04:45:12 +0000 Subject: [PATCH] Removed some dead code and moved some #if 0 code from the area frame to the block frame. This completes the previous checkin git-svn-id: svn://10.0.0.236/trunk@50202 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsAreaFrame.cpp | 86 ------------------- mozilla/layout/generic/nsAreaFrame.h | 7 -- mozilla/layout/generic/nsBlockFrame.cpp | 56 ++++++++++++ mozilla/layout/generic/nsBlockReflowState.cpp | 56 ++++++++++++ mozilla/layout/generic/nsBlockReflowState.h | 56 ++++++++++++ mozilla/layout/html/base/src/nsAreaFrame.cpp | 86 ------------------- mozilla/layout/html/base/src/nsAreaFrame.h | 7 -- mozilla/layout/html/base/src/nsBlockFrame.cpp | 56 ++++++++++++ .../html/base/src/nsBlockReflowState.cpp | 56 ++++++++++++ .../layout/html/base/src/nsBlockReflowState.h | 56 ++++++++++++ 10 files changed, 336 insertions(+), 186 deletions(-) diff --git a/mozilla/layout/generic/nsAreaFrame.cpp b/mozilla/layout/generic/nsAreaFrame.cpp index 87cdf87928a..0dd6b3afbfd 100644 --- a/mozilla/layout/generic/nsAreaFrame.cpp +++ b/mozilla/layout/generic/nsAreaFrame.cpp @@ -182,68 +182,6 @@ nsAreaFrame::FirstChild(nsIAtom* aListName, nsIFrame** aFirstChild) const return nsBlockFrame::FirstChild(aListName, aFirstChild); } -#ifdef DEBUG -NS_IMETHODIMP -nsAreaFrame::Paint(nsIPresContext& aPresContext, - nsIRenderingContext& aRenderingContext, - const nsRect& aDirtyRect, - nsFramePaintLayer aWhichLayer) -{ - // Note: all absolutely positioned elements have views so we don't - // need to worry about painting them - nsresult rv = nsBlockFrame::Paint(aPresContext, aRenderingContext, - aDirtyRect, aWhichLayer); - -#if 0 - if ((NS_FRAME_PAINT_LAYER_DEBUG == aWhichLayer) && GetShowFrameBorders()) { - // Render the bands in the spacemanager - nsISpaceManager* sm = mSpaceManager; - - if (nsnull != sm) { - nsBlockBandData band; - band.Init(sm, nsSize(mRect.width, mRect.height)); - nscoord y = 0; - while (y < mRect.height) { - nsRect availArea; - band.GetAvailableSpace(y, availArea); - - // Render a box and a diagonal line through the band - aRenderingContext.SetColor(NS_RGB(0,255,0)); - aRenderingContext.DrawRect(0, availArea.y, - mRect.width, availArea.height); - aRenderingContext.DrawLine(0, availArea.y, - mRect.width, availArea.YMost()); - - // Render boxes and opposite diagonal lines around the - // unavailable parts of the band. - PRInt32 i; - for (i = 0; i < band.GetTrapezoidCount(); i++) { - const nsBandTrapezoid* trapezoid = band.GetTrapezoid(i); - if (nsBandTrapezoid::Available != trapezoid->mState) { - nsRect r; - trapezoid->GetRect(r); - if (nsBandTrapezoid::OccupiedMultiple == trapezoid->mState) { - aRenderingContext.SetColor(NS_RGB(0,255,128)); - } - else { - aRenderingContext.SetColor(NS_RGB(128,255,0)); - } - aRenderingContext.DrawRect(r); - aRenderingContext.DrawLine(r.x, r.YMost(), r.XMost(), r.y); - } - } - y = availArea.YMost(); - } - } - } - - return rv; -#else - return NS_OK; -#endif -} -#endif - // Return the x-most and y-most for the child absolutely positioned // elements NS_IMETHODIMP @@ -341,33 +279,9 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext, } } -#if 0 -#ifdef NOISY_SPACEMANAGER - if (eReflowReason_Incremental == aReflowState.reason) { - if (mSpaceManager) { - ListTag(stdout); - printf(": space-manager before reflow\n"); - mSpaceManager->List(stdout); - } - } -#endif -#endif - // Let the block frame do its reflow first rv = nsBlockFrame::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus); -#if 0 -#ifdef NOISY_SPACEMANAGER - if (eReflowReason_Incremental == aReflowState.reason) { - if (mSpaceManager) { - ListTag(stdout); - printf(": space-manager after reflow\n"); - mSpaceManager->List(stdout); - } - } -#endif -#endif - // Let the absolutely positioned container reflow any absolutely positioned // child frames that need to be reflowed, e.g., elements with a percentage // based width/height diff --git a/mozilla/layout/generic/nsAreaFrame.h b/mozilla/layout/generic/nsAreaFrame.h index 87ab88a089b..2b7ffa508f2 100644 --- a/mozilla/layout/generic/nsAreaFrame.h +++ b/mozilla/layout/generic/nsAreaFrame.h @@ -81,13 +81,6 @@ public: NS_IMETHOD DidReflow(nsIPresContext& aPresContext, nsDidReflowStatus aStatus); -#ifdef DEBUG - NS_IMETHOD Paint(nsIPresContext& aPresContext, - nsIRenderingContext& aRenderingContext, - const nsRect& aDirtyRect, - nsFramePaintLayer aWhichLayer); -#endif - /** * Get the "type" of the frame * diff --git a/mozilla/layout/generic/nsBlockFrame.cpp b/mozilla/layout/generic/nsBlockFrame.cpp index 2ca95f665df..c6d94808cff 100644 --- a/mozilla/layout/generic/nsBlockFrame.cpp +++ b/mozilla/layout/generic/nsBlockFrame.cpp @@ -1364,6 +1364,18 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext, } } } + +#if 0 +#ifdef NOISY_SPACEMANAGER + if (eReflowReason_Incremental == aReflowState.reason) { + if (mSpaceManager) { + ListTag(stdout); + printf(": space-manager after reflow\n"); + mSpaceManager->List(stdout); + } + } +#endif +#endif // If this is an incremental reflow and we changed size, then make sure our // border is repainted if necessary @@ -5342,6 +5354,50 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext, aRenderingContext.PopState(clipState); } +#if 0 + if ((NS_FRAME_PAINT_LAYER_DEBUG == aWhichLayer) && GetShowFrameBorders()) { + // Render the bands in the spacemanager + nsISpaceManager* sm = mSpaceManager; + + if (nsnull != sm) { + nsBlockBandData band; + band.Init(sm, nsSize(mRect.width, mRect.height)); + nscoord y = 0; + while (y < mRect.height) { + nsRect availArea; + band.GetAvailableSpace(y, availArea); + + // Render a box and a diagonal line through the band + aRenderingContext.SetColor(NS_RGB(0,255,0)); + aRenderingContext.DrawRect(0, availArea.y, + mRect.width, availArea.height); + aRenderingContext.DrawLine(0, availArea.y, + mRect.width, availArea.YMost()); + + // Render boxes and opposite diagonal lines around the + // unavailable parts of the band. + PRInt32 i; + for (i = 0; i < band.GetTrapezoidCount(); i++) { + const nsBandTrapezoid* trapezoid = band.GetTrapezoid(i); + if (nsBandTrapezoid::Available != trapezoid->mState) { + nsRect r; + trapezoid->GetRect(r); + if (nsBandTrapezoid::OccupiedMultiple == trapezoid->mState) { + aRenderingContext.SetColor(NS_RGB(0,255,128)); + } + else { + aRenderingContext.SetColor(NS_RGB(128,255,0)); + } + aRenderingContext.DrawRect(r); + aRenderingContext.DrawLine(r.x, r.YMost(), r.XMost(), r.y); + } + } + y = availArea.YMost(); + } + } + } +#endif + return NS_OK; } diff --git a/mozilla/layout/generic/nsBlockReflowState.cpp b/mozilla/layout/generic/nsBlockReflowState.cpp index 2ca95f665df..c6d94808cff 100644 --- a/mozilla/layout/generic/nsBlockReflowState.cpp +++ b/mozilla/layout/generic/nsBlockReflowState.cpp @@ -1364,6 +1364,18 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext, } } } + +#if 0 +#ifdef NOISY_SPACEMANAGER + if (eReflowReason_Incremental == aReflowState.reason) { + if (mSpaceManager) { + ListTag(stdout); + printf(": space-manager after reflow\n"); + mSpaceManager->List(stdout); + } + } +#endif +#endif // If this is an incremental reflow and we changed size, then make sure our // border is repainted if necessary @@ -5342,6 +5354,50 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext, aRenderingContext.PopState(clipState); } +#if 0 + if ((NS_FRAME_PAINT_LAYER_DEBUG == aWhichLayer) && GetShowFrameBorders()) { + // Render the bands in the spacemanager + nsISpaceManager* sm = mSpaceManager; + + if (nsnull != sm) { + nsBlockBandData band; + band.Init(sm, nsSize(mRect.width, mRect.height)); + nscoord y = 0; + while (y < mRect.height) { + nsRect availArea; + band.GetAvailableSpace(y, availArea); + + // Render a box and a diagonal line through the band + aRenderingContext.SetColor(NS_RGB(0,255,0)); + aRenderingContext.DrawRect(0, availArea.y, + mRect.width, availArea.height); + aRenderingContext.DrawLine(0, availArea.y, + mRect.width, availArea.YMost()); + + // Render boxes and opposite diagonal lines around the + // unavailable parts of the band. + PRInt32 i; + for (i = 0; i < band.GetTrapezoidCount(); i++) { + const nsBandTrapezoid* trapezoid = band.GetTrapezoid(i); + if (nsBandTrapezoid::Available != trapezoid->mState) { + nsRect r; + trapezoid->GetRect(r); + if (nsBandTrapezoid::OccupiedMultiple == trapezoid->mState) { + aRenderingContext.SetColor(NS_RGB(0,255,128)); + } + else { + aRenderingContext.SetColor(NS_RGB(128,255,0)); + } + aRenderingContext.DrawRect(r); + aRenderingContext.DrawLine(r.x, r.YMost(), r.XMost(), r.y); + } + } + y = availArea.YMost(); + } + } + } +#endif + return NS_OK; } diff --git a/mozilla/layout/generic/nsBlockReflowState.h b/mozilla/layout/generic/nsBlockReflowState.h index 2ca95f665df..c6d94808cff 100644 --- a/mozilla/layout/generic/nsBlockReflowState.h +++ b/mozilla/layout/generic/nsBlockReflowState.h @@ -1364,6 +1364,18 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext, } } } + +#if 0 +#ifdef NOISY_SPACEMANAGER + if (eReflowReason_Incremental == aReflowState.reason) { + if (mSpaceManager) { + ListTag(stdout); + printf(": space-manager after reflow\n"); + mSpaceManager->List(stdout); + } + } +#endif +#endif // If this is an incremental reflow and we changed size, then make sure our // border is repainted if necessary @@ -5342,6 +5354,50 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext, aRenderingContext.PopState(clipState); } +#if 0 + if ((NS_FRAME_PAINT_LAYER_DEBUG == aWhichLayer) && GetShowFrameBorders()) { + // Render the bands in the spacemanager + nsISpaceManager* sm = mSpaceManager; + + if (nsnull != sm) { + nsBlockBandData band; + band.Init(sm, nsSize(mRect.width, mRect.height)); + nscoord y = 0; + while (y < mRect.height) { + nsRect availArea; + band.GetAvailableSpace(y, availArea); + + // Render a box and a diagonal line through the band + aRenderingContext.SetColor(NS_RGB(0,255,0)); + aRenderingContext.DrawRect(0, availArea.y, + mRect.width, availArea.height); + aRenderingContext.DrawLine(0, availArea.y, + mRect.width, availArea.YMost()); + + // Render boxes and opposite diagonal lines around the + // unavailable parts of the band. + PRInt32 i; + for (i = 0; i < band.GetTrapezoidCount(); i++) { + const nsBandTrapezoid* trapezoid = band.GetTrapezoid(i); + if (nsBandTrapezoid::Available != trapezoid->mState) { + nsRect r; + trapezoid->GetRect(r); + if (nsBandTrapezoid::OccupiedMultiple == trapezoid->mState) { + aRenderingContext.SetColor(NS_RGB(0,255,128)); + } + else { + aRenderingContext.SetColor(NS_RGB(128,255,0)); + } + aRenderingContext.DrawRect(r); + aRenderingContext.DrawLine(r.x, r.YMost(), r.XMost(), r.y); + } + } + y = availArea.YMost(); + } + } + } +#endif + return NS_OK; } diff --git a/mozilla/layout/html/base/src/nsAreaFrame.cpp b/mozilla/layout/html/base/src/nsAreaFrame.cpp index 87cdf87928a..0dd6b3afbfd 100644 --- a/mozilla/layout/html/base/src/nsAreaFrame.cpp +++ b/mozilla/layout/html/base/src/nsAreaFrame.cpp @@ -182,68 +182,6 @@ nsAreaFrame::FirstChild(nsIAtom* aListName, nsIFrame** aFirstChild) const return nsBlockFrame::FirstChild(aListName, aFirstChild); } -#ifdef DEBUG -NS_IMETHODIMP -nsAreaFrame::Paint(nsIPresContext& aPresContext, - nsIRenderingContext& aRenderingContext, - const nsRect& aDirtyRect, - nsFramePaintLayer aWhichLayer) -{ - // Note: all absolutely positioned elements have views so we don't - // need to worry about painting them - nsresult rv = nsBlockFrame::Paint(aPresContext, aRenderingContext, - aDirtyRect, aWhichLayer); - -#if 0 - if ((NS_FRAME_PAINT_LAYER_DEBUG == aWhichLayer) && GetShowFrameBorders()) { - // Render the bands in the spacemanager - nsISpaceManager* sm = mSpaceManager; - - if (nsnull != sm) { - nsBlockBandData band; - band.Init(sm, nsSize(mRect.width, mRect.height)); - nscoord y = 0; - while (y < mRect.height) { - nsRect availArea; - band.GetAvailableSpace(y, availArea); - - // Render a box and a diagonal line through the band - aRenderingContext.SetColor(NS_RGB(0,255,0)); - aRenderingContext.DrawRect(0, availArea.y, - mRect.width, availArea.height); - aRenderingContext.DrawLine(0, availArea.y, - mRect.width, availArea.YMost()); - - // Render boxes and opposite diagonal lines around the - // unavailable parts of the band. - PRInt32 i; - for (i = 0; i < band.GetTrapezoidCount(); i++) { - const nsBandTrapezoid* trapezoid = band.GetTrapezoid(i); - if (nsBandTrapezoid::Available != trapezoid->mState) { - nsRect r; - trapezoid->GetRect(r); - if (nsBandTrapezoid::OccupiedMultiple == trapezoid->mState) { - aRenderingContext.SetColor(NS_RGB(0,255,128)); - } - else { - aRenderingContext.SetColor(NS_RGB(128,255,0)); - } - aRenderingContext.DrawRect(r); - aRenderingContext.DrawLine(r.x, r.YMost(), r.XMost(), r.y); - } - } - y = availArea.YMost(); - } - } - } - - return rv; -#else - return NS_OK; -#endif -} -#endif - // Return the x-most and y-most for the child absolutely positioned // elements NS_IMETHODIMP @@ -341,33 +279,9 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext, } } -#if 0 -#ifdef NOISY_SPACEMANAGER - if (eReflowReason_Incremental == aReflowState.reason) { - if (mSpaceManager) { - ListTag(stdout); - printf(": space-manager before reflow\n"); - mSpaceManager->List(stdout); - } - } -#endif -#endif - // Let the block frame do its reflow first rv = nsBlockFrame::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus); -#if 0 -#ifdef NOISY_SPACEMANAGER - if (eReflowReason_Incremental == aReflowState.reason) { - if (mSpaceManager) { - ListTag(stdout); - printf(": space-manager after reflow\n"); - mSpaceManager->List(stdout); - } - } -#endif -#endif - // Let the absolutely positioned container reflow any absolutely positioned // child frames that need to be reflowed, e.g., elements with a percentage // based width/height diff --git a/mozilla/layout/html/base/src/nsAreaFrame.h b/mozilla/layout/html/base/src/nsAreaFrame.h index 87ab88a089b..2b7ffa508f2 100644 --- a/mozilla/layout/html/base/src/nsAreaFrame.h +++ b/mozilla/layout/html/base/src/nsAreaFrame.h @@ -81,13 +81,6 @@ public: NS_IMETHOD DidReflow(nsIPresContext& aPresContext, nsDidReflowStatus aStatus); -#ifdef DEBUG - NS_IMETHOD Paint(nsIPresContext& aPresContext, - nsIRenderingContext& aRenderingContext, - const nsRect& aDirtyRect, - nsFramePaintLayer aWhichLayer); -#endif - /** * Get the "type" of the frame * diff --git a/mozilla/layout/html/base/src/nsBlockFrame.cpp b/mozilla/layout/html/base/src/nsBlockFrame.cpp index 2ca95f665df..c6d94808cff 100644 --- a/mozilla/layout/html/base/src/nsBlockFrame.cpp +++ b/mozilla/layout/html/base/src/nsBlockFrame.cpp @@ -1364,6 +1364,18 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext, } } } + +#if 0 +#ifdef NOISY_SPACEMANAGER + if (eReflowReason_Incremental == aReflowState.reason) { + if (mSpaceManager) { + ListTag(stdout); + printf(": space-manager after reflow\n"); + mSpaceManager->List(stdout); + } + } +#endif +#endif // If this is an incremental reflow and we changed size, then make sure our // border is repainted if necessary @@ -5342,6 +5354,50 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext, aRenderingContext.PopState(clipState); } +#if 0 + if ((NS_FRAME_PAINT_LAYER_DEBUG == aWhichLayer) && GetShowFrameBorders()) { + // Render the bands in the spacemanager + nsISpaceManager* sm = mSpaceManager; + + if (nsnull != sm) { + nsBlockBandData band; + band.Init(sm, nsSize(mRect.width, mRect.height)); + nscoord y = 0; + while (y < mRect.height) { + nsRect availArea; + band.GetAvailableSpace(y, availArea); + + // Render a box and a diagonal line through the band + aRenderingContext.SetColor(NS_RGB(0,255,0)); + aRenderingContext.DrawRect(0, availArea.y, + mRect.width, availArea.height); + aRenderingContext.DrawLine(0, availArea.y, + mRect.width, availArea.YMost()); + + // Render boxes and opposite diagonal lines around the + // unavailable parts of the band. + PRInt32 i; + for (i = 0; i < band.GetTrapezoidCount(); i++) { + const nsBandTrapezoid* trapezoid = band.GetTrapezoid(i); + if (nsBandTrapezoid::Available != trapezoid->mState) { + nsRect r; + trapezoid->GetRect(r); + if (nsBandTrapezoid::OccupiedMultiple == trapezoid->mState) { + aRenderingContext.SetColor(NS_RGB(0,255,128)); + } + else { + aRenderingContext.SetColor(NS_RGB(128,255,0)); + } + aRenderingContext.DrawRect(r); + aRenderingContext.DrawLine(r.x, r.YMost(), r.XMost(), r.y); + } + } + y = availArea.YMost(); + } + } + } +#endif + return NS_OK; } diff --git a/mozilla/layout/html/base/src/nsBlockReflowState.cpp b/mozilla/layout/html/base/src/nsBlockReflowState.cpp index 2ca95f665df..c6d94808cff 100644 --- a/mozilla/layout/html/base/src/nsBlockReflowState.cpp +++ b/mozilla/layout/html/base/src/nsBlockReflowState.cpp @@ -1364,6 +1364,18 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext, } } } + +#if 0 +#ifdef NOISY_SPACEMANAGER + if (eReflowReason_Incremental == aReflowState.reason) { + if (mSpaceManager) { + ListTag(stdout); + printf(": space-manager after reflow\n"); + mSpaceManager->List(stdout); + } + } +#endif +#endif // If this is an incremental reflow and we changed size, then make sure our // border is repainted if necessary @@ -5342,6 +5354,50 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext, aRenderingContext.PopState(clipState); } +#if 0 + if ((NS_FRAME_PAINT_LAYER_DEBUG == aWhichLayer) && GetShowFrameBorders()) { + // Render the bands in the spacemanager + nsISpaceManager* sm = mSpaceManager; + + if (nsnull != sm) { + nsBlockBandData band; + band.Init(sm, nsSize(mRect.width, mRect.height)); + nscoord y = 0; + while (y < mRect.height) { + nsRect availArea; + band.GetAvailableSpace(y, availArea); + + // Render a box and a diagonal line through the band + aRenderingContext.SetColor(NS_RGB(0,255,0)); + aRenderingContext.DrawRect(0, availArea.y, + mRect.width, availArea.height); + aRenderingContext.DrawLine(0, availArea.y, + mRect.width, availArea.YMost()); + + // Render boxes and opposite diagonal lines around the + // unavailable parts of the band. + PRInt32 i; + for (i = 0; i < band.GetTrapezoidCount(); i++) { + const nsBandTrapezoid* trapezoid = band.GetTrapezoid(i); + if (nsBandTrapezoid::Available != trapezoid->mState) { + nsRect r; + trapezoid->GetRect(r); + if (nsBandTrapezoid::OccupiedMultiple == trapezoid->mState) { + aRenderingContext.SetColor(NS_RGB(0,255,128)); + } + else { + aRenderingContext.SetColor(NS_RGB(128,255,0)); + } + aRenderingContext.DrawRect(r); + aRenderingContext.DrawLine(r.x, r.YMost(), r.XMost(), r.y); + } + } + y = availArea.YMost(); + } + } + } +#endif + return NS_OK; } diff --git a/mozilla/layout/html/base/src/nsBlockReflowState.h b/mozilla/layout/html/base/src/nsBlockReflowState.h index 2ca95f665df..c6d94808cff 100644 --- a/mozilla/layout/html/base/src/nsBlockReflowState.h +++ b/mozilla/layout/html/base/src/nsBlockReflowState.h @@ -1364,6 +1364,18 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext, } } } + +#if 0 +#ifdef NOISY_SPACEMANAGER + if (eReflowReason_Incremental == aReflowState.reason) { + if (mSpaceManager) { + ListTag(stdout); + printf(": space-manager after reflow\n"); + mSpaceManager->List(stdout); + } + } +#endif +#endif // If this is an incremental reflow and we changed size, then make sure our // border is repainted if necessary @@ -5342,6 +5354,50 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext, aRenderingContext.PopState(clipState); } +#if 0 + if ((NS_FRAME_PAINT_LAYER_DEBUG == aWhichLayer) && GetShowFrameBorders()) { + // Render the bands in the spacemanager + nsISpaceManager* sm = mSpaceManager; + + if (nsnull != sm) { + nsBlockBandData band; + band.Init(sm, nsSize(mRect.width, mRect.height)); + nscoord y = 0; + while (y < mRect.height) { + nsRect availArea; + band.GetAvailableSpace(y, availArea); + + // Render a box and a diagonal line through the band + aRenderingContext.SetColor(NS_RGB(0,255,0)); + aRenderingContext.DrawRect(0, availArea.y, + mRect.width, availArea.height); + aRenderingContext.DrawLine(0, availArea.y, + mRect.width, availArea.YMost()); + + // Render boxes and opposite diagonal lines around the + // unavailable parts of the band. + PRInt32 i; + for (i = 0; i < band.GetTrapezoidCount(); i++) { + const nsBandTrapezoid* trapezoid = band.GetTrapezoid(i); + if (nsBandTrapezoid::Available != trapezoid->mState) { + nsRect r; + trapezoid->GetRect(r); + if (nsBandTrapezoid::OccupiedMultiple == trapezoid->mState) { + aRenderingContext.SetColor(NS_RGB(0,255,128)); + } + else { + aRenderingContext.SetColor(NS_RGB(128,255,0)); + } + aRenderingContext.DrawRect(r); + aRenderingContext.DrawLine(r.x, r.YMost(), r.XMost(), r.y); + } + } + y = availArea.YMost(); + } + } + } +#endif + return NS_OK; }