mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 293543. RenderOffscreen needs to create a surface sized in pixels, not twips. r+sr=bzbarsky,a=shaver
This commit is contained in:
parent
c2b8e6122f
commit
b4e308b124
@ -3468,6 +3468,8 @@ NS_IMETHODIMP nsViewManager::RenderOffscreen(nsIView* aView, nsRect aRect,
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
nsRect bounds(nsPoint(0, 0), aRect.Size());
|
||||
bounds.ScaleRoundOut(mTwipsToPixels);
|
||||
|
||||
nsIDrawingSurface* surface;
|
||||
nsresult rv
|
||||
= tmpContext->CreateDrawingSurface(bounds, NS_CREATEDRAWINGSURFACE_FOR_PIXEL_ACCESS,
|
||||
|
Loading…
Reference in New Issue
Block a user