linux: Fix compilation error
This commit is contained in:
parent
ff724634f2
commit
105ad369ab
5 changed files with 6 additions and 6 deletions
|
@ -131,7 +131,7 @@ void PrintWebViewHelper::PrintPageInternal(
|
|||
gfx::Rect canvas_area = content_area;
|
||||
|
||||
skia::PlatformCanvas* canvas = metafile->GetVectorCanvasForNewPage(
|
||||
*page_size, canvas_area, scale_factor);
|
||||
page_size, canvas_area, scale_factor);
|
||||
if (!canvas)
|
||||
return;
|
||||
|
||||
|
@ -139,7 +139,7 @@ void PrintWebViewHelper::PrintPageInternal(
|
|||
skia::SetIsDraftMode(*canvas, is_print_ready_metafile_sent_);
|
||||
|
||||
RenderPageContent(frame, params.page_number, canvas_area, content_area,
|
||||
scale_factor, canvas.get());
|
||||
scale_factor, canvas);
|
||||
|
||||
// Done printing. Close the device context to retrieve the compiled metafile.
|
||||
if (!metafile->FinishPage())
|
||||
|
|
|
@ -210,7 +210,7 @@ void PrintWebViewHelper::PrintPageInternal(
|
|||
canvas_area,
|
||||
content_area,
|
||||
scale_factor,
|
||||
canvas.get());
|
||||
canvas);
|
||||
DCHECK_GT(webkit_scale_factor, 0.0f);
|
||||
// Done printing. Close the device context to retrieve the compiled metafile.
|
||||
if (!metafile->FinishPage())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue