Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
MozReview-Commit-ID: K1WUIOnvazF
This commit is contained in:
committed by
Jeff Muizelaar
parent
fb2f684d18
commit
c6fbc5e17e
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "nsTableCellFrame.h"
|
||||
|
||||
#include "gfxContext.h"
|
||||
#include "gfxUtils.h"
|
||||
#include "mozilla/gfx/2D.h"
|
||||
#include "mozilla/gfx/Helpers.h"
|
||||
@@ -15,7 +16,6 @@
|
||||
#include "nsStyleContext.h"
|
||||
#include "nsStyleConsts.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "nsCSSRendering.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsGenericHTMLElement.h"
|
||||
@@ -372,7 +372,7 @@ nsTableCellFrame::DecorateForSelection(DrawTarget* aDrawTarget, nsPoint aPt)
|
||||
}
|
||||
|
||||
DrawResult
|
||||
nsTableCellFrame::PaintBackground(nsRenderingContext& aRenderingContext,
|
||||
nsTableCellFrame::PaintBackground(gfxContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect,
|
||||
nsPoint aPt,
|
||||
uint32_t aFlags)
|
||||
@@ -422,14 +422,14 @@ public:
|
||||
aOutFrames->AppendElement(mFrame);
|
||||
}
|
||||
virtual void Paint(nsDisplayListBuilder* aBuilder,
|
||||
nsRenderingContext* aCtx) override;
|
||||
gfxContext* aCtx) override;
|
||||
virtual nsRect GetBounds(nsDisplayListBuilder* aBuilder,
|
||||
bool* aSnap) override;
|
||||
NS_DISPLAY_DECL_NAME("TableCellBackground", TYPE_TABLE_CELL_BACKGROUND)
|
||||
};
|
||||
|
||||
void nsDisplayTableCellBackground::Paint(nsDisplayListBuilder* aBuilder,
|
||||
nsRenderingContext* aCtx)
|
||||
gfxContext* aCtx)
|
||||
{
|
||||
DrawResult result = static_cast<nsTableCellFrame*>(mFrame)->
|
||||
PaintBackground(*aCtx, mVisibleRect, ToReferenceFrame(),
|
||||
@@ -744,7 +744,7 @@ int32_t nsTableCellFrame::GetColSpan()
|
||||
}
|
||||
|
||||
/* virtual */ nscoord
|
||||
nsTableCellFrame::GetMinISize(nsRenderingContext *aRenderingContext)
|
||||
nsTableCellFrame::GetMinISize(gfxContext *aRenderingContext)
|
||||
{
|
||||
nscoord result = 0;
|
||||
DISPLAY_MIN_WIDTH(this, result);
|
||||
@@ -756,7 +756,7 @@ nsTableCellFrame::GetMinISize(nsRenderingContext *aRenderingContext)
|
||||
}
|
||||
|
||||
/* virtual */ nscoord
|
||||
nsTableCellFrame::GetPrefISize(nsRenderingContext *aRenderingContext)
|
||||
nsTableCellFrame::GetPrefISize(gfxContext *aRenderingContext)
|
||||
{
|
||||
nscoord result = 0;
|
||||
DISPLAY_PREF_WIDTH(this, result);
|
||||
@@ -1180,7 +1180,7 @@ nsBCTableCellFrame::GetBorderOverflow()
|
||||
}
|
||||
|
||||
DrawResult
|
||||
nsBCTableCellFrame::PaintBackground(nsRenderingContext& aRenderingContext,
|
||||
nsBCTableCellFrame::PaintBackground(gfxContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect,
|
||||
nsPoint aPt,
|
||||
uint32_t aFlags)
|
||||
|
||||
Reference in New Issue
Block a user