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

Unified Diff: chrome/browser/ui/views/find_bar_view.cc

Issue 9332006: ui/gfx: Make the first version of Canvas::TileImageInt take a gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland Created 8 years, 10 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/find_bar_view.cc
diff --git a/chrome/browser/ui/views/find_bar_view.cc b/chrome/browser/ui/views/find_bar_view.cc
index b36d07ee36ec29cc67734654e1d893fe727744f2..58465a1004b3dcfba9029bb5fd28572edc94dd9c 100644
--- a/chrome/browser/ui/views/find_bar_view.cc
+++ b/chrome/browser/ui/views/find_bar_view.cc
@@ -234,17 +234,16 @@ void FindBarView::OnPaint(gfx::Canvas* canvas) {
gfx::Point back_button_origin = find_previous_button_->bounds().origin();
// Draw the image to the left that creates a curved left edge for the box.
- canvas->TileImageInt(*text_box_background_left_,
- find_text_x - text_box_background_left_->width(),
- back_button_origin.y(), text_box_background_left_->width(),
- text_box_background_left_->height());
+ canvas->TileImage(*text_box_background_left_,
+ gfx::Rect(find_text_x - text_box_background_left_->width(),
+ back_button_origin.y(), text_box_background_left_->width(),
+ text_box_background_left_->height()));
// Draw the top and bottom border for whole text box (encompasses both the
// find_text_ edit box and the match_count_text_ label).
- canvas->TileImageInt(*text_box_background_, find_text_x,
- back_button_origin.y(),
- back_button_origin.x() - find_text_x,
- text_box_background_->height());
+ canvas->TileImage(*text_box_background_, gfx::Rect(find_text_x,
+ back_button_origin.y(), back_button_origin.x() - find_text_x,
+ text_box_background_->height()));
}
void FindBarView::Layout() {

Powered by Google App Engine
This is Rietveld 408576698