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

Unified Diff: ui/views/widget/native_widget_win.cc

Issue 8383028: ui/gfx: Convert Canvas::ClipRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 9 years, 2 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 | « ui/views/view.cc ('k') | views/controls/combobox/native_combobox_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_win.cc
diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc
index b097cfe70d5e9ccf8103ecb49401bd689cf3c8a4..dae81d1cc19143fe0cf1b5be3213027c22fa8928 100644
--- a/ui/views/widget/native_widget_win.cc
+++ b/ui/views/widget/native_widget_win.cc
@@ -451,8 +451,7 @@ void NativeWidgetWin::OnPaint(HDC dc) {
window_contents_->save(SkCanvas::kClip_SaveFlag);
RECT r;
GetUpdateRect(hwnd(), &r, FALSE);
- window_contents_->ClipRectInt(r.left, r.top, r.right - r.left,
- r.bottom - r.top);
+ window_contents_->ClipRectInt(gfx::Rect(r));
listener_->OnPaint(window_contents_.get());
window_contents_->restore();
« no previous file with comments | « ui/views/view.cc ('k') | views/controls/combobox/native_combobox_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698