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

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.cc

Issue 1423653005: Further plumb visual rect into cc:DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment per danakj. Created 5 years, 1 month 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 ca30393f1af129dbd164755e0239041174c4b44f..e0008de5c5a099c379cfe1d01d4336e9df13c484 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -276,7 +276,7 @@ void InfoBarView::PaintChildren(const ui::PaintContext& context) {
// canvas->sk_canvas()->clipPath(fill_path_);
DCHECK_EQ(total_height(), height())
<< "Infobar piecewise heights do not match overall height";
- ui::ClipTransformRecorder clip_transform_recorder(context);
+ ui::ClipTransformRecorder clip_transform_recorder(context, size());
clip_transform_recorder.ClipRect(
gfx::Rect(0, arrow_height(), width(), bar_height()));
views::View::PaintChildren(context);

Powered by Google App Engine
This is Rietveld 408576698