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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc

Issue 1055933003: views: Don't need to anti-alias clip a rect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
index 7d092de0e900328016fb6d33ab3ad0a53b14f841..c05785a2d0beb4a5c9cb2b6384bc0dedab434cb6 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
@@ -422,9 +422,7 @@ void OmniboxPopupContentsView::PaintChildren(const ui::PaintContext& context) {
gfx::Canvas* canvas = context.canvas();
canvas->Save();
- canvas->sk_canvas()->clipRect(gfx::RectToSkRect(contents_bounds),
- SkRegion::kIntersect_Op,
- true /* doAntialias */);
+ canvas->ClipRect(contents_bounds);
canvas->DrawColor(result_view_at(0)->GetColor(OmniboxResultView::NORMAL,
OmniboxResultView::BACKGROUND));
View::PaintChildren(context);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698