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

Unified Diff: ui/gfx/render_text.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: ui/gfx/render_text.cc
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index 503fffccc66399b492aa4de4174dc55f02995808..b6fb3590c76bea025a3c82fbda18c618b65e8881 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -351,7 +351,7 @@ void RenderText::Draw(Canvas* canvas) {
for (std::vector<Rect>::const_iterator i = selection.begin();
i < selection.end(); ++i) {
Rect r(*i);
- canvas->FillRectInt(selection_color, r.x(), r.y(), r.width(), r.height());
+ canvas->FillRect(selection_color, r);
}
// Create a temporary copy of the style ranges for composition and selection.

Powered by Google App Engine
This is Rietveld 408576698