Commit e4f9ce47 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove use of FPDF_NO_CATCH in PDFium integration code.

The flag is a no-op and will be deprecated/removed in the future.

Change-Id: I51532a2bc2b8e03f0489b2ac05589101d709d0c1
Reviewed-on: https://chromium-review.googlesource.com/c/1312310
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: default avatardsinclair <dsinclair@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604585}
parent b16aeb42
...@@ -3221,7 +3221,7 @@ void PDFiumEngine::GetPDFiumRect(int page_index, ...@@ -3221,7 +3221,7 @@ void PDFiumEngine::GetPDFiumRect(int page_index,
} }
int PDFiumEngine::GetRenderingFlags() const { int PDFiumEngine::GetRenderingFlags() const {
int flags = FPDF_LCD_TEXT | FPDF_NO_CATCH; int flags = FPDF_LCD_TEXT;
if (render_grayscale_) if (render_grayscale_)
flags |= FPDF_GRAYSCALE; flags |= FPDF_GRAYSCALE;
if (client_->IsPrintPreview()) if (client_->IsPrintPreview())
......
...@@ -192,7 +192,7 @@ bool PDFiumEngineExports::RenderPDFPageToDC( ...@@ -192,7 +192,7 @@ bool PDFiumEngineExports::RenderPDFPageToDC(
settings.bounds.x() + settings.bounds.width(), settings.bounds.x() + settings.bounds.width(),
settings.bounds.y() + settings.bounds.height()); settings.bounds.y() + settings.bounds.height());
int flags = FPDF_ANNOT | FPDF_PRINTING | FPDF_NO_CATCH; int flags = FPDF_ANNOT | FPDF_PRINTING;
if (!settings.use_color) if (!settings.use_color)
flags |= FPDF_GRAYSCALE; flags |= FPDF_GRAYSCALE;
...@@ -272,7 +272,7 @@ bool PDFiumEngineExports::RenderPDFPageToBitmap( ...@@ -272,7 +272,7 @@ bool PDFiumEngineExports::RenderPDFPageToBitmap(
// Shift top-left corner of bounds to (0, 0) if it's not there. // Shift top-left corner of bounds to (0, 0) if it's not there.
dest.set_point(dest.point() - settings.bounds.point()); dest.set_point(dest.point() - settings.bounds.point());
int flags = FPDF_ANNOT | FPDF_PRINTING | FPDF_NO_CATCH; int flags = FPDF_ANNOT | FPDF_PRINTING;
if (!settings.use_color) if (!settings.use_color)
flags |= FPDF_GRAYSCALE; flags |= FPDF_GRAYSCALE;
......
...@@ -413,7 +413,7 @@ ScopedFPDFDocument PDFiumPrint::CreateSinglePageRasterPdf( ...@@ -413,7 +413,7 @@ ScopedFPDFDocument PDFiumPrint::CreateSinglePageRasterPdf(
FPDF_RenderPageBitmap(bitmap.get(), page_to_print, 0, 0, bitmap_size.width(), FPDF_RenderPageBitmap(bitmap.get(), page_to_print, 0, 0, bitmap_size.width(),
bitmap_size.height(), print_settings.orientation, bitmap_size.height(), print_settings.orientation,
FPDF_PRINTING | FPDF_NO_CATCH); FPDF_PRINTING);
unsigned char* bitmap_data = unsigned char* bitmap_data =
static_cast<unsigned char*>(FPDFBitmap_GetBuffer(bitmap.get())); static_cast<unsigned char*>(FPDFBitmap_GetBuffer(bitmap.get()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment