зеркало из https://github.com/mozilla/pjs.git
Bug 293543. RenderOffscreen needs to create a surface sized in pixels, not twips. r+sr=bzbarsky,a=shaver
This commit is contained in:
Родитель
04a4ebd600
Коммит
2a22298de9
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче