Bug 1034209 (Part 2) - Make nsImageRenderer::Draw private. r=nrc

This commit is contained in:
Seth Fowler 2014-07-21 17:59:24 -07:00
Родитель 3e805f6c43
Коммит 711578deab
1 изменённых файлов: 15 добавлений и 12 удалений

Просмотреть файл

@ -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.