Bug 757365 - Don't use uint8 in DocumentRenderer{Parent,Child}.cpp; r=bjacob

This commit is contained in:
Ms2ger 2012-05-25 09:18:30 +02:00
parent 1d02a1ece1
commit beea34d1fc
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ DocumentRendererChild::RenderDocument(nsIDOMWindow *window,
data.SetLength(renderSize.width * renderSize.height * 4);
nsRefPtr<gfxImageSurface> surf =
new gfxImageSurface(reinterpret_cast<uint8*>(data.BeginWriting()),
new gfxImageSurface(reinterpret_cast<uint8_t*>(data.BeginWriting()),
gfxIntSize(renderSize.width, renderSize.height),
4 * renderSize.width,
gfxASurface::ImageFormatARGB32);

View File

@ -28,7 +28,7 @@ void DocumentRendererParent::DrawToCanvas(const nsIntSize& aSize,
return;
nsRefPtr<gfxImageSurface> surf =
new gfxImageSurface(reinterpret_cast<uint8*>(const_cast<nsCString&>(aData).BeginWriting()),
new gfxImageSurface(reinterpret_cast<uint8_t*>(const_cast<nsCString&>(aData).BeginWriting()),
gfxIntSize(aSize.width, aSize.height),
aSize.width * 4,
gfxASurface::ImageFormatARGB32);