Restore DC before EndPage call to state if was just after StartPage. We need this because EndPage clips page with current clipping region.
BUG=71509
TEST=unittest
Review URL: https://chromiumcodereview.appspot.com/10557019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143119 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/printing/emf_win_unittest.cc b/printing/emf_win_unittest.cc
index add23f9..8d07213 100644
--- a/printing/emf_win_unittest.cc
+++ b/printing/emf_win_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -116,7 +116,7 @@
// If you get this assert, you need to lookup iType in wingdi.h. It starts
// with EMR_HEADER.
EMR_HEADER;
- EXPECT_TRUE(itr->SafePlayback(NULL)) <<
+ EXPECT_TRUE(itr->SafePlayback(&emf_enum.context_)) <<
" index: " << index << " type: " << itr->record()->iType;
}
context->PageDone();