author | Ms2ger <ms2ger@gmail.com> |
Tue, 13 Dec 2011 09:49:31 +1100 | |
changeset 84453 | 99da78c5fe27573b3e989dbfbd6eb86e1a351f7f |
parent 84452 | 4940c4b3c1014b8917649e6d46afc806b0a79df8 |
child 84454 | eb5d4c08a5428bf9d751af1bb91e0d16ed7b8d12 |
push id | 114 |
push user | ffxbld |
push date | Fri, 09 Mar 2012 01:01:18 +0000 |
treeherder | mozilla-release@c081ebf13261 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | joe, ehsan |
bugs | 709522 |
milestone | 11.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
image/src/imgFrame.cpp | file | annotate | diff | comparison | revisions | |
image/src/imgFrame.h | file | annotate | diff | comparison | revisions |
--- a/image/src/imgFrame.cpp +++ b/image/src/imgFrame.cpp @@ -531,36 +531,16 @@ nsresult imgFrame::ImageUpdated(const ns #ifdef XP_MACOSX if (mQuartzSurface) mQuartzSurface->Flush(); #endif return NS_OK; } -PRInt32 imgFrame::GetX() const -{ - return mOffset.x; -} - -PRInt32 imgFrame::GetY() const -{ - return mOffset.y; -} - -PRInt32 imgFrame::GetWidth() const -{ - return mSize.width; -} - -PRInt32 imgFrame::GetHeight() const -{ - return mSize.height; -} - nsIntRect imgFrame::GetRect() const { return nsIntRect(mOffset, mSize); } gfxASurface::gfxImageFormat imgFrame::GetFormat() const { return mFormat;
--- a/image/src/imgFrame.h +++ b/image/src/imgFrame.h @@ -67,20 +67,16 @@ public: void Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter, const gfxMatrix &aUserSpaceToImageSpace, const gfxRect& aFill, const nsIntMargin &aPadding, const nsIntRect &aSubimage); nsresult Extract(const nsIntRect& aRegion, imgFrame** aResult); nsresult ImageUpdated(const nsIntRect &aUpdateRect); - PRInt32 GetX() const; - PRInt32 GetY() const; - PRInt32 GetWidth() const; - PRInt32 GetHeight() const; nsIntRect GetRect() const; gfxASurface::gfxImageFormat GetFormat() const; bool GetNeedsBackground() const; PRUint32 GetImageBytesPerRow() const; PRUint32 GetImageDataLength() const; bool GetIsPaletted() const; bool GetHasAlpha() const; void GetImageData(PRUint8 **aData, PRUint32 *length) const;