mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
bug 735790 - Tab thumbnails only scale 3/4 of the window r=mfinkle
This commit is contained in:
parent
ea5892e7f5
commit
3c3a0da941
@ -2105,10 +2105,10 @@ nsresult AndroidBridge::TakeScreenshot(nsIDOMWindow *window, PRInt32 srcX, PRInt
|
||||
nsIPresShell* presShell = presContext->PresShell();
|
||||
PRUint32 renderDocFlags = (nsIPresShell::RENDER_IGNORE_VIEWPORT_SCROLLING |
|
||||
nsIPresShell::RENDER_DOCUMENT_RELATIVE);
|
||||
nsRect r(nsPresContext::CSSPixelsToAppUnits(srcX),
|
||||
nsPresContext::CSSPixelsToAppUnits(srcY),
|
||||
nsPresContext::CSSPixelsToAppUnits(srcW),
|
||||
nsPresContext::CSSPixelsToAppUnits(srcH));
|
||||
nsRect r(nsPresContext::CSSPixelsToAppUnits(srcX / scale),
|
||||
nsPresContext::CSSPixelsToAppUnits(srcY / scale),
|
||||
nsPresContext::CSSPixelsToAppUnits(srcW / scale),
|
||||
nsPresContext::CSSPixelsToAppUnits(srcH / scale));
|
||||
|
||||
JNIEnv* jenv = AndroidBridge::GetJNIEnv();
|
||||
if (!jenv)
|
||||
|
Loading…
Reference in New Issue
Block a user