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

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.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: chrome/browser/ui/views/infobars/infobar_view.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
index 86610e5b8463f2189c706a61430be2e8b7fec858..0358657729a5134fdf745b7738b819f5cab1b3bd 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -255,7 +255,7 @@ void InfoBarView::PaintChildren(gfx::Canvas* canvas) {
// canvas_skia->clipPath(fill_path_);
DCHECK_EQ(total_height(), height())
<< "Infobar piecewise heights do not match overall height";
- canvas->ClipRectInt(0, arrow_height(), width(), bar_height());
+ canvas->ClipRectInt(gfx::Rect(0, arrow_height(), width(), bar_height()));
views::View::PaintChildren(canvas);
canvas->Restore();
}

Powered by Google App Engine
This is Rietveld 408576698