| Index: pdf/pdfium/pdfium_engine.cc
|
| diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
|
| index 3899e0ee51eb3bf5278470fc2645cdee3e0e4752..97506ef9e46268f482ef891a3e379050f26b0d10 100644
|
| --- a/pdf/pdfium/pdfium_engine.cc
|
| +++ b/pdf/pdfium/pdfium_engine.cc
|
| @@ -3185,8 +3185,8 @@ void PDFiumEngine::TransformPDFPageForPrinting(
|
| gfx_content_rect, src_page_width, src_page_height, rotated) : 1.0;
|
|
|
| // Calculate positions for the clip box.
|
| - printing::ClipBox media_box;
|
| - printing::ClipBox crop_box;
|
| + printing::PdfRectangle media_box;
|
| + printing::PdfRectangle crop_box;
|
| bool has_media_box = !!FPDFPage_GetMediaBox(page,
|
| &media_box.left,
|
| &media_box.bottom,
|
| @@ -3199,9 +3199,9 @@ void PDFiumEngine::TransformPDFPageForPrinting(
|
| &crop_box.top);
|
| printing::CalculateMediaBoxAndCropBox(
|
| rotated, has_media_box, has_crop_box, &media_box, &crop_box);
|
| - printing::ClipBox source_clip_box =
|
| + printing::PdfRectangle source_clip_box =
|
| printing::CalculateClipBoxBoundary(media_box, crop_box);
|
| - printing::ScaleClipBox(scale_factor, &source_clip_box);
|
| + printing::ScalePdfRectangle(scale_factor, &source_clip_box);
|
|
|
| // Calculate the translation offset values.
|
| double offset_x = 0;
|
|
|