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

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

Issue 1016033011: omnibox: Don't paint children from inside OnPaint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h ('k') | 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 3e6e20542af834c6d34e47926c157bd4a889019a..29c8393943ec30b74935302e1a7debb81648abab 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
@@ -408,7 +408,8 @@ const char* OmniboxPopupContentsView::GetClassName() const {
return "OmniboxPopupContentsView";
}
-void OmniboxPopupContentsView::OnPaint(gfx::Canvas* canvas) {
+void OmniboxPopupContentsView::PaintChildren(gfx::Canvas* canvas,
+ const views::CullSet& cull_set) {
gfx::Rect contents_bounds = GetContentsBounds();
contents_bounds.set_height(
contents_bounds.height() - bottom_shadow_->height() + kBorderInterior);
@@ -433,11 +434,6 @@ void OmniboxPopupContentsView::OnPaint(gfx::Canvas* canvas) {
width(), bottom_shadow_->height());
}
-void OmniboxPopupContentsView::PaintChildren(gfx::Canvas* canvas,
- const views::CullSet& cull_set) {
- // We paint our children inside OnPaint().
-}
-
////////////////////////////////////////////////////////////////////////////////
// OmniboxPopupContentsView, private:
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698