Bug 1401069 - Part 5. Remove two local variables since we do not need them. r=fatseng

dcWidth and dcHieght are used only once, we do not need to define a local
variable for any of them.
MozReview-Commit-ID: Fw5rHqtUPQN
This commit is contained in:
cku
2017-09-18 23:28:08 +08:00
parent 021830709b
commit 024abb4a81

View File

@@ -87,9 +87,8 @@ PDFViaEMFPrintHelper::RenderPageToDC(HDC aDC, unsigned int aPageIndex,
FPDF_PAGE pdfPage = mPDFiumEngine->LoadPage(mPDFDoc, aPageIndex);
NS_ENSURE_TRUE(pdfPage, false);
int dcWidth = ::GetDeviceCaps(aDC, HORZRES);
int dcHeight = ::GetDeviceCaps(aDC, VERTRES);
float scaleFactor = ComputeScaleFactor(dcWidth,dcHeight,
float scaleFactor = ComputeScaleFactor(::GetDeviceCaps(aDC, HORZRES),
::GetDeviceCaps(aDC, VERTRES),
aPageWidth, aPageHeight);
int savedState = ::SaveDC(aDC);
::SetGraphicsMode(aDC, GM_ADVANCED);