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

Unified Diff: views/border.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: save some vertical space, interactive_ui_tests are fixed by Peter's fix 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
« no previous file with comments | « views/aura_desktop/aura_desktop_main.cc ('k') | views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/border.cc
diff --git a/views/border.cc b/views/border.cc
index a05d51cb70b848a46df3215ccae26ee76d09a0c0..3f90159efceead9632e16894e7603e30f94dfa6a 100644
--- a/views/border.cc
+++ b/views/border.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -35,15 +35,15 @@ SolidBorder::SolidBorder(int thickness, SkColor color)
void SolidBorder::Paint(const View& view, gfx::Canvas* canvas) const {
// Top border.
- canvas->FillRectInt(color_, 0, 0, view.width(), insets_.top());
+ canvas->FillRect(color_, gfx::Rect(0, 0, view.width(), insets_.top()));
// Left border.
- canvas->FillRectInt(color_, 0, 0, insets_.left(), view.height());
+ canvas->FillRect(color_, gfx::Rect(0, 0, insets_.left(), view.height()));
// Bottom border.
- canvas->FillRectInt(color_, 0, view.height() - insets_.bottom(),
- view.width(), insets_.bottom());
+ canvas->FillRect(color_, gfx::Rect(0, view.height() - insets_.bottom(),
+ view.width(), insets_.bottom()));
// Right border.
- canvas->FillRectInt(color_, view.width() - insets_.right(), 0,
- insets_.right(), view.height());
+ canvas->FillRect(color_, gfx::Rect(view.width() - insets_.right(), 0,
+ insets_.right(), view.height()));
}
void SolidBorder::GetInsets(gfx::Insets* insets) const {
« no previous file with comments | « views/aura_desktop/aura_desktop_main.cc ('k') | views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698