Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: printing/printed_document_win.cc

Issue 599733002: StartPage/EndPage from spooling code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tue Sep 23 18:18:33 PDT 2014 Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/emf_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_document_win.cc
diff --git a/printing/printed_document_win.cc b/printing/printed_document_win.cc
index 392679384c52875081e6e29bfd50768cc8994c70..5da1151634cad1d377b8b8a4b3c9c3620a1a3da4 100644
--- a/printing/printed_document_win.cc
+++ b/printing/printed_document_win.cc
@@ -69,9 +69,11 @@ void PrintedDocument::RenderPrintedPage(
content_area.y() - page_setup.printable_area().y(),
page.shrink_factor());
+ ::StartPage(context);
if (!page.metafile()->SafePlayback(context)) {
NOTREACHED();
}
+ ::EndPage(context);
BOOL res = RestoreDC(context, saved_state);
DCHECK_NE(res, 0);
« no previous file with comments | « printing/emf_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698