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

Unified Diff: ui/gfx/render_text.cc

Issue 8383028: ui/gfx: Convert Canvas::ClipRectInt() 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 f8e58e7948f0a17c458acb62d24e03e6f3293efa..ec2b24eb500ad82a90af72a70f3284e07d3aef9b 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -341,8 +341,7 @@ int RenderText::GetStringWidth() {
void RenderText::Draw(Canvas* canvas) {
// Clip the canvas to the text display area.
- canvas->ClipRectInt(display_rect_.x(), display_rect_.y(),
- display_rect_.width(), display_rect_.height());
+ canvas->ClipRectInt(display_rect_);
// Draw the selection.
std::vector<Rect> selection(GetSubstringBounds(GetSelectionStart(),

Powered by Google App Engine
This is Rietveld 408576698