Bug 1351447 - Rename imagelib's DrawResult to ImgDrawResult r=tnikkel

Renamed to imgDrawResult

MozReview-Commit-ID: 5ESSgIhhU41
This commit is contained in:
Samathy Barratt
2017-12-11 15:37:59 +00:00
parent 2c19aaf19c
commit 54acaa2cd8
59 changed files with 345 additions and 345 deletions

View File

@@ -205,7 +205,7 @@ DynamicImage::GetFrameAtSize(const IntSize& aSize,
aWhichFrame, SamplingFilter::POINT, Nothing(), aFlags,
1.0);
return result == DrawResult::SUCCESS ? dt->Snapshot() : nullptr;
return result == ImgDrawResult::SUCCESS ? dt->Snapshot() : nullptr;
}
NS_IMETHODIMP_(bool)
@@ -243,7 +243,7 @@ DynamicImage::GetImageContainerAtSize(LayerManager* aManager,
return nullptr;
}
NS_IMETHODIMP_(DrawResult)
NS_IMETHODIMP_(ImgDrawResult)
DynamicImage::Draw(gfxContext* aContext,
const nsIntSize& aSize,
const ImageRegion& aRegion,
@@ -261,7 +261,7 @@ DynamicImage::Draw(gfxContext* aContext,
gfxUtils::DrawPixelSnapped(aContext, mDrawable, SizeDouble(drawableSize), aRegion,
SurfaceFormat::B8G8R8A8, aSamplingFilter,
aOpacity);
return DrawResult::SUCCESS;
return ImgDrawResult::SUCCESS;
}
gfxSize scale(double(aSize.width) / drawableSize.width,
@@ -276,7 +276,7 @@ DynamicImage::Draw(gfxContext* aContext,
gfxUtils::DrawPixelSnapped(aContext, mDrawable, SizeDouble(drawableSize), region,
SurfaceFormat::B8G8R8A8, aSamplingFilter,
aOpacity);
return DrawResult::SUCCESS;
return ImgDrawResult::SUCCESS;
}
NS_IMETHODIMP