mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 80310.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@213 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "printing/units.h"
|
||||
|
||||
#include "skia/ext/vector_canvas.h"
|
||||
#include "skia/ext/vector_platform_device_win.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h"
|
||||
@@ -261,7 +262,12 @@ void CefBrowserImpl::UIT_PrintPage(int page_number, int total_pages,
|
||||
int saved_state = SaveDC(hDC);
|
||||
DCHECK_NE(saved_state, 0);
|
||||
|
||||
skia::VectorCanvas canvas(hDC, dest_size_x, dest_size_y);
|
||||
skia::PlatformDevice* device =
|
||||
skia::VectorPlatformDeviceFactory::CreateDevice(dest_size_x,
|
||||
dest_size_y,
|
||||
true, hDC);
|
||||
DCHECK(device);
|
||||
skia::VectorCanvas canvas(device);
|
||||
|
||||
// The hDC 0 coord is the left most printeable area and not physical area of
|
||||
// the paper so subtract that out of our canvas translate.
|
||||
|
Reference in New Issue
Block a user