| Index: webkit/tools/test_shell/webwidget_host_win.cc
|
| diff --git a/webkit/tools/test_shell/webwidget_host_win.cc b/webkit/tools/test_shell/webwidget_host_win.cc
|
| index 8056b46058537df354f33e3ffb66486210fa44e4..17d5ae110a3154204acf897e53cc444ecf508966 100644
|
| --- a/webkit/tools/test_shell/webwidget_host_win.cc
|
| +++ b/webkit/tools/test_shell/webwidget_host_win.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 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.
|
|
|
| @@ -251,12 +251,13 @@ void WebWidgetHost::Paint() {
|
| // Scroll the canvas if necessary
|
| scroll_rect_ = client_rect.Intersect(scroll_rect_);
|
| if (!scroll_rect_.IsEmpty()) {
|
| - HDC hdc = canvas_->getTopPlatformDevice().getBitmapDC();
|
| + HDC hdc = canvas_->beginPlatformPaint();
|
|
|
| RECT damaged_rect, r = scroll_rect_.ToRECT();
|
| ScrollDC(hdc, scroll_dx_, scroll_dy_, NULL, &r, NULL, &damaged_rect);
|
|
|
| PaintRect(gfx::Rect(damaged_rect));
|
| + canvas_->endPlatformPaint();
|
| }
|
| ResetScrollRect();
|
|
|
|
|