summaryrefslogtreecommitdiffstats
path: root/printing/emf_win_unittest.cc
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-20 01:57:38 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-20 01:57:38 +0000
commit0064b398edd44fb98f9a5964a1bfbbd1bb41c869 (patch)
tree39801508dd7ce1802cddb8456f17f752d7f8927a /printing/emf_win_unittest.cc
parent45070024ddc42410274943d0e2a55a72e29837da (diff)
downloadchromium_src-0064b398edd44fb98f9a5964a1bfbbd1bb41c869.zip
chromium_src-0064b398edd44fb98f9a5964a1bfbbd1bb41c869.tar.gz
chromium_src-0064b398edd44fb98f9a5964a1bfbbd1bb41c869.tar.bz2
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
Diffstat (limited to 'printing/emf_win_unittest.cc')
-rw-r--r--printing/emf_win_unittest.cc4
1 files changed, 2 insertions, 2 deletions
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 @@ TEST_F(EmfPrintingTest, Enumerate) {
// 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();