summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/webwidget_host_win.cc
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 00:54:45 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 00:54:45 +0000
commit0b0fe3b6803ba1ed2d6b565474d93ccec34fedb9 (patch)
tree1015ff7e32d5dff28d103a89c9f9224bd2c0254a /webkit/tools/test_shell/webwidget_host_win.cc
parent74c8b421637393234e24b227929b89eba0883e76 (diff)
downloadchromium_src-0b0fe3b6803ba1ed2d6b565474d93ccec34fedb9.zip
chromium_src-0b0fe3b6803ba1ed2d6b565474d93ccec34fedb9.tar.gz
chromium_src-0b0fe3b6803ba1ed2d6b565474d93ccec34fedb9.tar.bz2
Reverting 11396.
failing layout tests on linux Review URL: http://codereview.chromium.org/43058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/webwidget_host_win.cc')
-rw-r--r--webkit/tools/test_shell/webwidget_host_win.cc24
1 files changed, 4 insertions, 20 deletions
diff --git a/webkit/tools/test_shell/webwidget_host_win.cc b/webkit/tools/test_shell/webwidget_host_win.cc
index a8b561c..fc4be75 100644
--- a/webkit/tools/test_shell/webwidget_host_win.cc
+++ b/webkit/tools/test_shell/webwidget_host_win.cc
@@ -210,11 +210,6 @@ void WebWidgetHost::UpdatePaintRect(const gfx::Rect& rect) {
}
void WebWidgetHost::Paint() {
- PaintToCanvas();
- PaintCanvasToView();
-}
-
-void WebWidgetHost::PaintToCanvas() {
RECT r;
GetClientRect(view_, &r);
gfx::Rect client_rect(r);
@@ -256,9 +251,8 @@ void WebWidgetHost::PaintToCanvas() {
}
}
DCHECK(paint_rect_.IsEmpty());
-}
-void WebWidgetHost::PaintCanvasToView() {
+ // Paint to the screen
PAINTSTRUCT ps;
BeginPaint(view_, &ps);
canvas_->getTopPlatformDevice().drawToHDC(ps.hdc,
@@ -271,16 +265,6 @@ void WebWidgetHost::PaintCanvasToView() {
UpdateWindow(view_);
}
-void WebWidgetHost::DisplayForRepaint() {
- PaintToCanvas();
-
- // Paint a gray mask over everything for the repaint Layout tests.
- const SkColor kMaskColor = SkColorSetARGB(168, 0, 0, 0); // alpha=0.66
- canvas_->drawColor(kMaskColor, SkPorterDuff::kSrcOver_Mode);
-
- PaintCanvasToView();
-}
-
void WebWidgetHost::Resize(LPARAM lparam) {
// Force an entire re-paint. TODO(darin): Maybe reuse this memory buffer.
DiscardBackingStore();
@@ -299,9 +283,9 @@ void WebWidgetHost::MouseEvent(UINT message, WPARAM wparam, LPARAM lparam) {
break;
case WebInputEvent::MOUSE_DOWN:
SetCapture(view_);
- // This mimics a temporary workaround in RenderWidgetHostViewWin
- // for bug 765011 to get focus when the mouse is clicked. This
- // happens after the mouse down event is sent to the renderer
+ // This mimics a temporary workaround in RenderWidgetHostViewWin
+ // for bug 765011 to get focus when the mouse is clicked. This
+ // happens after the mouse down event is sent to the renderer
// because normally Windows does a WM_SETFOCUS after WM_LBUTTONDOWN.
::SetFocus(view_);
break;