| Index: printing/pdf_metafile_cairo_linux.cc
|
| ===================================================================
|
| --- printing/pdf_metafile_cairo_linux.cc (revision 83537)
|
| +++ printing/pdf_metafile_cairo_linux.cc (working copy)
|
| @@ -119,9 +119,9 @@
|
| }
|
|
|
| skia::PlatformDevice* PdfMetafileCairo::StartPageForVectorCanvas(
|
| - const gfx::Size& page_size, const gfx::Point& content_origin,
|
| + const gfx::Size& page_size, const gfx::Rect& content_area,
|
| const float& scale_factor) {
|
| - if (!StartPage(page_size, content_origin, scale_factor))
|
| + if (!StartPage(page_size, content_area, scale_factor))
|
| return NULL;
|
|
|
| return skia::VectorPlatformDeviceCairoFactory::CreateDevice(
|
| @@ -129,7 +129,7 @@
|
| }
|
|
|
| bool PdfMetafileCairo::StartPage(const gfx::Size& page_size,
|
| - const gfx::Point& content_origin,
|
| + const gfx::Rect& content_area,
|
| const float& scale_factor) {
|
| DCHECK(IsSurfaceValid(surface_));
|
| DCHECK(IsContextValid(context_));
|
| @@ -142,8 +142,8 @@
|
|
|
| // Don't let WebKit draw over the margins.
|
| cairo_surface_set_device_offset(surface_,
|
| - content_origin.x(),
|
| - content_origin.y());
|
| + content_area.x(),
|
| + content_area.y());
|
|
|
| cairo_pdf_surface_set_size(surface_, page_size.width(), page_size.height());
|
| return context_ != NULL;
|
|
|