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

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: 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
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..4198ed99d7211e93d6bf3aa7ee65416dfd7f6d9a 100644
--- a/ui/views/widget/native_widget_win.cc
+++ b/ui/views/widget/native_widget_win.cc
@@ -451,8 +451,8 @@ 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(
Peter Kasting 2011/10/25 20:24:47 Nit: I think just gfx::Rect(r) works
tfarina 2011/10/25 23:52:41 Done.
+ gfx::Rect(r.left, r.top, r.right - r.left, r.bottom - r.top));
listener_->OnPaint(window_contents_.get());
window_contents_->restore();

Powered by Google App Engine
This is Rietveld 408576698