Chromium Code Reviews| Index: webkit/plugins/ppapi/ppapi_plugin_instance.h |
| diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.h b/webkit/plugins/ppapi/ppapi_plugin_instance.h |
| index 346e157f9b863ed9825f680e410e3404fa853558..9d4870a59b0bb27ac76f233d153a963f6bc43df4 100644 |
| --- a/webkit/plugins/ppapi/ppapi_plugin_instance.h |
| +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.h |
| @@ -434,14 +434,14 @@ class PluginInstance : public base::RefCounted<PluginInstance>, |
| // variable to hold on to the pixels. |
| scoped_refptr<PPB_ImageData_Impl> last_printed_page_; |
| #endif // defined(OS_MACOSX) |
| -#if defined(OS_LINUX) || defined(OS_WIN) |
| - // When printing to PDF (print preview, Linux) the entire document goes into |
| - // one metafile. However, when users print only a subset of all the pages, |
| - // it is impossible to know if a call to PrintPage() is the last call. |
| - // Thus in PrintPage(), just store the page number in |ranges_|. |
| - // The hack is in PrintEnd(), where a valid |canvas_| is preserved in |
| - // PrintWebViewHelper::PrintPages. This makes it possible to generate the |
| - // entire PDF given the variables below: |
| +#if defined(USE_SKIA) |
| + // On all platforms, when printing to PDF using print preview workflow, |
|
vandebo (ex-Chrome)
2011/09/26 21:01:45
Always when printing on Linux, and when printing f
kmadhusu
2011/09/27 00:35:14
Done.
|
| + // the entire document goes into one metafile. However, when users print |
| + // only a subset of all the pages, it is impossible to know if a call to |
| + // PrintPage() is the last call. Thus in PrintPage(), just store the page |
| + // number in |ranges_|. The hack is in PrintEnd(), where a valid |canvas_| |
| + // is preserved in PrintWebViewHelper::PrintPages. This makes it possible |
| + // to generate the entire PDF given the variables below: |
| // |
| // The most recently used WebCanvas, guaranteed to be valid. |
| SkRefPtr<WebKit::WebCanvas> canvas_; |