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

Unified Diff: webkit/tools/test_shell/webwidget_host_win.cc

Issue 43058: Reverting 11396. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | « webkit/tools/test_shell/webwidget_host_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/webwidget_host_win.cc
===================================================================
--- webkit/tools/test_shell/webwidget_host_win.cc (revision 11408)
+++ webkit/tools/test_shell/webwidget_host_win.cc (working copy)
@@ -210,11 +210,6 @@
}
void WebWidgetHost::Paint() {
- PaintToCanvas();
- PaintCanvasToView();
-}
-
-void WebWidgetHost::PaintToCanvas() {
RECT r;
GetClientRect(view_, &r);
gfx::Rect client_rect(r);
@@ -256,9 +251,8 @@
}
}
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 @@
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 @@
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;
« no previous file with comments | « webkit/tools/test_shell/webwidget_host_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698