From f16bdbe25bde1808e8d6e8c7e06b9528d0634780 Mon Sep 17 00:00:00 2001 From: cku Date: Wed, 29 Nov 2017 15:45:34 +0800 Subject: [PATCH] Bug 1399787 - Part 17. Clean up some comments and formatting in PDFViaEMFPrintHelper code. r=jwatt MozReview-Commit-ID: HTFv50CFqI9 --HG-- extra : rebase_source : ccbc70097854e85fdc7e76341ba85272c73949e8 extra : source : 7200f406bd2eea6d81b926b92ddefa92ced96d18 --- widget/windows/PDFViaEMFPrintHelper.cpp | 2 +- widget/windows/PDFViaEMFPrintHelper.h | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/widget/windows/PDFViaEMFPrintHelper.cpp b/widget/windows/PDFViaEMFPrintHelper.cpp index a3686226e065..6f155ea91336 100644 --- a/widget/windows/PDFViaEMFPrintHelper.cpp +++ b/widget/windows/PDFViaEMFPrintHelper.cpp @@ -36,7 +36,7 @@ PDFViaEMFPrintHelper::~PDFViaEMFPrintHelper() } nsresult -PDFViaEMFPrintHelper::OpenDocument(nsIFile *aFile) +PDFViaEMFPrintHelper::OpenDocument(nsIFile* aFile) { MOZ_ASSERT(aFile); diff --git a/widget/windows/PDFViaEMFPrintHelper.h b/widget/windows/PDFViaEMFPrintHelper.h index d5d845c489f6..5b7e4ad169d5 100644 --- a/widget/windows/PDFViaEMFPrintHelper.h +++ b/widget/windows/PDFViaEMFPrintHelper.h @@ -50,11 +50,14 @@ public: int GetPageCount() const { return mPDFiumEngine->GetPageCount(mPDFDoc); } - /** Convert specified PDF page to EMF and draw the EMF onto the given DC. */ + /** + * Convert the specified PDF page to EMF and draw the EMF onto the + * given DC. + */ bool DrawPage(HDC aPrinterDC, unsigned int aPageIndex, int aPageWidth, int aPageHeight); - /** Convert a specified PDF page to EMF and save it to file. */ + /** Convert the specified PDF page to EMF and save it to file. */ bool SavePageToFile(const wchar_t* aFilePath, unsigned int aPageIndex, int aPageWidth, int aPageHeight);