зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1034209 (Part 2) - Make nsImageRenderer::Draw private. r=nrc
This commit is contained in:
Родитель
3e805f6c43
Коммит
711578deab
|
@ -163,18 +163,6 @@ public:
|
|||
void SetPreferredSize(const mozilla::CSSSizeOrRatio& aIntrinsicSize,
|
||||
const nsSize& aDefaultSize);
|
||||
|
||||
/**
|
||||
* Draws the image to the target rendering context.
|
||||
* aSrc is a rect on the source image which will be mapped to aDest.
|
||||
* @see nsLayoutUtils::DrawImage() for other parameters.
|
||||
*/
|
||||
void Draw(nsPresContext* aPresContext,
|
||||
nsRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsRect& aDest,
|
||||
const nsRect& aFill,
|
||||
const nsPoint& aAnchor,
|
||||
const mozilla::CSSIntRect& aSrc);
|
||||
/**
|
||||
* Draws the image to the target rendering context using background-specific
|
||||
* arguments.
|
||||
|
@ -218,6 +206,21 @@ public:
|
|||
bool IsReady() { return mIsReady; }
|
||||
|
||||
private:
|
||||
/**
|
||||
* Draws the image to the target rendering context.
|
||||
* aSrc is a rect on the source image which will be mapped to aDest; it's
|
||||
* currently only used for gradients.
|
||||
*
|
||||
* @see nsLayoutUtils::DrawImage() for other parameters.
|
||||
*/
|
||||
void Draw(nsPresContext* aPresContext,
|
||||
nsRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsRect& aDest,
|
||||
const nsRect& aFill,
|
||||
const nsPoint& aAnchor,
|
||||
const mozilla::CSSIntRect& aSrc);
|
||||
|
||||
/**
|
||||
* Helper method for creating a gfxDrawable from mPaintServerFrame or
|
||||
* mImageElementSurface.
|
||||
|
|
Загрузка…
Ссылка в новой задаче